2017-12-14 13:42:24 +00:00
|
|
|
|
|
|
|
#ifndef PREFERENCESDIALOG_H
|
|
|
|
#define PREFERENCESDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <memory>
|
|
|
|
|
2018-03-04 17:42:02 +00:00
|
|
|
#include "Cutter.h"
|
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:
|
2017-12-14 15:14:33 +00:00
|
|
|
enum class Section { General, Disassembly };
|
2017-12-14 13:42:24 +00:00
|
|
|
|
|
|
|
explicit PreferencesDialog(QWidget *parent = nullptr);
|
|
|
|
~PreferencesDialog();
|
|
|
|
|
|
|
|
void showSection(Section section);
|
|
|
|
|
2018-03-21 20:32:32 +00:00
|
|
|
/*signals:
|
|
|
|
void saveAsDefault();
|
|
|
|
void resetToDefault();*/
|
2017-12-14 13:42:24 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Ui::PreferencesDialog> ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //PREFERENCESDIALOG_H
|