2015-03-18 22:00:27 +00:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2015-03-18 22:00:27 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <wx/arrstr.h>
|
|
|
|
#include <wx/panel.h>
|
|
|
|
|
|
|
|
class wxCheckBox;
|
|
|
|
class wxChoice;
|
|
|
|
class wxRadioBox;
|
|
|
|
|
|
|
|
class GeneralConfigPane final : public wxPanel
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GeneralConfigPane(wxWindow* parent, wxWindowID id);
|
|
|
|
|
|
|
|
private:
|
2015-06-07 03:32:29 +00:00
|
|
|
|
|
|
|
struct CPUCore
|
|
|
|
{
|
|
|
|
int CPUid;
|
|
|
|
wxString name;
|
|
|
|
};
|
|
|
|
std::vector<CPUCore> cpu_cores;
|
2015-03-18 22:00:27 +00:00
|
|
|
void InitializeGUI();
|
|
|
|
void LoadGUIValues();
|
|
|
|
void RefreshGUI();
|
|
|
|
|
|
|
|
void OnDualCoreCheckBoxChanged(wxCommandEvent&);
|
|
|
|
void OnIdleSkipCheckBoxChanged(wxCommandEvent&);
|
|
|
|
void OnCheatCheckBoxChanged(wxCommandEvent&);
|
|
|
|
void OnForceNTSCJCheckBoxChanged(wxCommandEvent&);
|
|
|
|
void OnFrameLimitChoiceChanged(wxCommandEvent&);
|
|
|
|
void OnCPUEngineRadioBoxChanged(wxCommandEvent&);
|
|
|
|
|
|
|
|
wxArrayString m_frame_limit_array_string;
|
|
|
|
wxArrayString m_cpu_engine_array_string;
|
|
|
|
|
|
|
|
wxCheckBox* m_dual_core_checkbox;
|
|
|
|
wxCheckBox* m_idle_skip_checkbox;
|
|
|
|
wxCheckBox* m_cheats_checkbox;
|
|
|
|
wxCheckBox* m_force_ntscj_checkbox;
|
|
|
|
|
|
|
|
wxChoice* m_frame_limit_choice;
|
|
|
|
|
|
|
|
wxRadioBox* m_cpu_engine_radiobox;
|
|
|
|
};
|