2017-05-04 04:19:51 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-05-26 13:06:57 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2017-05-04 04:19:51 +00:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QComboBox;
|
|
|
|
class QLabel;
|
|
|
|
class QPushButton;
|
2017-05-05 10:38:59 +00:00
|
|
|
class QRadioButton;
|
2017-05-04 04:19:51 +00:00
|
|
|
class QSlider;
|
|
|
|
class QVBoxLayout;
|
|
|
|
|
2018-04-21 20:09:46 +00:00
|
|
|
namespace Core
|
|
|
|
{
|
|
|
|
enum class State;
|
|
|
|
}
|
|
|
|
|
2017-05-04 04:19:51 +00:00
|
|
|
class GeneralPane final : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit GeneralPane(QWidget* parent = nullptr);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateLayout();
|
|
|
|
void ConnectLayout();
|
|
|
|
void CreateBasic();
|
2018-03-22 11:20:15 +00:00
|
|
|
void CreateAutoUpdate();
|
2017-05-04 04:19:51 +00:00
|
|
|
void CreateAdvanced();
|
|
|
|
|
|
|
|
void LoadConfig();
|
|
|
|
void OnSaveConfig();
|
2018-04-21 20:09:46 +00:00
|
|
|
void OnEmulationStateChanged(Core::State state);
|
2017-05-04 04:19:51 +00:00
|
|
|
|
|
|
|
// Widgets
|
|
|
|
QVBoxLayout* m_main_layout;
|
2017-05-05 10:38:59 +00:00
|
|
|
QComboBox* m_combobox_speedlimit;
|
2018-03-22 11:20:15 +00:00
|
|
|
QComboBox* m_combobox_update_track;
|
2017-05-05 10:38:59 +00:00
|
|
|
QCheckBox* m_checkbox_dualcore;
|
|
|
|
QCheckBox* m_checkbox_cheats;
|
2018-06-01 02:54:15 +00:00
|
|
|
#ifdef USE_DISCORD_PRESENCE
|
|
|
|
QCheckBox* m_checkbox_discord_presence;
|
|
|
|
#endif
|
2017-05-04 04:19:51 +00:00
|
|
|
QLabel* m_label_speedlimit;
|
|
|
|
|
2018-05-26 13:06:57 +00:00
|
|
|
std::vector<QRadioButton*> m_cpu_cores;
|
2017-05-05 10:38:59 +00:00
|
|
|
|
2017-05-04 04:19:51 +00: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
|
|
|
|
};
|