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