2017-10-01 14:36:40 +00:00
|
|
|
|
2017-12-14 15:14:33 +00:00
|
|
|
#ifndef ASMOPTIONSWIDGET_H
|
|
|
|
#define ASMOPTIONSWIDGET_H
|
2017-10-01 14:36:40 +00:00
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QPushButton>
|
2017-10-02 09:41:28 +00:00
|
|
|
#include <memory>
|
2017-10-01 14:36:40 +00:00
|
|
|
|
2018-03-04 17:42:02 +00:00
|
|
|
#include "Cutter.h"
|
2017-10-01 14:36:40 +00:00
|
|
|
|
2017-12-14 13:42:24 +00:00
|
|
|
class PreferencesDialog;
|
|
|
|
|
2017-10-01 14:36:40 +00:00
|
|
|
namespace Ui
|
|
|
|
{
|
2017-12-14 13:42:24 +00:00
|
|
|
class AsmOptionsWidget;
|
2017-10-01 14:36:40 +00:00
|
|
|
}
|
|
|
|
|
2017-12-14 13:42:24 +00:00
|
|
|
class AsmOptionsWidget : public QDialog
|
2017-10-01 14:36:40 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-12-14 13:42:24 +00:00
|
|
|
explicit AsmOptionsWidget(PreferencesDialog *dialog, QWidget *parent = nullptr);
|
|
|
|
~AsmOptionsWidget();
|
2017-10-01 14:36:40 +00:00
|
|
|
|
|
|
|
private:
|
2017-12-14 13:42:24 +00:00
|
|
|
std::unique_ptr<Ui::AsmOptionsWidget> ui;
|
2017-10-01 14:36:40 +00:00
|
|
|
|
2017-12-03 12:48:51 +00:00
|
|
|
void triggerAsmOptionsChanged();
|
|
|
|
|
2017-10-01 14:36:40 +00:00
|
|
|
private slots:
|
2017-12-14 13:42:24 +00:00
|
|
|
void saveAsDefault();
|
|
|
|
void resetToDefault();
|
|
|
|
|
2017-12-03 12:48:51 +00:00
|
|
|
void updateAsmOptionsFromVars();
|
|
|
|
|
2017-10-01 14:36:40 +00:00
|
|
|
void on_esilCheckBox_toggled(bool checked);
|
|
|
|
void on_pseudoCheckBox_toggled(bool checked);
|
|
|
|
void on_offsetCheckBox_toggled(bool checked);
|
|
|
|
void on_describeCheckBox_toggled(bool checked);
|
|
|
|
void on_stackpointerCheckBox_toggled(bool checked);
|
2018-01-31 08:01:16 +00:00
|
|
|
void on_slowCheckBox_toggled(bool checked);
|
2018-01-28 22:28:25 +00:00
|
|
|
void on_linesCheckBox_toggled(bool checked);
|
2018-02-04 19:34:52 +00:00
|
|
|
void on_fcnlinesCheckBox_toggled(bool checked);
|
2018-01-31 08:01:16 +00:00
|
|
|
void on_emuCheckBox_toggled(bool checked);
|
|
|
|
void on_cmtrightCheckBox_toggled(bool checked);
|
|
|
|
void on_varsumCheckBox_toggled(bool checked);
|
2017-10-01 14:36:40 +00:00
|
|
|
void on_bytesCheckBox_toggled(bool checked);
|
|
|
|
void on_bytespaceCheckBox_toggled(bool checked);
|
|
|
|
void on_lbytesCheckBox_toggled(bool checked);
|
|
|
|
void on_syntaxComboBox_currentIndexChanged(int index);
|
2017-10-01 16:03:06 +00:00
|
|
|
void on_caseComboBox_currentIndexChanged(int index);
|
2018-01-31 08:01:16 +00:00
|
|
|
void on_asmTabsSpinBox_valueChanged(int value);
|
2018-02-01 09:01:09 +00:00
|
|
|
void on_nbytesSpinBox_valueChanged(int value);
|
2017-10-01 14:36:40 +00:00
|
|
|
void on_bblineCheckBox_toggled(bool checked);
|
2017-10-01 16:03:06 +00:00
|
|
|
void on_varsubCheckBox_toggled(bool checked);
|
|
|
|
void on_varsubOnlyCheckBox_toggled(bool checked);
|
2017-12-14 15:14:33 +00:00
|
|
|
|
|
|
|
void on_buttonBox_clicked(QAbstractButton *button);
|
2017-10-01 14:36:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2017-12-19 16:13:44 +00:00
|
|
|
#endif //ASMOPTIONSWIDGET_H
|