2017-05-03 22:19:51 -06:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QComboBox;
|
|
|
|
class QLabel;
|
|
|
|
class QPushButton;
|
2017-05-05 04:38:59 -06:00
|
|
|
class QRadioButton;
|
2017-05-03 22:19:51 -06:00
|
|
|
class QSlider;
|
|
|
|
class QVBoxLayout;
|
|
|
|
|
|
|
|
class GeneralPane final : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit GeneralPane(QWidget* parent = nullptr);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateLayout();
|
|
|
|
void ConnectLayout();
|
|
|
|
void CreateBasic();
|
|
|
|
void CreateAdvanced();
|
|
|
|
|
|
|
|
void LoadConfig();
|
|
|
|
void OnSaveConfig();
|
|
|
|
|
|
|
|
// Widgets
|
|
|
|
QVBoxLayout* m_main_layout;
|
2017-05-05 04:38:59 -06:00
|
|
|
QComboBox* m_combobox_speedlimit;
|
|
|
|
QCheckBox* m_checkbox_dualcore;
|
|
|
|
QCheckBox* m_checkbox_cheats;
|
2017-05-03 22:19:51 -06:00
|
|
|
QLabel* m_label_speedlimit;
|
|
|
|
|
2017-05-05 04:38:59 -06:00
|
|
|
QRadioButton* m_radio_interpreter;
|
|
|
|
QRadioButton* m_radio_cached_interpreter;
|
|
|
|
QRadioButton* m_radio_jit;
|
|
|
|
|
2017-05-03 22:19:51 -06:00
|
|
|
// Analytics related
|
|
|
|
#if defined(USE_ANALYTICS) && USE_ANALYTICS
|
|
|
|
void CreateAnalytics();
|
|
|
|
void GenerateNewIdentity();
|
|
|
|
|
|
|
|
QPushButton* m_button_generate_new_identity;
|
|
|
|
QCheckBox* m_checkbox_enable_analytics;
|
|
|
|
#endif
|
|
|
|
};
|