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 COptionsGameBrowserPage :
|
2015-12-23 19:39:23 +00:00
|
|
|
public CSettingsPageImpl<COptionsGameBrowserPage>,
|
|
|
|
public CSettingsPage
|
2008-11-14 20:51:06 +00:00
|
|
|
{
|
2015-12-23 19:39:23 +00:00
|
|
|
BEGIN_MSG_MAP_EX(COptionsGameBrowserPage)
|
|
|
|
COMMAND_HANDLER_EX(IDC_ADD, BN_CLICKED, AddFieldClicked)
|
|
|
|
COMMAND_HANDLER_EX(IDC_REMOVE, BN_CLICKED, RemoveFieldClicked)
|
|
|
|
COMMAND_HANDLER_EX(IDC_UP, BN_CLICKED, MoveFieldUpClicked)
|
|
|
|
COMMAND_HANDLER_EX(IDC_DOWN, BN_CLICKED, MoveFieldDownClicked)
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_USE_ROMBROWSER, UseRomBrowserChanged)
|
|
|
|
COMMAND_ID_HANDLER_EX(IDC_RECURSION, CheckBoxChanged)
|
|
|
|
END_MSG_MAP()
|
2008-11-14 20:51:06 +00:00
|
|
|
|
2015-12-23 19:39:23 +00:00
|
|
|
enum { IDD = IDD_Settings_RomBrowser };
|
2008-11-14 20:51:06 +00:00
|
|
|
|
|
|
|
public:
|
2015-12-23 19:39:23 +00:00
|
|
|
COptionsGameBrowserPage(HWND hParent, const RECT & rcDispay);
|
2008-11-14 20:51:06 +00:00
|
|
|
|
2015-12-23 19:39:23 +00:00
|
|
|
LanguageStringID PageTitle(void) { return TAB_ROMSELECTION; }
|
|
|
|
void HidePage(void);
|
|
|
|
void ShowPage(void);
|
|
|
|
void ApplySettings(bool UpdateScreen);
|
|
|
|
bool EnableReset(void);
|
|
|
|
void ResetPage(void);
|
2008-11-14 20:51:06 +00:00
|
|
|
|
|
|
|
private:
|
2015-12-23 19:39:23 +00:00
|
|
|
void UpdatePageSettings(void);
|
|
|
|
void UpdateFieldList(const ROMBROWSER_FIELDS_LIST & Fields);
|
|
|
|
void AddFieldClicked(UINT Code, int id, HWND ctl);
|
|
|
|
void RemoveFieldClicked(UINT Code, int id, HWND ctl);
|
|
|
|
void MoveFieldUpClicked(UINT Code, int id, HWND ctl);
|
|
|
|
void MoveFieldDownClicked(UINT Code, int id, HWND ctl);
|
|
|
|
void UseRomBrowserChanged(UINT Code, int id, HWND ctl);
|
|
|
|
void FixCtrlState(void);
|
2008-11-14 20:51:06 +00:00
|
|
|
|
2015-12-23 19:39:23 +00:00
|
|
|
ROMBROWSER_FIELDS_LIST m_Fields;
|
|
|
|
CListBox m_Avaliable, m_Using;
|
|
|
|
bool m_OrderChanged, m_OrderReset;
|
2008-11-14 20:51:06 +00:00
|
|
|
};
|