diff options
| author | Rusty Wagner <rusty@vector35.com> | 2019-03-19 15:41:08 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2019-03-20 13:00:17 -0400 |
| commit | 411acbaa4a1d217e731d3df0b189445117be3b26 (patch) | |
| tree | 49b5c5290058ffb98dd23ec9a7c1a49921254d15 /ui/instructionedit.h | |
| parent | ca1bc587c22928bbd7198813064c9615c3c12771 (diff) | |
Add in progress UI API headers
Diffstat (limited to 'ui/instructionedit.h')
| -rw-r--r-- | ui/instructionedit.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ui/instructionedit.h b/ui/instructionedit.h new file mode 100644 index 00000000..9e388210 --- /dev/null +++ b/ui/instructionedit.h @@ -0,0 +1,29 @@ +#pragma once + +#include <QtWidgets/QLineEdit> +#include "binaryninjaapi.h" +#include "uicontext.h" + +class BINARYNINJAUIAPI InstructionEdit: public QLineEdit +{ + Q_OBJECT + + BinaryViewRef m_data; + ArchitectureRef m_arch; + FunctionRef m_func; + uint64_t m_offset; + bool m_preventDismiss; + +public: + InstructionEdit(QWidget* parent, BinaryViewRef data, ArchitectureRef arch, FunctionRef func, uint64_t offset); + + void acceptInstruction(); + void rejectInstruction(); + +protected: + virtual void keyPressEvent(QKeyEvent* event); + virtual void focusOutEvent(QFocusEvent* event); + +Q_SIGNALS: + void done(); +}; |
