2018-02-12 20:12:13 +00:00
|
|
|
#ifndef EDITINSTRUCTIONDIALOG_H
|
|
|
|
#define EDITINSTRUCTIONDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QKeyEvent>
|
|
|
|
#include <memory>
|
|
|
|
|
2018-03-21 20:32:32 +00:00
|
|
|
namespace Ui {
|
|
|
|
class EditInstructionDialog;
|
2018-02-12 20:12:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class EditInstructionDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-05-04 07:58:32 +00:00
|
|
|
explicit EditInstructionDialog(QWidget *parent = nullptr);
|
2018-02-12 20:12:13 +00:00
|
|
|
~EditInstructionDialog();
|
|
|
|
|
|
|
|
QString getInstruction();
|
|
|
|
void setInstruction(const QString &instruction);
|
2018-09-09 17:55:13 +00:00
|
|
|
|
|
|
|
void updatePreview(const QString &hex);
|
2018-02-12 20:12:13 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_buttonBox_accepted();
|
|
|
|
|
|
|
|
void on_buttonBox_rejected();
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Ui::EditInstructionDialog> ui;
|
|
|
|
|
|
|
|
bool eventFilter(QObject *obj, QEvent *event);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // EDITINSTRUCTIONDIALOG_H
|