2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project 64 - A Nintendo 64 emulator. *
|
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
2010-06-07 02:23:58 +00:00
|
|
|
#include "stdafx.h"
|
2008-11-14 20:51:06 +00:00
|
|
|
#include "Settings Page.h"
|
|
|
|
|
2012-09-27 06:57:51 +00:00
|
|
|
CGeneralOptionsPage::CGeneralOptionsPage(CSettingConfig * SettingsConfig, HWND hParent, const RECT & rcDispay ) :
|
|
|
|
m_SettingsConfig(SettingsConfig)
|
2008-11-14 20:51:06 +00:00
|
|
|
{
|
|
|
|
if (!Create(hParent,rcDispay))
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_AUTOSLEEP),Setting_AutoSleep);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_LOAD_FULLSCREEN),Setting_AutoFullscreen);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_SCREEN_SAVER),Setting_DisableScrSaver);
|
|
|
|
AddModCheckBox(GetDlgItem(IDC_BASIC_MODE),UserInterface_BasicMode);
|
|
|
|
|
2008-12-04 10:41:51 +00:00
|
|
|
CModifiedEditBox * TxtBox = AddModTextBox(GetDlgItem(IDC_REMEMBER),File_RecentGameFileCount, false);
|
|
|
|
TxtBox->SetTextField(GetDlgItem(IDC_MAXROMS_TXT));
|
|
|
|
|
|
|
|
TxtBox = AddModTextBox(GetDlgItem(IDC_REMEMBERDIR),Directory_RecentGameDirCount, false);
|
|
|
|
TxtBox->SetTextField(GetDlgItem(IDC_MAXROMDIR_TXT));
|
|
|
|
|
2008-11-14 20:51:06 +00:00
|
|
|
UpdatePageSettings();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CGeneralOptionsPage::HidePage()
|
|
|
|
{
|
|
|
|
ShowWindow(SW_HIDE);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CGeneralOptionsPage::ShowPage()
|
|
|
|
{
|
|
|
|
ShowWindow(SW_SHOW);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CGeneralOptionsPage::ApplySettings( bool UpdateScreen )
|
|
|
|
{
|
|
|
|
CSettingsPageImpl<CGeneralOptionsPage>::ApplySettings(UpdateScreen);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CGeneralOptionsPage::EnableReset ( void )
|
|
|
|
{
|
|
|
|
if (CSettingsPageImpl<CGeneralOptionsPage>::EnableReset()) { return true; }
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CGeneralOptionsPage::ResetPage()
|
|
|
|
{
|
|
|
|
CSettingsPageImpl<CGeneralOptionsPage>::ResetPage();
|
|
|
|
}
|
2012-09-27 06:57:51 +00:00
|
|
|
|
|
|
|
void CGeneralOptionsPage::OnBasicMode ( UINT Code, int id, HWND ctl )
|
|
|
|
{
|
|
|
|
CheckBoxChanged(Code,id,ctl);
|
|
|
|
m_SettingsConfig->UpdateAdvanced((int)::SendMessage(ctl, BM_GETCHECK, 0, 0) == 0);
|
|
|
|
}
|