Fix the RecentIsoList.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2484 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2010-01-23 02:02:05 +00:00
parent b594d6e37b
commit 12200c2c10
4 changed files with 13 additions and 23 deletions

View File

@ -163,13 +163,14 @@ protected:
};
// --------------------------------------------------------------------------------------
// EventListenerHelper_AppStatus
// EventListenerHelpers (CoreThread / Plugins / AppStatus)
// --------------------------------------------------------------------------------------
// Welcome to the awkward world of C++ multi-inheritence. wxWidgets' Connect() system is
// incompatible because of limitations in C++ class member function pointers, so we need
// this second layer class to act as a bridge between the event system and the class's
// handler implementations.
//
template< typename TypeToDispatchTo >
class EventListenerHelper_CoreThread : public IEventListener_CoreThread
{
@ -197,14 +198,6 @@ protected:
void OnCoreStatus_Stopped() { Owner.OnCoreStatus_Stopped(); }
};
// --------------------------------------------------------------------------------------
// EventListenerHelper_AppStatus
// --------------------------------------------------------------------------------------
// Welcome to the awkward world of C++ multi-inheritence. wxWidgets' Connect() system is
// incompatible because of limitations in C++ class member function pointers, so we need
// this second layer class to act as a bridge between the event system and the class's
// handler implementations.
//
template< typename TypeToDispatchTo >
class EventListenerHelper_Plugins : public IEventListener_Plugins
{
@ -234,14 +227,6 @@ protected:
void OnPluginsEvt_Unloaded() { Owner.OnPluginsEvt_Unloaded(); }
};
// --------------------------------------------------------------------------------------
// EventListenerHelper_AppStatus
// --------------------------------------------------------------------------------------
// Welcome to the awkward world of C++ multi-inheritence. wxWidgets' Connect() system is
// incompatible because of limitations in C++ class member function pointers, so we need
// this second layer class to act as a bridge between the event system and the class's
// handler implementations.
//
template< typename TypeToDispatchTo >
class EventListenerHelper_AppStatus : public IEventListener_AppStatus
{

View File

@ -89,9 +89,14 @@ public:
// --------------------------------------------------------------------------------------
// pxLogTextCtrl
// --------------------------------------------------------------------------------------
class pxLogTextCtrl : public wxTextCtrl, public IEventListener_CoreThread, public IEventListener_Plugins
class pxLogTextCtrl : public wxTextCtrl,
public IEventListener_CoreThread,
public IEventListener_Plugins
{
protected:
//EventListenerHelper_CoreThread<pxLogTextCtrl> m_listener_CoreThread;
//EventListenerHelper_Plugins<pxLogTextCtrl> m_listener_Plugins;
#ifdef __WXMSW__
int m_win32_LinesPerPage;
int m_win32_LinesPerScroll;
@ -101,7 +106,7 @@ protected:
public:
pxLogTextCtrl(wxWindow* parent);
~pxLogTextCtrl() throw();
virtual ~pxLogTextCtrl() throw();
bool HasWriteLock() const { return m_FreezeWrites; }
void ConcludeIssue( int lines );

View File

@ -137,12 +137,12 @@ void RecentIsoManager::InsertIntoMenu( int id )
curitem.ItemPtr->Check();
}
void RecentIsoManager::AppEvent_OnSettingsApplied()
void RecentIsoManager::AppStatusEvent_OnSettingsApplied()
{
// TODO : Implement application of Recent Iso List "maximum" history option
}
void RecentIsoManager::AppEvent_OnSettingsLoadSave( const AppSettingsEventInfo& evt )
void RecentIsoManager::AppStatusEvent_OnSettingsLoadSave( const AppSettingsEventInfo& evt )
{
IniInterface& ini( evt.GetIni() );

View File

@ -56,7 +56,7 @@ protected:
void InsertIntoMenu( int id );
void OnChangedSelection( wxCommandEvent& evt );
void AppEvent_OnSettingsLoadSave( const AppSettingsEventInfo& ini );
void AppEvent_OnSettingsApplied();
void AppStatusEvent_OnSettingsLoadSave( const AppSettingsEventInfo& ini );
void AppStatusEvent_OnSettingsApplied();
};