2020-03-19 09:36:36 +00:00
|
|
|
#ifndef WRITECOMMANDSDIALOGS_H
|
|
|
|
#define WRITECOMMANDSDIALOGS_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include "CutterCommon.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class Base64EnDecodedWriteDialog;
|
|
|
|
class IncrementDecrementDialog;
|
|
|
|
class DuplicateFromOffsetDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class Base64EnDecodedWriteDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit Base64EnDecodedWriteDialog(QWidget *parent = nullptr);
|
|
|
|
enum Mode { Encode, Decode };
|
|
|
|
Mode getMode() const;
|
|
|
|
QByteArray getData() const;
|
|
|
|
|
|
|
|
private:
|
2021-01-24 14:50:13 +00:00
|
|
|
Ui::Base64EnDecodedWriteDialog *ui;
|
2020-03-19 09:36:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class IncrementDecrementDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit IncrementDecrementDialog(QWidget *parent = nullptr);
|
|
|
|
enum Mode { Increase, Decrease };
|
|
|
|
Mode getMode() const;
|
|
|
|
uint8_t getNBytes() const;
|
|
|
|
uint64_t getValue() const;
|
|
|
|
|
|
|
|
private:
|
2021-01-24 14:50:13 +00:00
|
|
|
Ui::IncrementDecrementDialog *ui;
|
2020-03-19 09:36:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class DuplicateFromOffsetDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit DuplicateFromOffsetDialog(QWidget *parent = nullptr);
|
|
|
|
RVA getOffset() const;
|
|
|
|
size_t getNBytes() const;
|
|
|
|
|
|
|
|
private:
|
2021-01-24 14:50:13 +00:00
|
|
|
Ui::DuplicateFromOffsetDialog *ui;
|
2020-03-19 09:36:36 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void refresh();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // WRITECOMMANDSDIALOGS_H
|