mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-25 06:15:26 +00:00
cda24bfc53
* Seperate Widget showing grid of bytes from rest of the hexdump panel.
46 lines
886 B
C++
46 lines
886 B
C++
#ifndef HEXDUMPRANGEDIALOG_H
|
|
#define HEXDUMPRANGEDIALOG_H
|
|
|
|
#include "core/CutterCommon.h"
|
|
#include <QDialog>
|
|
|
|
|
|
namespace Ui {
|
|
class HexdumpRangeDialog;
|
|
}
|
|
|
|
class HexdumpRangeDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit HexdumpRangeDialog(QWidget *parent = nullptr, bool allowEmpty = false);
|
|
~HexdumpRangeDialog();
|
|
bool empty();
|
|
ut64 getStartAddress() const;
|
|
ut64 getEndAddress() const;
|
|
|
|
void setStartAddress(ut64 start);
|
|
void open(ut64 start);
|
|
|
|
public slots:
|
|
void textEdited();
|
|
|
|
private:
|
|
bool getEndAddressRadioButtonChecked() const;
|
|
bool getLengthRadioButtonChecked() const;
|
|
bool validate();
|
|
|
|
Ui::HexdumpRangeDialog *ui;
|
|
bool emptyRange = true;
|
|
ut64 startAddress;
|
|
ut64 endAddress;
|
|
bool allowEmpty = false;
|
|
|
|
private slots:
|
|
void on_radioButtonClicked(bool checked);
|
|
|
|
};
|
|
|
|
#endif // HEXDUMPRANGEDIALOG_H
|