mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
merge the general and core configmain pages into "main" page, now it doesn't open onto a totally useless page ;)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1769 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -30,6 +30,7 @@ BEGIN_EVENT_TABLE(CConfigMain, wxDialog)
|
|||||||
|
|
||||||
EVT_CLOSE(CConfigMain::OnClose)
|
EVT_CLOSE(CConfigMain::OnClose)
|
||||||
EVT_BUTTON(ID_CLOSE, CConfigMain::CloseClick)
|
EVT_BUTTON(ID_CLOSE, CConfigMain::CloseClick)
|
||||||
|
|
||||||
EVT_CHECKBOX(ID_ALLWAYS_HLEBIOS, CConfigMain::CoreSettingsChanged)
|
EVT_CHECKBOX(ID_ALLWAYS_HLEBIOS, CConfigMain::CoreSettingsChanged)
|
||||||
EVT_CHECKBOX(ID_USEDYNAREC, CConfigMain::CoreSettingsChanged)
|
EVT_CHECKBOX(ID_USEDYNAREC, CConfigMain::CoreSettingsChanged)
|
||||||
EVT_CHECKBOX(ID_USEDUALCORE, CConfigMain::CoreSettingsChanged)
|
EVT_CHECKBOX(ID_USEDUALCORE, CConfigMain::CoreSettingsChanged)
|
||||||
@ -37,9 +38,10 @@ EVT_CHECKBOX(ID_LOCKTHREADS, CConfigMain::CoreSettingsChanged)
|
|||||||
EVT_CHECKBOX(ID_OPTIMIZEQUANTIZERS, CConfigMain::CoreSettingsChanged)
|
EVT_CHECKBOX(ID_OPTIMIZEQUANTIZERS, CConfigMain::CoreSettingsChanged)
|
||||||
EVT_CHECKBOX(ID_IDLESKIP, CConfigMain::CoreSettingsChanged)
|
EVT_CHECKBOX(ID_IDLESKIP, CConfigMain::CoreSettingsChanged)
|
||||||
EVT_CHECKBOX(ID_ENABLECHEATS, CConfigMain::CoreSettingsChanged)
|
EVT_CHECKBOX(ID_ENABLECHEATS, CConfigMain::CoreSettingsChanged)
|
||||||
EVT_CHOICE(ID_GC_SRAM_LNG, CConfigMain::GCSettingsChanged)
|
|
||||||
EVT_CHECKBOX(ID_INTERFACE_CONFIRMSTOP, CConfigMain::CoreSettingsChanged)
|
EVT_CHECKBOX(ID_INTERFACE_CONFIRMSTOP, CConfigMain::CoreSettingsChanged)
|
||||||
|
|
||||||
|
EVT_CHOICE(ID_GC_SRAM_LNG, CConfigMain::GCSettingsChanged)
|
||||||
|
|
||||||
EVT_CHOICE(ID_WII_BT_BAR, CConfigMain::WiiSettingsChanged)
|
EVT_CHOICE(ID_WII_BT_BAR, CConfigMain::WiiSettingsChanged)
|
||||||
EVT_CHECKBOX(ID_WII_BT_LEDS, CConfigMain::WiiSettingsChanged)
|
EVT_CHECKBOX(ID_WII_BT_LEDS, CConfigMain::WiiSettingsChanged)
|
||||||
EVT_CHECKBOX(ID_WII_BT_SPEAKERS, CConfigMain::WiiSettingsChanged)
|
EVT_CHECKBOX(ID_WII_BT_SPEAKERS, CConfigMain::WiiSettingsChanged)
|
||||||
@ -100,67 +102,48 @@ CConfigMain::~CConfigMain()
|
|||||||
void CConfigMain::CreateGUIControls()
|
void CConfigMain::CreateGUIControls()
|
||||||
{
|
{
|
||||||
Notebook = new wxNotebook(this, ID_NOTEBOOK, wxDefaultPosition, wxDefaultSize);
|
Notebook = new wxNotebook(this, ID_NOTEBOOK, wxDefaultPosition, wxDefaultSize);
|
||||||
GeneralPage = new wxPanel(Notebook, ID_GENERALPAGE, wxDefaultPosition, wxDefaultSize);
|
MainPage = new wxPanel(Notebook, ID_COREPAGE, wxDefaultPosition, wxDefaultSize);
|
||||||
CorePage = new wxPanel(Notebook, ID_COREPAGE, wxDefaultPosition, wxDefaultSize);
|
|
||||||
GamecubePage = new wxPanel(Notebook, ID_GAMECUBEPAGE, wxDefaultPosition, wxDefaultSize);
|
GamecubePage = new wxPanel(Notebook, ID_GAMECUBEPAGE, wxDefaultPosition, wxDefaultSize);
|
||||||
WiiPage = new wxPanel(Notebook, ID_WIIPAGE, wxDefaultPosition, wxDefaultSize);
|
WiiPage = new wxPanel(Notebook, ID_WIIPAGE, wxDefaultPosition, wxDefaultSize);
|
||||||
PathsPage = new wxPanel(Notebook, ID_PATHSPAGE, wxDefaultPosition, wxDefaultSize);
|
PathsPage = new wxPanel(Notebook, ID_PATHSPAGE, wxDefaultPosition, wxDefaultSize);
|
||||||
PluginPage = new wxPanel(Notebook, ID_PLUGINPAGE, wxDefaultPosition, wxDefaultSize);
|
PluginPage = new wxPanel(Notebook, ID_PLUGINPAGE, wxDefaultPosition, wxDefaultSize);
|
||||||
|
|
||||||
Notebook->AddPage(GeneralPage, wxT("General"));
|
Notebook->AddPage(MainPage, wxT("Main"));
|
||||||
Notebook->AddPage(CorePage, wxT("Core"));
|
|
||||||
Notebook->AddPage(GamecubePage, wxT("Gamecube"));
|
Notebook->AddPage(GamecubePage, wxT("Gamecube"));
|
||||||
Notebook->AddPage(WiiPage, wxT("Wii"));
|
Notebook->AddPage(WiiPage, wxT("Wii"));
|
||||||
Notebook->AddPage(PathsPage, wxT("Paths"));
|
Notebook->AddPage(PathsPage, wxT("Paths"));
|
||||||
Notebook->AddPage(PluginPage, wxT("Plugins"));
|
Notebook->AddPage(PluginPage, wxT("Plugins"));
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////
|
//////////////////////////////////
|
||||||
// General page
|
// Main page
|
||||||
// --------
|
|
||||||
|
|
||||||
// Interface Settings
|
|
||||||
ConfirmStop = new wxCheckBox(GeneralPage, ID_INTERFACE_CONFIRMSTOP, wxT("Confirm On Stop"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
|
||||||
|
|
||||||
ConfirmStop->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bConfirmStop);
|
|
||||||
|
|
||||||
sbInterface = new wxStaticBoxSizer(wxVERTICAL, GeneralPage, wxT("Interface Settings"));
|
|
||||||
sbInterface->Add(ConfirmStop, 0, wxALL, 5);
|
|
||||||
|
|
||||||
sGeneralPage = new wxBoxSizer(wxVERTICAL);
|
|
||||||
sGeneralPage->Add(sbInterface, 0, wxALL|wxEXPAND, 5);
|
|
||||||
|
|
||||||
GeneralPage->SetSizer(sGeneralPage);
|
|
||||||
sGeneralPage->Layout();
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////
|
|
||||||
// Core page
|
|
||||||
// --------
|
// --------
|
||||||
sCore = new wxBoxSizer(wxVERTICAL);
|
sCore = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
// Basic Settings
|
// Basic Settings
|
||||||
sbBasic = new wxStaticBoxSizer(wxVERTICAL, CorePage, wxT("Basic Settings"));
|
sbBasic = new wxStaticBoxSizer(wxVERTICAL, MainPage, wxT("Basic Settings"));
|
||||||
UseDualCore = new wxCheckBox(CorePage, ID_USEDUALCORE, wxT("Enable Dual Core"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
UseDualCore = new wxCheckBox(MainPage, ID_USEDUALCORE, wxT("Enable Dual Core"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
||||||
UseDualCore->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bUseDualCore);
|
UseDualCore->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bUseDualCore);
|
||||||
SkipIdle = new wxCheckBox(CorePage, ID_IDLESKIP, wxT("Enable Idle Skipping"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
SkipIdle = new wxCheckBox(MainPage, ID_IDLESKIP, wxT("Enable Idle Skipping"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
||||||
SkipIdle->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bSkipIdle);
|
SkipIdle->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bSkipIdle);
|
||||||
EnableCheats = new wxCheckBox(CorePage, ID_ENABLECHEATS, wxT("Enable Cheats"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
EnableCheats = new wxCheckBox(MainPage, ID_ENABLECHEATS, wxT("Enable Cheats"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
||||||
EnableCheats->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats);
|
EnableCheats->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bEnableCheats);
|
||||||
|
ConfirmStop = new wxCheckBox(MainPage, ID_INTERFACE_CONFIRMSTOP, wxT("Confirm On Stop"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
||||||
|
ConfirmStop->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bConfirmStop);
|
||||||
|
|
||||||
sbBasic->Add(UseDualCore, 0, wxALL, 5);
|
sbBasic->Add(UseDualCore, 0, wxALL, 5);
|
||||||
sbBasic->Add(SkipIdle, 0, wxALL, 5);
|
sbBasic->Add(SkipIdle, 0, wxALL, 5);
|
||||||
sbBasic->Add(EnableCheats, 0, wxALL, 5);
|
sbBasic->Add(EnableCheats, 0, wxALL, 5);
|
||||||
|
sbBasic->Add(ConfirmStop, 0, wxALL, 5);
|
||||||
|
|
||||||
// Advanced Settings
|
// Advanced Settings
|
||||||
sbAdvanced = new wxStaticBoxSizer(wxVERTICAL, CorePage, wxT("Advanced Settings"));
|
sbAdvanced = new wxStaticBoxSizer(wxVERTICAL, MainPage, wxT("Advanced Settings"));
|
||||||
AllwaysHLEBIOS = new wxCheckBox(CorePage, ID_ALLWAYS_HLEBIOS, wxT("HLE the BIOS all the time"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
AllwaysHLEBIOS = new wxCheckBox(MainPage, ID_ALLWAYS_HLEBIOS, wxT("HLE the BIOS all the time"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
||||||
AllwaysHLEBIOS->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bHLEBios);
|
AllwaysHLEBIOS->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bHLEBios);
|
||||||
UseDynaRec = new wxCheckBox(CorePage, ID_USEDYNAREC, wxT("Enable Dynamic Recompilation"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
UseDynaRec = new wxCheckBox(MainPage, ID_USEDYNAREC, wxT("Enable Dynamic Recompilation"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
||||||
UseDynaRec->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bUseJIT);
|
UseDynaRec->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bUseJIT);
|
||||||
LockThreads = new wxCheckBox(CorePage, ID_LOCKTHREADS, wxT("Lock threads to cores"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
LockThreads = new wxCheckBox(MainPage, ID_LOCKTHREADS, wxT("Lock threads to cores"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
||||||
LockThreads->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bLockThreads);
|
LockThreads->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bLockThreads);
|
||||||
OptimizeQuantizers = new wxCheckBox(CorePage, ID_OPTIMIZEQUANTIZERS, wxT("Optimize Quantizers"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
OptimizeQuantizers = new wxCheckBox(MainPage, ID_OPTIMIZEQUANTIZERS, wxT("Optimize Quantizers"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
||||||
OptimizeQuantizers->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bOptimizeQuantizers);
|
OptimizeQuantizers->SetValue(SConfig::GetInstance().m_LocalCoreStartupParameter.bOptimizeQuantizers);
|
||||||
|
|
||||||
sbAdvanced->Add(AllwaysHLEBIOS, 0, wxALL, 5);
|
sbAdvanced->Add(AllwaysHLEBIOS, 0, wxALL, 5);
|
||||||
@ -172,7 +155,7 @@ void CConfigMain::CreateGUIControls()
|
|||||||
sCore->Add(sbBasic, 0, wxEXPAND|wxALL, 5);
|
sCore->Add(sbBasic, 0, wxEXPAND|wxALL, 5);
|
||||||
//sCore->AddStretchSpacer();
|
//sCore->AddStretchSpacer();
|
||||||
sCore->Add(sbAdvanced, 0, wxEXPAND|wxALL, 5);
|
sCore->Add(sbAdvanced, 0, wxEXPAND|wxALL, 5);
|
||||||
CorePage->SetSizer(sCore);
|
MainPage->SetSizer(sCore);
|
||||||
sCore->Layout();
|
sCore->Layout();
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,20 +44,18 @@ class CConfigMain
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE();
|
DECLARE_EVENT_TABLE();
|
||||||
|
|
||||||
wxBoxSizer* sGeneralPage; // General Settings
|
|
||||||
wxCheckBox* ConfirmStop;
|
|
||||||
|
|
||||||
wxBoxSizer* sCore; // Core settings
|
wxBoxSizer* sCore; // Core settings
|
||||||
wxStaticBoxSizer* sbBasic, *sbAdvanced, *sbInterface;
|
wxStaticBoxSizer* sbBasic, *sbAdvanced, *sbInterface;
|
||||||
wxCheckBox* AllwaysHLEBIOS;
|
|
||||||
wxCheckBox* UseDynaRec;
|
|
||||||
wxCheckBox* UseDualCore;
|
wxCheckBox* UseDualCore;
|
||||||
wxCheckBox* LockThreads;
|
|
||||||
wxCheckBox* OptimizeQuantizers;
|
|
||||||
wxCheckBox* SkipIdle;
|
wxCheckBox* SkipIdle;
|
||||||
wxCheckBox* EnableCheats;
|
wxCheckBox* EnableCheats;
|
||||||
|
wxCheckBox* ConfirmStop;
|
||||||
|
wxCheckBox* AllwaysHLEBIOS;
|
||||||
|
wxCheckBox* UseDynaRec;
|
||||||
|
wxCheckBox* LockThreads;
|
||||||
|
wxCheckBox* OptimizeQuantizers;
|
||||||
|
|
||||||
wxBoxSizer* sGamecube; // GC settings
|
wxBoxSizer* sGamecube; // GC settings
|
||||||
wxStaticBoxSizer* sbGamecubeIPLSettings;
|
wxStaticBoxSizer* sbGamecubeIPLSettings;
|
||||||
@ -83,7 +81,7 @@ class CConfigMain
|
|||||||
|
|
||||||
wxNotebook *Notebook;
|
wxNotebook *Notebook;
|
||||||
wxPanel *GeneralPage;
|
wxPanel *GeneralPage;
|
||||||
wxPanel *CorePage;
|
wxPanel *MainPage;
|
||||||
wxPanel *GamecubePage;
|
wxPanel *GamecubePage;
|
||||||
wxPanel *WiiPage;
|
wxPanel *WiiPage;
|
||||||
wxPanel *PathsPage;
|
wxPanel *PathsPage;
|
||||||
|
Reference in New Issue
Block a user