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/panel.h>
|
|
|
|
|
2016-08-02 06:22:37 +00:00
|
|
|
class DolphinSlider;
|
2015-03-18 22:00:27 +00:00
|
|
|
class wxCheckBox;
|
2016-07-13 20:46:14 +00:00
|
|
|
class wxDatePickerCtrl;
|
2015-03-18 22:00:27 +00:00
|
|
|
class wxStaticText;
|
2016-07-13 20:46:14 +00:00
|
|
|
class wxTimePickerCtrl;
|
2015-03-18 22:00:27 +00:00
|
|
|
|
|
|
|
class AdvancedConfigPane final : public wxPanel
|
|
|
|
{
|
|
|
|
public:
|
2016-06-24 08:43:46 +00:00
|
|
|
AdvancedConfigPane(wxWindow* parent, wxWindowID id);
|
2015-03-18 22:00:27 +00:00
|
|
|
|
|
|
|
private:
|
2016-06-24 08:43:46 +00:00
|
|
|
void InitializeGUI();
|
|
|
|
void LoadGUIValues();
|
2016-08-19 20:40:04 +00:00
|
|
|
void RefreshGUI();
|
2015-03-18 22:00:27 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
void OnClockOverrideCheckBoxChanged(wxCommandEvent&);
|
|
|
|
void OnClockOverrideSliderChanged(wxCommandEvent&);
|
2016-07-13 20:46:14 +00:00
|
|
|
void OnCustomRTCCheckBoxChanged(wxCommandEvent&);
|
|
|
|
void OnCustomRTCDateChanged(wxCommandEvent&);
|
|
|
|
void OnCustomRTCTimeChanged(wxCommandEvent&);
|
2015-03-18 22:00:27 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
void UpdateCPUClock();
|
2015-03-18 22:00:27 +00:00
|
|
|
|
2016-07-13 20:46:14 +00:00
|
|
|
// Custom RTC
|
|
|
|
void LoadCustomRTC();
|
|
|
|
void UpdateCustomRTC(time_t date, time_t time);
|
|
|
|
u32 m_temp_date;
|
|
|
|
u32 m_temp_time;
|
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
wxCheckBox* m_clock_override_checkbox;
|
2016-08-02 06:22:37 +00:00
|
|
|
DolphinSlider* m_clock_override_slider;
|
2016-06-24 08:43:46 +00:00
|
|
|
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;
|
2015-03-18 22:00:27 +00:00
|
|
|
};
|