2017-12-14 13:42:24 +00:00
|
|
|
|
|
|
|
#ifndef PREFERENCESDIALOG_H
|
|
|
|
#define PREFERENCESDIALOG_H
|
|
|
|
|
2019-03-16 12:41:45 +00:00
|
|
|
#include "core/Cutter.h"
|
|
|
|
|
2017-12-14 13:42:24 +00:00
|
|
|
#include <QDialog>
|
2019-03-16 12:41:45 +00:00
|
|
|
|
2017-12-14 13:42:24 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2019-03-16 12:41:45 +00:00
|
|
|
class QTreeWidgetItem;
|
2017-12-14 13:42:24 +00:00
|
|
|
|
2018-03-21 20:32:32 +00:00
|
|
|
namespace Ui {
|
|
|
|
class PreferencesDialog;
|
2017-12-14 13:42:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class PreferencesDialog : public QDialog
|
|
|
|
{
|
2018-03-21 20:32:32 +00:00
|
|
|
Q_OBJECT
|
2017-12-14 13:42:24 +00:00
|
|
|
|
|
|
|
public:
|
2018-10-17 07:30:56 +00:00
|
|
|
enum class Section { Appearance, Disassembly };
|
2017-12-14 13:42:24 +00:00
|
|
|
|
|
|
|
explicit PreferencesDialog(QWidget *parent = nullptr);
|
|
|
|
~PreferencesDialog();
|
|
|
|
|
|
|
|
void showSection(Section section);
|
|
|
|
|
2018-05-13 07:52:49 +00:00
|
|
|
public slots:
|
|
|
|
void changePage(QTreeWidgetItem *current, QTreeWidgetItem *previous);
|
2017-12-14 13:42:24 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Ui::PreferencesDialog> ui;
|
2019-04-27 17:58:44 +00:00
|
|
|
void chooseThemeIcons();
|
2017-12-14 13:42:24 +00:00
|
|
|
};
|
|
|
|
|
2021-01-24 14:50:13 +00:00
|
|
|
#endif // PREFERENCESDIALOG_H
|