pcsx2: Use Bind compatible event declarations/definitions

Also remove some unused event types.
This commit is contained in:
Jonathan Li 2016-06-14 22:03:03 +01:00
parent aee0d4c0c8
commit 7ac47676e2
7 changed files with 13 additions and 30 deletions

View File

@ -35,12 +35,7 @@ class DisassemblyDialog;
typedef void FnType_OnThreadComplete(const wxCommandEvent& evt);
typedef void (Pcsx2App::*FnPtr_Pcsx2App)();
BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE( pxEvt_LoadPluginsComplete, -1 )
DECLARE_EVENT_TYPE( pxEvt_LogicalVsync, -1 )
DECLARE_EVENT_TYPE( pxEvt_ThreadTaskTimeout_SysExec, -1 )
DECLARE_EVENT_TYPE( pxEvt_SetSettingsPage, -1 )
END_DECLARE_EVENT_TYPES()
wxDECLARE_EVENT(pxEvt_SetSettingsPage, wxCommandEvent);
// This is used when the GS plugin is handling its own window. Messages from the PAD
// are piped through to an app-level message handler, which dispatches them through

View File

@ -61,11 +61,6 @@
IMPLEMENT_APP(Pcsx2App)
DEFINE_EVENT_TYPE( pxEvt_LoadPluginsComplete );
DEFINE_EVENT_TYPE( pxEvt_LogicalVsync );
DEFINE_EVENT_TYPE( pxEvt_ThreadTaskTimeout_SysExec );
std::unique_ptr<AppConfig> g_Conf;
AspectRatioType iniAR;

View File

@ -23,9 +23,7 @@
class BaseApplicableConfigPanel;
class BaseApplicableDialog;
BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE( pxEvt_ApplySettings, -1 )
END_DECLARE_EVENT_TYPES()
wxDECLARE_EVENT(pxEvt_ApplySettings, wxCommandEvent);
namespace Exception
{

View File

@ -27,9 +27,9 @@
#include <wx/listbook.h>
#include <wx/spinctrl.h>
DEFINE_EVENT_TYPE( pxEvt_ApplySettings )
DEFINE_EVENT_TYPE( pxEvt_SetSettingsPage )
DEFINE_EVENT_TYPE( pxEvt_SomethingChanged )
wxDEFINE_EVENT(pxEvt_ApplySettings, wxCommandEvent);
wxDEFINE_EVENT(pxEvt_SetSettingsPage, wxCommandEvent);
wxDEFINE_EVENT(pxEvt_SomethingChanged, wxCommandEvent);
using namespace Panels;

View File

@ -29,9 +29,7 @@ namespace Panels
class BaseMcdListPanel;
}
BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE( pxEvt_SomethingChanged, -1 );
END_DECLARE_EVENT_TYPES()
wxDECLARE_EVENT(pxEvt_SomethingChanged, wxCommandEvent);
namespace Dialogs
{

View File

@ -176,7 +176,6 @@ bool McdSlotItem::operator!=( const McdSlotItem& right ) const
return operator==( right );
}
//DEFINE_EVENT_TYPE( pxEvt_RefreshSelections );
// =====================================================================================================
// BaseMcdListPanel (implementations)
@ -196,7 +195,6 @@ Panels::BaseMcdListPanel::BaseMcdListPanel( wxWindow* parent )
m_btn_Refresh = new wxButton( this, wxID_ANY, _("Refresh list") );
Connect( m_btn_Refresh->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(BaseMcdListPanel::OnRefreshSelections) );
//Connect( pxEvt_RefreshSelections, wxCommandEventHandler(BaseMcdListPanel::OnRefreshSelections) );
}
void Panels::BaseMcdListPanel::RefreshMcds() const

View File

@ -40,15 +40,14 @@ static const bool DisableThreading =
using namespace pxSizerFlags;
using namespace Threading;
BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE(pxEvt_EnumeratedNext, -1)
DECLARE_EVENT_TYPE(pxEvt_EnumerationFinished, -1)
DECLARE_EVENT_TYPE(pxEVT_ShowStatusBar, -1)
END_DECLARE_EVENT_TYPES()
DEFINE_EVENT_TYPE(pxEvt_EnumeratedNext);
DEFINE_EVENT_TYPE(pxEvt_EnumerationFinished);
DEFINE_EVENT_TYPE(pxEVT_ShowStatusBar);
wxDECLARE_EVENT(pxEvt_EnumeratedNext, wxCommandEvent);
wxDECLARE_EVENT(pxEvt_EnumerationFinished, wxCommandEvent);
wxDECLARE_EVENT(pxEVT_ShowStatusBar, wxCommandEvent);
wxDEFINE_EVENT(pxEvt_EnumeratedNext, wxCommandEvent);
wxDEFINE_EVENT(pxEvt_EnumerationFinished, wxCommandEvent);
wxDEFINE_EVENT(pxEVT_ShowStatusBar, wxCommandEvent);
typedef s32 (CALLBACK* TestFnptr)();
typedef void (CALLBACK* ConfigureFnptr)();