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:
sudonim1 2011-03-12 22:17:53 +00:00
parent b31634df8f
commit 47b3b57bee
2 changed files with 4 additions and 0 deletions

View File

@ -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 )

View File

@ -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