project64/Source/Project64/UserInterface/Settings/SettingsPage-DiskDrive.h

55 lines
1.6 KiB
C
Raw Normal View History

2019-08-21 06:50:47 +00:00
#pragma once
class CDiskDrivePage :
2022-09-26 02:31:54 +00:00
public CSettingsPageImpl<CDiskDrivePage>,
public CSettingsPage
2019-08-21 06:50:47 +00:00
{
2022-09-26 02:31:54 +00:00
BEGIN_MSG_MAP_EX(CDiskDrivePage)
{
COMMAND_ID_HANDLER_EX(IDC_SELECT_IPL_JP_DIR, SelectIplDirJp);
COMMAND_ID_HANDLER_EX(IDC_SELECT_IPL_US_DIR, SelectIplDirUs);
COMMAND_ID_HANDLER_EX(IDC_SELECT_IPL_TL_DIR, SelectIplDirTl);
COMMAND_HANDLER_EX(IDC_IPL_JP_DIR, EN_UPDATE, IplDirJpChanged);
COMMAND_HANDLER_EX(IDC_IPL_US_DIR, EN_UPDATE, IplDirUsChanged);
COMMAND_HANDLER_EX(IDC_IPL_TL_DIR, EN_UPDATE, IplDirTlChanged);
COMMAND_HANDLER_EX(IDC_DISKSAVETYPE, LBN_SELCHANGE, ComboBoxChanged);
}
END_MSG_MAP()
enum
{
IDD = IDD_Settings_DiskDrive
};
2019-08-21 06:50:47 +00:00
public:
2022-09-26 02:31:54 +00:00
CDiskDrivePage(HWND hParent, const RECT & rcDispay);
LanguageStringID PageTitle(void)
{
return TAB_DISKDRIVE;
}
void HidePage(void);
void ShowPage(void);
void ApplySettings(bool UpdateScreen);
bool EnableReset(void);
void ResetPage(void);
2019-08-21 06:50:47 +00:00
private:
2022-09-26 02:31:54 +00:00
void SelectIplDirJp(UINT Code, int id, HWND ctl);
2019-08-21 06:50:47 +00:00
void SelectIplDirUs(UINT Code, int id, HWND ctl);
void SelectIplDirTl(UINT Code, int id, HWND ctl);
void IplDirJpChanged(UINT Code, int id, HWND ctl);
void IplDirUsChanged(UINT Code, int id, HWND ctl);
2022-09-26 02:31:54 +00:00
void IplDirTlChanged(UINT Code, int id, HWND ctl);
2019-08-21 06:50:47 +00:00
2022-09-26 02:31:54 +00:00
void UpdatePageSettings(void);
void SelectFile(LanguageStringID Title, CModifiedEditBox & EditBox);
CModifiedEditBox m_IplDirJp;
2019-08-21 06:50:47 +00:00
CModifiedEditBox m_IplDirUs;
CModifiedEditBox m_IplDirTl;
2022-09-26 02:31:54 +00:00
bool m_InUpdateSettings;
2019-08-21 06:50:47 +00:00
};