Merge pull request #826 from lioncash/wx-events
DolphinWX: Use the typesafe equivalents for declaring wx event types
This commit is contained in:
commit
b5337ea1b5
|
@ -38,7 +38,7 @@
|
||||||
#include "DolphinWX/Debugger/CodeView.h"
|
#include "DolphinWX/Debugger/CodeView.h"
|
||||||
#include "DolphinWX/Debugger/DebuggerUIUtil.h"
|
#include "DolphinWX/Debugger/DebuggerUIUtil.h"
|
||||||
|
|
||||||
DEFINE_EVENT_TYPE(wxEVT_CODEVIEW_CHANGE);
|
wxDEFINE_EVENT(wxEVT_CODEVIEW_CHANGE, wxCommandEvent);
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
|
|
||||||
DECLARE_EVENT_TYPE(wxEVT_CODEVIEW_CHANGE, -1);
|
wxDECLARE_EVENT(wxEVT_CODEVIEW_CHANGE, wxCommandEvent);
|
||||||
|
|
||||||
class DebugInterface;
|
class DebugInterface;
|
||||||
class SymbolDB;
|
class SymbolDB;
|
||||||
|
|
|
@ -45,11 +45,8 @@
|
||||||
|
|
||||||
class wxWindow;
|
class wxWindow;
|
||||||
|
|
||||||
DECLARE_EVENT_TYPE(RECORDING_FINISHED_EVENT, -1)
|
wxDEFINE_EVENT(RECORDING_FINISHED_EVENT, wxCommandEvent);
|
||||||
DEFINE_EVENT_TYPE(RECORDING_FINISHED_EVENT)
|
wxDEFINE_EVENT(FRAME_WRITTEN_EVENT, wxCommandEvent);
|
||||||
|
|
||||||
DECLARE_EVENT_TYPE(FRAME_WRITTEN_EVENT, -1)
|
|
||||||
DEFINE_EVENT_TYPE(FRAME_WRITTEN_EVENT)
|
|
||||||
|
|
||||||
static std::recursive_mutex sMutex;
|
static std::recursive_mutex sMutex;
|
||||||
wxEvtHandler *volatile FifoPlayerDlg::m_EvtHandler = nullptr;
|
wxEvtHandler *volatile FifoPlayerDlg::m_EvtHandler = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue