2017-12-14 13:42:24 +00:00
|
|
|
|
|
|
|
#ifndef PREFERENCESDIALOG_H
|
|
|
|
#define PREFERENCESDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "cutter.h"
|
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class PreferencesDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class PreferencesDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
2017-12-14 15:14:33 +00:00
|
|
|
/*signals:
|
2017-12-14 13:42:24 +00:00
|
|
|
void saveAsDefault();
|
2017-12-14 15:14:33 +00:00
|
|
|
void resetToDefault();*/
|
2017-12-14 13:42:24 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Ui::PreferencesDialog> ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //PREFERENCESDIALOG_H
|