mirror of https://github.com/PCSX2/pcsx2.git
wx: Replace a bunch of wx 2.8 macros with the wx 3.x versions.
This commit is contained in:
parent
5d4ae31ba1
commit
2941fd9b87
|
@ -33,7 +33,7 @@ namespace Threading
|
|||
//
|
||||
class WaitForTaskDialog : public wxDialogWithHelpers
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(WaitForTaskDialog)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(WaitForTaskDialog);
|
||||
|
||||
typedef wxDialogWithHelpers _parent;
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ public:
|
|||
//
|
||||
class pxSimpleEvent : public wxEvent
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(pxSimpleEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(pxSimpleEvent);
|
||||
|
||||
public:
|
||||
explicit pxSimpleEvent(int evtid = 0)
|
||||
|
@ -94,7 +94,7 @@ wxDECLARE_EVENT(pxEvt_InvokeAction, pxActionEvent);
|
|||
|
||||
class pxActionEvent : public wxEvent
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(pxActionEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(pxActionEvent);
|
||||
|
||||
protected:
|
||||
SynchronousActionState *m_state;
|
||||
|
@ -121,8 +121,8 @@ public:
|
|||
virtual void _DoInvokeEvent();
|
||||
|
||||
protected:
|
||||
// Extending classes should implement this method to perfoem whatever action it is
|
||||
// the event is supposed to do. :) Thread affinity is garaunteed to be the Main/UI
|
||||
// Extending classes should implement this method to perform whatever action it is
|
||||
// the event is supposed to do. :) Thread affinity is guaranteed to be the Main/UI
|
||||
// thread, and exceptions will be handled automatically.
|
||||
//
|
||||
// Exception note: exceptions are passed back to the thread that posted the event
|
||||
|
@ -166,7 +166,7 @@ protected:
|
|||
|
||||
class pxSynchronousCommandEvent : public wxCommandEvent
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(pxSynchronousCommandEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(pxSynchronousCommandEvent);
|
||||
|
||||
protected:
|
||||
SynchronousActionState *m_sync;
|
||||
|
@ -199,7 +199,7 @@ wxDECLARE_EVENT(pxEvt_SynchronousCommand, pxSynchronousCommandEvent);
|
|||
class BaseMessageBoxEvent : public pxActionEvent
|
||||
{
|
||||
typedef pxActionEvent _parent;
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(BaseMessageBoxEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(BaseMessageBoxEvent);
|
||||
|
||||
protected:
|
||||
wxString m_Content;
|
||||
|
@ -374,7 +374,7 @@ public:
|
|||
class pxMessageBoxEvent : public BaseMessageBoxEvent
|
||||
{
|
||||
typedef BaseMessageBoxEvent _parent;
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(pxMessageBoxEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(pxMessageBoxEvent);
|
||||
|
||||
protected:
|
||||
wxString m_Title;
|
||||
|
@ -399,7 +399,7 @@ protected:
|
|||
class pxAssertionEvent : public BaseMessageBoxEvent
|
||||
{
|
||||
typedef BaseMessageBoxEvent _parent;
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(pxAssertionEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(pxAssertionEvent);
|
||||
|
||||
protected:
|
||||
wxString m_Stacktrace;
|
||||
|
|
|
@ -67,7 +67,7 @@ class wxAppWithHelpers : public wxApp
|
|||
{
|
||||
typedef wxApp _parent;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxAppWithHelpers)
|
||||
wxDECLARE_DYNAMIC_CLASS(wxAppWithHelpers);
|
||||
|
||||
protected:
|
||||
wxEventList m_IdleEventQueue;
|
||||
|
|
|
@ -501,7 +501,7 @@ public:
|
|||
class wxDialogWithHelpers : public wxDialog
|
||||
{
|
||||
typedef wxDialog _parent;
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDialogWithHelpers)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDialogWithHelpers);
|
||||
|
||||
protected:
|
||||
bool m_hasContextHelp;
|
||||
|
@ -565,7 +565,7 @@ protected:
|
|||
//
|
||||
class wxPanelWithHelpers : public wxPanel
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxPanelWithHelpers)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanelWithHelpers);
|
||||
|
||||
public:
|
||||
wxPanelWithHelpers(wxWindow *parent, wxOrientation orient, const wxString &staticBoxLabel);
|
||||
|
|
|
@ -24,7 +24,7 @@ wxDEFINE_EVENT(pxEvt_ThreadedTaskComplete, wxCommandEvent);
|
|||
// --------------------------------------------------------------------------------------
|
||||
// WaitForTaskDialog Implementations
|
||||
// --------------------------------------------------------------------------------------
|
||||
IMPLEMENT_DYNAMIC_CLASS(WaitForTaskDialog, wxDialogWithHelpers)
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(WaitForTaskDialog, wxDialogWithHelpers);
|
||||
|
||||
Threading::WaitForTaskDialog::WaitForTaskDialog(const wxString &title, const wxString &heading)
|
||||
: wxDialogWithHelpers(NULL, _("Waiting for tasks..."))
|
||||
|
|
|
@ -25,7 +25,7 @@ wxDEFINE_EVENT(pxEvt_DeleteThread, wxCommandEvent);
|
|||
wxDEFINE_EVENT(pxEvt_InvokeAction, pxActionEvent);
|
||||
wxDEFINE_EVENT(pxEvt_SynchronousCommand, pxSynchronousCommandEvent);
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(pxSimpleEvent, wxEvent)
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(pxSimpleEvent, wxEvent);
|
||||
|
||||
ConsoleLogSource_App::ConsoleLogSource_App()
|
||||
{
|
||||
|
@ -115,7 +115,7 @@ void SynchronousActionState::PostResult()
|
|||
// pxActionEvent Implementations
|
||||
// --------------------------------------------------------------------------------------
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(pxActionEvent, wxEvent)
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(pxActionEvent, wxEvent);
|
||||
|
||||
pxActionEvent::pxActionEvent(SynchronousActionState *sema, int msgtype)
|
||||
: wxEvent(0, msgtype)
|
||||
|
@ -156,7 +156,7 @@ void pxActionEvent::SetException(BaseException *ex)
|
|||
// --------------------------------------------------------------------------------------
|
||||
// pxSynchronousCommandEvent
|
||||
// --------------------------------------------------------------------------------------
|
||||
IMPLEMENT_DYNAMIC_CLASS(pxSynchronousCommandEvent, wxCommandEvent)
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(pxSynchronousCommandEvent, wxCommandEvent);
|
||||
|
||||
pxSynchronousCommandEvent::pxSynchronousCommandEvent(SynchronousActionState *sema, wxEventType commandType, int winid)
|
||||
: wxCommandEvent(pxEvt_SynchronousCommand, winid)
|
||||
|
@ -221,7 +221,7 @@ void pxSynchronousCommandEvent::SetException(BaseException *ex)
|
|||
//
|
||||
class pxRpcEvent : public pxActionEvent
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(pxRpcEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(pxRpcEvent);
|
||||
|
||||
typedef pxActionEvent _parent;
|
||||
|
||||
|
@ -263,7 +263,7 @@ protected:
|
|||
}
|
||||
};
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(pxRpcEvent, pxActionEvent)
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(pxRpcEvent, pxActionEvent);
|
||||
|
||||
// --------------------------------------------------------------------------------------
|
||||
// pxExceptionEvent implementations
|
||||
|
@ -288,7 +288,7 @@ void pxExceptionEvent::InvokeEvent()
|
|||
// would mean checking only one list of events per idle event, instead of two. (ie, ping
|
||||
// events can be appended to the idle event list, instead of into their own custom list).
|
||||
//
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxAppWithHelpers, wxApp)
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxAppWithHelpers, wxApp);
|
||||
|
||||
|
||||
// Posts a method to the main thread; non-blocking. Post occurs even when called from the
|
||||
|
|
|
@ -109,7 +109,7 @@ bool pxDialogExists(const wxString &name)
|
|||
|
||||
wxDEFINE_EVENT(pxEvt_OnDialogCreated, wxCommandEvent);
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxDialogWithHelpers, wxDialog)
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxDialogWithHelpers, wxDialog);
|
||||
|
||||
wxDialogWithHelpers::wxDialogWithHelpers()
|
||||
{
|
||||
|
@ -368,7 +368,7 @@ int wxDialogWithHelpers::GetCharHeight() const
|
|||
// wxPanelWithHelpers Implementations
|
||||
// --------------------------------------------------------------------------------------
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxPanelWithHelpers, wxPanel)
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxPanelWithHelpers, wxPanel);
|
||||
|
||||
void wxPanelWithHelpers::Init()
|
||||
{
|
||||
|
|
|
@ -697,7 +697,7 @@ protected:
|
|||
};
|
||||
|
||||
|
||||
DECLARE_APP(Pcsx2App)
|
||||
wxDECLARE_APP(Pcsx2App);
|
||||
|
||||
// --------------------------------------------------------------------------------------
|
||||
// s* macros! ['s' stands for 'shortcut']
|
||||
|
|
|
@ -131,7 +131,7 @@ protected:
|
|||
class LoadSinglePluginEvent : public pxActionEvent
|
||||
{
|
||||
typedef pxActionEvent _parent;
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(LoadSinglePluginEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(LoadSinglePluginEvent);
|
||||
|
||||
protected:
|
||||
wxString m_filename;
|
||||
|
@ -161,7 +161,7 @@ protected:
|
|||
class SinglePluginMethodEvent : public pxActionEvent
|
||||
{
|
||||
typedef pxActionEvent _parent;
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(SinglePluginMethodEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(SinglePluginMethodEvent);
|
||||
|
||||
protected:
|
||||
PluginsEnum_t m_pid;
|
||||
|
@ -186,8 +186,8 @@ protected:
|
|||
}
|
||||
};
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS( LoadSinglePluginEvent, pxActionEvent );
|
||||
IMPLEMENT_DYNAMIC_CLASS( SinglePluginMethodEvent, pxActionEvent );
|
||||
wxIMPLEMENT_DYNAMIC_CLASS( LoadSinglePluginEvent, pxActionEvent );
|
||||
wxIMPLEMENT_DYNAMIC_CLASS( SinglePluginMethodEvent, pxActionEvent );
|
||||
|
||||
// --------------------------------------------------------------------------------------
|
||||
// AppCorePlugins
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
#include <wx/osx/private.h> // needed to implement the app!
|
||||
#endif
|
||||
|
||||
IMPLEMENT_APP(Pcsx2App)
|
||||
wxIMPLEMENT_APP(Pcsx2App);
|
||||
|
||||
std::unique_ptr<AppConfig> g_Conf;
|
||||
|
||||
|
@ -232,7 +232,7 @@ void Pcsx2App::PostMenuAction( MenuIdentifiers menu_id ) const
|
|||
class Pcsx2AppMethodEvent : public pxActionEvent
|
||||
{
|
||||
typedef pxActionEvent _parent;
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(Pcsx2AppMethodEvent)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(Pcsx2AppMethodEvent);
|
||||
|
||||
protected:
|
||||
FnPtr_Pcsx2App m_Method;
|
||||
|
@ -272,7 +272,7 @@ protected:
|
|||
};
|
||||
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS( Pcsx2AppMethodEvent, pxActionEvent )
|
||||
wxIMPLEMENT_DYNAMIC_CLASS( Pcsx2AppMethodEvent, pxActionEvent );
|
||||
|
||||
#ifdef __WXMSW__
|
||||
extern int TranslateVKToWXK( u32 keysym );
|
||||
|
|
|
@ -114,7 +114,7 @@ class BaseApplicableDialog
|
|||
: public wxDialogWithHelpers
|
||||
, public IApplyState
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(BaseApplicableDialog)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(BaseApplicableDialog);
|
||||
|
||||
public:
|
||||
BaseApplicableDialog() {}
|
||||
|
@ -226,7 +226,7 @@ public:
|
|||
|
||||
class ApplicableWizardPage : public wxWizardPageSimple, public IApplyState
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(ApplicableWizardPage)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(ApplicableWizardPage);
|
||||
|
||||
public:
|
||||
ApplicableWizardPage(
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
#include "BreakpointWindow.h"
|
||||
|
||||
|
||||
BEGIN_EVENT_TABLE(BreakpointWindow, wxDialog)
|
||||
wxBEGIN_EVENT_TABLE(BreakpointWindow, wxDialog)
|
||||
EVT_RADIOBUTTON(wxID_ANY, BreakpointWindow::onRadioChange)
|
||||
EVT_BUTTON(wxID_OK, BreakpointWindow::onButtonOk)
|
||||
END_EVENT_TABLE()
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
|
||||
BreakpointWindow::BreakpointWindow( wxWindow* parent, DebugInterface* _cpu )
|
||||
|
|
|
@ -27,7 +27,7 @@ public:
|
|||
void initBreakpoint(u32 _address);
|
||||
void addBreakpoint();
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
protected:
|
||||
void onRadioChange(wxCommandEvent& evt);
|
||||
void onButtonOk(wxCommandEvent& evt);
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "Resources/Breakpoint_Active.h"
|
||||
#include "Resources/Breakpoint_Inactive.h"
|
||||
|
||||
BEGIN_EVENT_TABLE(CtrlDisassemblyView, wxWindow)
|
||||
wxBEGIN_EVENT_TABLE(CtrlDisassemblyView, wxWindow)
|
||||
EVT_PAINT(CtrlDisassemblyView::paintEvent)
|
||||
EVT_MOUSEWHEEL(CtrlDisassemblyView::mouseEvent)
|
||||
EVT_LEFT_DOWN(CtrlDisassemblyView::mouseEvent)
|
||||
|
@ -49,7 +49,7 @@ BEGIN_EVENT_TABLE(CtrlDisassemblyView, wxWindow)
|
|||
EVT_SIZE(CtrlDisassemblyView::sizeEvent)
|
||||
EVT_SET_FOCUS(CtrlDisassemblyView::focusEvent)
|
||||
EVT_KILL_FOCUS(CtrlDisassemblyView::focusEvent)
|
||||
END_EVENT_TABLE()
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
enum DisassemblyMenuIdentifiers
|
||||
{
|
||||
|
|
|
@ -49,7 +49,7 @@ public:
|
|||
void gotoAddress(u32 addr);
|
||||
void gotoPc() { gotoAddress(cpu->getPC()); };
|
||||
void scrollStepping(u32 newPc);
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
private:
|
||||
void drawBranchLine(wxDC& dc, std::map<u32,int>& addressPositions, BranchLine& line);
|
||||
void render(wxDC& dc);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <wx/clipbrd.h>
|
||||
|
||||
|
||||
BEGIN_EVENT_TABLE(CtrlMemView, wxWindow)
|
||||
wxBEGIN_EVENT_TABLE(CtrlMemView, wxWindow)
|
||||
EVT_PAINT(CtrlMemView::paintEvent)
|
||||
EVT_MOUSEWHEEL(CtrlMemView::mouseEvent)
|
||||
EVT_LEFT_DOWN(CtrlMemView::mouseEvent)
|
||||
|
@ -40,7 +40,7 @@ BEGIN_EVENT_TABLE(CtrlMemView, wxWindow)
|
|||
EVT_SCROLLWIN_LINEDOWN(CtrlMemView::scrollbarEvent)
|
||||
EVT_SCROLLWIN_PAGEUP(CtrlMemView::scrollbarEvent)
|
||||
EVT_SCROLLWIN_PAGEDOWN(CtrlMemView::scrollbarEvent)
|
||||
END_EVENT_TABLE()
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
enum MemoryViewMenuIdentifiers
|
||||
{
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
void gotoAddress(u32 address, bool pushInHistory = false);
|
||||
void updateReference(u32 address);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
private:
|
||||
void render(wxDC& dc);
|
||||
int hexGroupPositionFromIndex(int idx);
|
||||
|
|
|
@ -21,14 +21,14 @@
|
|||
#include "AppConfig.h"
|
||||
#include "DisassemblyDialog.h"
|
||||
|
||||
BEGIN_EVENT_TABLE(CtrlRegisterList, wxWindow)
|
||||
wxBEGIN_EVENT_TABLE(CtrlRegisterList, wxWindow)
|
||||
EVT_SIZE(CtrlRegisterList::sizeEvent)
|
||||
EVT_LEFT_DOWN(CtrlRegisterList::mouseEvent)
|
||||
EVT_RIGHT_DOWN(CtrlRegisterList::mouseEvent)
|
||||
EVT_RIGHT_UP(CtrlRegisterList::mouseEvent)
|
||||
EVT_MOTION(CtrlRegisterList::mouseEvent)
|
||||
EVT_KEY_DOWN(CtrlRegisterList::keydownEvent)
|
||||
END_EVENT_TABLE()
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
enum DisassemblyMenuIdentifiers
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
void onPopupClick(wxCommandEvent& evt);
|
||||
void sizeEvent(wxSizeEvent& evt);
|
||||
void redraw();
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
|
||||
virtual wxSize GetMinClientSize() const
|
||||
{
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
#include "BreakpointWindow.h"
|
||||
#include "DebugEvents.h"
|
||||
|
||||
BEGIN_EVENT_TABLE(GenericListView, wxWindow)
|
||||
wxBEGIN_EVENT_TABLE(GenericListView, wxWindow)
|
||||
EVT_SIZE(GenericListView::sizeEvent)
|
||||
EVT_KEY_DOWN(GenericListView::keydownEvent)
|
||||
EVT_RIGHT_DOWN(GenericListView::mouseEvent)
|
||||
EVT_RIGHT_UP(GenericListView::mouseEvent)
|
||||
EVT_LEFT_DCLICK(GenericListView::mouseEvent)
|
||||
EVT_LIST_ITEM_RIGHT_CLICK(wxID_ANY,GenericListView::listEvent)
|
||||
END_EVENT_TABLE()
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
GenericListView::GenericListView(wxWindow* parent, GenericListViewColumn* columns, int columnCount)
|
||||
: wxListView(parent,wxID_ANY,wxDefaultPosition,wxDefaultSize,wxLC_VIRTUAL|wxLC_REPORT|wxLC_SINGLE_SEL|wxNO_BORDER)
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
GenericListView(wxWindow* parent, GenericListViewColumn* columns, int columnCount);
|
||||
void update();
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
protected:
|
||||
void sizeEvent(wxSizeEvent& evt);
|
||||
void keydownEvent(wxKeyEvent& evt);
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
BEGIN_EVENT_TABLE(DisassemblyDialog, wxFrame)
|
||||
wxBEGIN_EVENT_TABLE(DisassemblyDialog, wxFrame)
|
||||
EVT_COMMAND( wxID_ANY, debEVT_SETSTATUSBARTEXT, DisassemblyDialog::onDebuggerEvent )
|
||||
EVT_COMMAND( wxID_ANY, debEVT_UPDATELAYOUT, DisassemblyDialog::onDebuggerEvent )
|
||||
EVT_COMMAND( wxID_ANY, debEVT_GOTOINMEMORYVIEW, DisassemblyDialog::onDebuggerEvent )
|
||||
|
@ -42,11 +42,11 @@ BEGIN_EVENT_TABLE(DisassemblyDialog, wxFrame)
|
|||
EVT_COMMAND( wxID_ANY, debEVT_MAPLOADED, DisassemblyDialog::onDebuggerEvent )
|
||||
EVT_SIZE(DisassemblyDialog::onSizeEvent)
|
||||
EVT_CLOSE( DisassemblyDialog::onClose )
|
||||
END_EVENT_TABLE()
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
BEGIN_EVENT_TABLE(CpuTabPage, wxPanel)
|
||||
wxBEGIN_EVENT_TABLE(CpuTabPage, wxPanel)
|
||||
EVT_LISTBOX_DCLICK( wxID_ANY, CpuTabPage::listBoxHandler)
|
||||
END_EVENT_TABLE()
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
DebuggerHelpDialog::DebuggerHelpDialog(wxWindow* parent)
|
||||
: wxDialog(parent,wxID_ANY,L"Help")
|
||||
|
|
|
@ -57,7 +57,7 @@ public:
|
|||
u32 getStepOutAddress();
|
||||
|
||||
void listBoxHandler(wxCommandEvent& event);
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
private:
|
||||
void setBottomTabPage(wxWindow* win);
|
||||
void postEvent(wxEventType type, int value);
|
||||
|
@ -93,7 +93,7 @@ public:
|
|||
WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
||||
#endif
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
protected:
|
||||
void onBreakRunClicked(wxCommandEvent& evt);
|
||||
void onStepOverClicked(wxCommandEvent& evt);
|
||||
|
|
|
@ -86,7 +86,7 @@ public:
|
|||
// --------------------------------------------------------------------------------------
|
||||
// BaseApplicableDialog (implementations)
|
||||
// --------------------------------------------------------------------------------------
|
||||
IMPLEMENT_DYNAMIC_CLASS(BaseApplicableDialog, wxDialogWithHelpers)
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(BaseApplicableDialog, wxDialogWithHelpers);
|
||||
|
||||
BaseApplicableDialog::BaseApplicableDialog( wxWindow* parent, const wxString& title, const pxDialogCreationFlags& cflags )
|
||||
: wxDialogWithHelpers( parent, title, cflags.MinWidth(425).Minimize() )
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
using namespace Panels;
|
||||
using namespace pxSizerFlags;
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(ApplicableWizardPage, wxWizardPageSimple)
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(ApplicableWizardPage, wxWizardPageSimple);
|
||||
|
||||
ApplicableWizardPage::ApplicableWizardPage( wxWizard* parent, wxWizardPage* prev, wxWizardPage* next, const wxBitmap& bitmap )
|
||||
: wxWizardPageSimple( parent, prev, next, bitmap )
|
||||
|
|
|
@ -45,7 +45,7 @@ static int pxMessageDialog( const wxString& caption, const wxString& content, co
|
|||
// --------------------------------------------------------------------------------------
|
||||
// BaseMessageBoxEvent Implementation
|
||||
// --------------------------------------------------------------------------------------
|
||||
IMPLEMENT_DYNAMIC_CLASS( BaseMessageBoxEvent, pxActionEvent )
|
||||
wxIMPLEMENT_DYNAMIC_CLASS( BaseMessageBoxEvent, pxActionEvent );
|
||||
|
||||
BaseMessageBoxEvent::BaseMessageBoxEvent( const wxString& content, SynchronousActionState& instdata )
|
||||
: m_Content( content )
|
||||
|
@ -81,7 +81,7 @@ int BaseMessageBoxEvent::_DoDialog() const
|
|||
// --------------------------------------------------------------------------------------
|
||||
// pxMessageBoxEvent Implementation
|
||||
// --------------------------------------------------------------------------------------
|
||||
IMPLEMENT_DYNAMIC_CLASS( pxMessageBoxEvent, BaseMessageBoxEvent )
|
||||
wxIMPLEMENT_DYNAMIC_CLASS( pxMessageBoxEvent, BaseMessageBoxEvent );
|
||||
|
||||
pxMessageBoxEvent::pxMessageBoxEvent( const wxString& title, const wxString& content, const MsgButtons& buttons, SynchronousActionState& instdata )
|
||||
: BaseMessageBoxEvent( content, instdata )
|
||||
|
@ -105,7 +105,7 @@ int pxMessageBoxEvent::_DoDialog() const
|
|||
// --------------------------------------------------------------------------------------
|
||||
// pxAssertionEvent Implementation
|
||||
// --------------------------------------------------------------------------------------
|
||||
IMPLEMENT_DYNAMIC_CLASS( pxAssertionEvent, BaseMessageBoxEvent )
|
||||
wxIMPLEMENT_DYNAMIC_CLASS( pxAssertionEvent, BaseMessageBoxEvent );
|
||||
|
||||
pxAssertionEvent::pxAssertionEvent( const wxString& content, const wxString& trace, SynchronousActionState& instdata )
|
||||
: BaseMessageBoxEvent( content, instdata )
|
||||
|
|
|
@ -150,7 +150,7 @@ public:
|
|||
// --------------------------------------------------------------------------------------
|
||||
class ApplyPluginsDialog : public WaitForTaskDialog
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(ApplyPluginsDialog)
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(ApplyPluginsDialog);
|
||||
|
||||
typedef wxDialogWithHelpers _parent;
|
||||
|
||||
|
@ -222,7 +222,7 @@ protected:
|
|||
// --------------------------------------------------------------------------------------
|
||||
// ApplyPluginsDialog Implementations
|
||||
// --------------------------------------------------------------------------------------
|
||||
IMPLEMENT_DYNAMIC_CLASS(ApplyPluginsDialog, WaitForTaskDialog)
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(ApplyPluginsDialog, WaitForTaskDialog);
|
||||
|
||||
ApplyPluginsDialog::ApplyPluginsDialog( BaseApplicableConfigPanel* panel )
|
||||
: WaitForTaskDialog(_("Applying settings...")), m_panel(NULL)
|
||||
|
|
|
@ -127,9 +127,9 @@ void opPanel::MoveJoystick(int axe, int value)
|
|||
}
|
||||
}
|
||||
|
||||
BEGIN_EVENT_TABLE(opPanel, wxPanel)
|
||||
wxBEGIN_EVENT_TABLE(opPanel, wxPanel)
|
||||
EVT_PAINT(opPanel::OnPaint)
|
||||
END_EVENT_TABLE()
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
void opPanel::OnPaint(wxPaintEvent &event)
|
||||
{
|
||||
|
|
|
@ -64,7 +64,7 @@ class opPanel : public wxPanel
|
|||
wxBitmap m_picture[NB_IMG];
|
||||
bool m_show_image[NB_IMG];
|
||||
int m_left_cursor_x, m_left_cursor_y, m_right_cursor_x, m_right_cursor_y;
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
void OnPaint(wxPaintEvent &event);
|
||||
|
||||
public:
|
||||
|
|
|
@ -137,9 +137,9 @@ void opPanel::MoveJoystick(int axe, int value)
|
|||
}
|
||||
}
|
||||
|
||||
BEGIN_EVENT_TABLE(opPanel, wxPanel)
|
||||
wxBEGIN_EVENT_TABLE(opPanel, wxPanel)
|
||||
EVT_PAINT(opPanel::OnPaint)
|
||||
END_EVENT_TABLE()
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
void opPanel::OnPaint(wxPaintEvent &event)
|
||||
{
|
||||
|
|
|
@ -64,7 +64,7 @@ class opPanel : public wxPanel
|
|||
wxBitmap m_picture[NB_IMG];
|
||||
bool m_show_image[NB_IMG];
|
||||
int m_left_cursor_x, m_left_cursor_y, m_right_cursor_x, m_right_cursor_y;
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
void OnPaint(wxPaintEvent &event);
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue