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