2018-12-18 17:26:38 +00:00
|
|
|
#ifndef HEXDUMPRANGEDIALOG_H
|
|
|
|
#define HEXDUMPRANGEDIALOG_H
|
|
|
|
|
2019-04-06 12:04:55 +00:00
|
|
|
#include "core/CutterCommon.h"
|
2018-12-18 17:26:38 +00:00
|
|
|
#include <QDialog>
|
2019-04-06 12:04:55 +00:00
|
|
|
|
2018-12-18 17:26:38 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class HexdumpRangeDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class HexdumpRangeDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-05-10 11:15:57 +00:00
|
|
|
explicit HexdumpRangeDialog(QWidget *parent = nullptr, bool allowEmpty = false);
|
2018-12-18 17:26:38 +00:00
|
|
|
~HexdumpRangeDialog();
|
2019-05-10 11:15:57 +00:00
|
|
|
bool empty();
|
|
|
|
ut64 getStartAddress() const;
|
|
|
|
ut64 getEndAddress() const;
|
|
|
|
|
2018-12-18 17:26:38 +00:00
|
|
|
void setStartAddress(ut64 start);
|
2019-05-10 11:15:57 +00:00
|
|
|
void open(ut64 start);
|
2018-12-18 17:26:38 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void textEdited();
|
|
|
|
|
|
|
|
private:
|
2019-05-10 11:15:57 +00:00
|
|
|
bool getEndAddressRadioButtonChecked() const;
|
|
|
|
bool getLengthRadioButtonChecked() const;
|
|
|
|
bool validate();
|
|
|
|
|
2018-12-18 17:26:38 +00:00
|
|
|
Ui::HexdumpRangeDialog *ui;
|
2019-05-10 11:15:57 +00:00
|
|
|
bool emptyRange = true;
|
|
|
|
ut64 startAddress;
|
|
|
|
ut64 endAddress;
|
|
|
|
bool allowEmpty = false;
|
2018-12-18 17:26:38 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_radioButtonClicked(bool checked);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // HEXDUMPRANGEDIALOG_H
|