2016-05-09 13:34:07 +00:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-06-05 07:15:15 +00:00
|
|
|
#include <string>
|
|
|
|
|
2016-05-09 13:34:07 +00:00
|
|
|
#include <QDialog>
|
2017-05-31 23:53:46 +00:00
|
|
|
|
|
|
|
class QGroupBox;
|
|
|
|
class QListWidget;
|
|
|
|
class QListWidgetItem;
|
|
|
|
class QStackedWidget;
|
2016-05-09 13:34:07 +00:00
|
|
|
|
|
|
|
class SettingsWindow final : public QDialog
|
|
|
|
{
|
2016-06-24 08:43:46 +00:00
|
|
|
Q_OBJECT
|
2016-05-09 13:34:07 +00:00
|
|
|
public:
|
2016-06-24 08:43:46 +00:00
|
|
|
explicit SettingsWindow(QWidget* parent = nullptr);
|
2016-05-09 13:34:07 +00:00
|
|
|
|
|
|
|
public slots:
|
2016-06-24 08:43:46 +00:00
|
|
|
void changePage(QListWidgetItem* current, QListWidgetItem* previous);
|
2016-05-09 13:34:07 +00:00
|
|
|
|
|
|
|
private:
|
2016-06-24 08:43:46 +00:00
|
|
|
void MakeCategoryList();
|
2017-06-05 07:15:15 +00:00
|
|
|
void AddCategoryToList(const QString& title, const std::string& icon_name);
|
2016-06-24 08:43:46 +00:00
|
|
|
void SetupSettingsWidget();
|
|
|
|
QStackedWidget* m_settings_outer;
|
|
|
|
QListWidget* m_categories;
|
2016-05-09 13:34:07 +00:00
|
|
|
};
|