mirror of https://github.com/PCSX2/pcsx2.git
GUI: added an event for panels to use to inform the configuration dialog that the configuration has changed by means other than the user directly editing something.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4420 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
b31634df8f
commit
47b3b57bee
|
@ -31,6 +31,7 @@
|
|||
|
||||
DEFINE_EVENT_TYPE( pxEvt_ApplySettings )
|
||||
DEFINE_EVENT_TYPE( pxEvt_SetSettingsPage )
|
||||
DEFINE_EVENT_TYPE( pxEvt_SomethingChanged )
|
||||
|
||||
using namespace Panels;
|
||||
|
||||
|
@ -165,6 +166,8 @@ Dialogs::BaseConfigurationDialog::BaseConfigurationDialog( wxWindow* parent, con
|
|||
ConnectSomethingChanged( SPINCTRL_UPDATED );
|
||||
ConnectSomethingChanged( SLIDER_UPDATED );
|
||||
ConnectSomethingChanged( DIRPICKER_CHANGED );
|
||||
|
||||
Connect( pxEvt_SomethingChanged, wxCommandEventHandler( BaseConfigurationDialog::OnSomethingChanged ) );
|
||||
}
|
||||
|
||||
void Dialogs::BaseConfigurationDialog::AddListbook( wxSizer* sizer )
|
||||
|
|
|
@ -30,6 +30,7 @@ namespace Panels
|
|||
|
||||
BEGIN_DECLARE_EVENT_TYPES()
|
||||
DECLARE_EVENT_TYPE( pxEvt_SetSettingsPage, -1 )
|
||||
DECLARE_EVENT_TYPE( pxEvt_SomethingChanged, -1 );
|
||||
END_DECLARE_EVENT_TYPES()
|
||||
|
||||
namespace Dialogs
|
||||
|
|
Loading…
Reference in New Issue