2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
2015-11-10 05:21:49 +00:00
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
2012-12-19 09:30:18 +00:00
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
2008-11-14 20:51:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CGeneralOptionsPage :
|
2010-09-22 21:43:42 +00:00
|
|
|
public CSettingsPageImpl<CGeneralOptionsPage>,
|
2008-11-14 20:51:06 +00:00
|
|
|
public CSettingsPage
|
|
|
|
{
|
|
|
|
|
|
|
|
BEGIN_MSG_MAP_EX(CGeneralOptionsPage)
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_AUTOSLEEP,CheckBoxChanged)
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_LOAD_FULLSCREEN,CheckBoxChanged)
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_SCREEN_SAVER,CheckBoxChanged)
|
2012-09-27 06:57:51 +00:00
|
|
|
COMMAND_ID_HANDLER_EX(IDC_BASIC_MODE,OnBasicMode)
|
2008-12-04 10:41:51 +00:00
|
|
|
COMMAND_HANDLER_EX(IDC_REMEMBER,EN_UPDATE,EditBoxChanged)
|
|
|
|
COMMAND_HANDLER_EX(IDC_REMEMBERDIR,EN_UPDATE,EditBoxChanged)
|
2008-11-14 20:51:06 +00:00
|
|
|
END_MSG_MAP()
|
|
|
|
|
|
|
|
enum { IDD = IDD_Settings_General };
|
|
|
|
|
|
|
|
public:
|
2012-09-27 06:57:51 +00:00
|
|
|
CGeneralOptionsPage(CSettingConfig * SettingsConfig, HWND hParent, const RECT & rcDispay );
|
2008-11-14 20:51:06 +00:00
|
|
|
|
|
|
|
LanguageStringID PageTitle ( void ) { return TAB_OPTIONS; }
|
|
|
|
void HidePage ( void );
|
|
|
|
void ShowPage ( void );
|
|
|
|
void ApplySettings ( bool UpdateScreen );
|
|
|
|
bool EnableReset ( void );
|
|
|
|
void ResetPage ( void );
|
|
|
|
|
|
|
|
private:
|
2012-09-27 06:57:51 +00:00
|
|
|
void OnBasicMode ( UINT Code, int id, HWND ctl );
|
|
|
|
CSettingConfig * m_SettingsConfig;
|
2008-11-14 20:51:06 +00:00
|
|
|
};
|