dolphin/Source/Core/DolphinWX/Config/AdvancedConfigPane.h

52 lines
1.2 KiB
C
Raw Normal View History

// Copyright 2015 Dolphin Emulator Project
2015-05-17 23:08:10 +00:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <ctime>
#include <wx/panel.h>
#include "Common/CommonTypes.h"
2016-08-02 06:22:37 +00:00
class DolphinSlider;
class wxCheckBox;
class wxDateEvent;
class wxDateTime;
2016-07-13 20:46:14 +00:00
class wxDatePickerCtrl;
class wxStaticText;
2016-07-13 20:46:14 +00:00
class wxTimePickerCtrl;
class AdvancedConfigPane final : public wxPanel
{
public:
AdvancedConfigPane(wxWindow* parent, wxWindowID id);
private:
void InitializeGUI();
void LoadGUIValues();
void BindEvents();
void OnUpdateCPUClockControls(wxUpdateUIEvent&);
void OnUpdateRTCDateTimeEntries(wxUpdateUIEvent&);
void OnClockOverrideCheckBoxChanged(wxCommandEvent&);
void OnClockOverrideSliderChanged(wxCommandEvent&);
2016-07-13 20:46:14 +00:00
void OnCustomRTCCheckBoxChanged(wxCommandEvent&);
void OnCustomRTCDateChanged(wxDateEvent&);
void OnCustomRTCTimeChanged(wxDateEvent&);
void UpdateCPUClock();
2016-07-13 20:46:14 +00:00
// Custom RTC
void LoadCustomRTC();
void UpdateCustomRTC(const wxDateTime&);
2016-07-13 20:46:14 +00:00
wxCheckBox* m_clock_override_checkbox;
2016-08-02 06:22:37 +00:00
DolphinSlider* m_clock_override_slider;
wxStaticText* m_clock_override_text;
2016-07-13 20:46:14 +00:00
wxCheckBox* m_custom_rtc_checkbox;
wxDatePickerCtrl* m_custom_rtc_date_picker;
wxTimePickerCtrl* m_custom_rtc_time_picker;
};