mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
086ec7a9b7
Prior to this, ConfigMain.cpp was a large (52KB) cpp file that contained all of the UI setting code. This breaks up the config code into subclasses of wxPanel, which are then just instantiated to add to the settings wxNoteBook. This keeps all the settings categories separated from one another and also cleans up the code in general.
32 lines
645 B
C++
32 lines
645 B
C++
// Copyright 2015 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <wx/panel.h>
|
|
|
|
class wxCheckBox;
|
|
class wxCommandEvent;
|
|
class wxSlider;
|
|
class wxStaticText;
|
|
|
|
class AdvancedConfigPane final : public wxPanel
|
|
{
|
|
public:
|
|
AdvancedConfigPane(wxWindow* parent, wxWindowID id);
|
|
|
|
private:
|
|
void InitializeGUI();
|
|
void LoadGUIValues();
|
|
|
|
void OnClockOverrideCheckBoxChanged(wxCommandEvent&);
|
|
void OnClockOverrideSliderChanged(wxCommandEvent&);
|
|
|
|
void UpdateCPUClock();
|
|
|
|
wxCheckBox* m_clock_override_checkbox;
|
|
wxSlider* m_clock_override_slider;
|
|
wxStaticText* m_clock_override_text;
|
|
};
|