2008-09-18 03:15:49 +00:00
|
|
|
#pragma once
|
|
|
|
|
2008-11-14 20:51:06 +00:00
|
|
|
#include <Plugin.h>
|
|
|
|
|
2008-09-18 03:15:49 +00:00
|
|
|
class CGamePluginPage :
|
2008-11-14 20:51:06 +00:00
|
|
|
public CSettingsPageImpl<CGamePluginPage>,
|
2008-09-18 03:15:49 +00:00
|
|
|
public CSettingsPage
|
|
|
|
{
|
|
|
|
BEGIN_MSG_MAP_EX(CGamePluginPage)
|
2008-11-14 20:51:06 +00:00
|
|
|
COMMAND_HANDLER_EX(GFX_LIST,LBN_SELCHANGE,GfxPluginChanged)
|
|
|
|
COMMAND_HANDLER_EX(AUDIO_LIST,LBN_SELCHANGE,AudioPluginChanged)
|
|
|
|
COMMAND_HANDLER_EX(CONT_LIST,LBN_SELCHANGE,ControllerPluginChanged)
|
|
|
|
COMMAND_HANDLER_EX(RSP_LIST,LBN_SELCHANGE,RspPluginChanged)
|
|
|
|
COMMAND_ID_HANDLER_EX(GFX_ABOUT,GfxPluginAbout)
|
|
|
|
COMMAND_ID_HANDLER_EX(AUDIO_ABOUT,AudioPluginAbout)
|
|
|
|
COMMAND_ID_HANDLER_EX(CONT_ABOUT,ControllerPluginAbout)
|
|
|
|
COMMAND_ID_HANDLER_EX(RSP_ABOUT,RspPluginAbout)
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_HLE_GFX,HleGfxChanged)
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_HLE_AUDIO,HleAudioChanged)
|
2008-09-18 03:15:49 +00:00
|
|
|
END_MSG_MAP()
|
|
|
|
|
|
|
|
enum { IDD = IDD_Settings_GamePlugin };
|
|
|
|
|
|
|
|
public:
|
|
|
|
CGamePluginPage(HWND hParent, const RECT & rcDispay );
|
|
|
|
|
2008-11-14 20:51:06 +00:00
|
|
|
LanguageStringID PageTitle ( void ) { return TAB_PLUGIN; }
|
|
|
|
void HidePage ( void );
|
|
|
|
void ShowPage ( void );
|
|
|
|
void ApplySettings ( bool UpdateScreen );
|
|
|
|
bool EnableReset ( void );
|
|
|
|
void ResetPage ( void );
|
|
|
|
|
|
|
|
private:
|
|
|
|
void GfxPluginAbout ( UINT Code, int id, HWND ctl ) { ShowAboutButton(GFX_LIST); }
|
|
|
|
void AudioPluginAbout ( UINT Code, int id, HWND ctl ) { ShowAboutButton(AUDIO_LIST); }
|
|
|
|
void ControllerPluginAbout ( UINT Code, int id, HWND ctl ) { ShowAboutButton(CONT_LIST); }
|
|
|
|
void RspPluginAbout ( UINT Code, int id, HWND ctl ) { ShowAboutButton(RSP_LIST); }
|
|
|
|
|
|
|
|
void GfxPluginChanged ( UINT Code, int id, HWND ctl ) { PluginItemChanged(GFX_LIST,GFX_ABOUT); }
|
|
|
|
void AudioPluginChanged ( UINT Code, int id, HWND ctl ) { PluginItemChanged(AUDIO_LIST,AUDIO_ABOUT); }
|
|
|
|
void ControllerPluginChanged ( UINT Code, int id, HWND ctl ) { PluginItemChanged(CONT_LIST,CONT_ABOUT); }
|
|
|
|
void RspPluginChanged ( UINT Code, int id, HWND ctl ) { PluginItemChanged(RSP_LIST,RSP_ABOUT); }
|
|
|
|
|
|
|
|
void HleGfxChanged ( UINT Code, int id, HWND ctl );
|
|
|
|
void HleAudioChanged ( UINT Code, int id, HWND ctl );
|
|
|
|
|
|
|
|
void ShowAboutButton ( int id );
|
|
|
|
void PluginItemChanged ( int id, int AboutID, bool bSetChanged = true );
|
|
|
|
|
|
|
|
void AddPlugins (int ListId,SettingID Type, PLUGIN_TYPE PluginType );
|
|
|
|
void UpdatePageSettings ( void );
|
|
|
|
void ApplyComboBoxes ( void );
|
|
|
|
bool ResetComboBox ( CModifiedComboBox & ComboBox, SettingID Type );
|
|
|
|
|
|
|
|
CPartialGroupBox m_GfxGroup, m_AudioGroup, m_ControlGroup, m_RspGroup;
|
|
|
|
CPluginList m_PluginList;
|
2008-09-18 03:15:49 +00:00
|
|
|
};
|