diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-07-30 20:55:52 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-07-30 20:55:52 +0200 |
commit | 2da24be2e8f8ffa60e371557d75183b67fd2ea24 (patch) | |
tree | ec436bf94ad75fed1e0779d35a2bd7a64833babd /bytewindow.h | |
parent | 98c665b409595238d73f550f95c7bf83ec6142da (diff) |
Added UI to insert/delete bytes into a packet.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'bytewindow.h')
-rw-r--r-- | bytewindow.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/bytewindow.h b/bytewindow.h new file mode 100644 index 0000000..e087a1e --- /dev/null +++ b/bytewindow.h @@ -0,0 +1,31 @@ +#ifndef BYTEWINDOW_H +#define BYTEWINDOW_H + +#include <QDialog> + +QT_BEGIN_NAMESPACE +namespace Ui { class ByteWindow; } +QT_END_NAMESPACE + +enum class ByteWindowOption { + BWO_UNKNOWN, + BWO_INSERT, + BWO_DELETE +}; + +class ByteWindow : public QDialog +{ + Q_OBJECT + +public: + explicit ByteWindow(QWidget *parent = nullptr); + ~ByteWindow(); + void set(ByteWindowOption option, int offset, int size); + ByteWindowOption getOption(); + int getOffset(); + int getSize(); + +private: + Ui::ByteWindow *ui; +}; +#endif // BYTEWINDOW_H |