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
|
|
|
|
|
2016-10-20 14:14:23 +00:00
|
|
|
#include <ctime>
|
2015-03-18 22:00:27 +00:00
|
|
|
#include <wx/panel.h>
|
|
|
|
|
2016-10-20 14:14:23 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
2016-08-02 06:22:37 +00:00
|
|
|
class DolphinSlider;
|
2015-03-18 22:00:27 +00:00
|
|
|
class wxCheckBox;
|
2017-07-06 14:19:08 +00:00
|
|
|
class wxDateEvent;
|
|
|
|
class wxDateTime;
|
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-11-05 12:29:29 +00:00
|
|
|
void BindEvents();
|
|
|
|
|
|
|
|
void OnUpdateCPUClockControls(wxUpdateUIEvent&);
|
|
|
|
void OnUpdateRTCDateTimeEntries(wxUpdateUIEvent&);
|
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&);
|
2017-07-06 14:19:08 +00:00
|
|
|
void OnCustomRTCDateChanged(wxDateEvent&);
|
|
|
|
void OnCustomRTCTimeChanged(wxDateEvent&);
|
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();
|
2017-07-06 14:19:08 +00:00
|
|
|
void UpdateCustomRTC(const wxDateTime&);
|
2016-07-13 20:46:14 +00:00
|
|
|
|
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
|
|
|
};
|