diff options
| author | Xusheng <xusheng@vector35.com> | 2022-07-20 15:57:00 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2022-08-04 14:59:46 +0800 |
| commit | ae8d81fd6662ba42e11c068126e890470438e482 (patch) | |
| tree | b1cb1b24481de29251b54644d56715322cff77ba /ui/createstructdialog.h | |
| parent | 0469ac871e005ecb359fb171368eee3f517e391c (diff) | |
Merge the functionality of "Create Structure" with "Create All Members" in linear view
Diffstat (limited to 'ui/createstructdialog.h')
| -rw-r--r-- | ui/createstructdialog.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/createstructdialog.h b/ui/createstructdialog.h index f273399f..bcb9cd20 100644 --- a/ui/createstructdialog.h +++ b/ui/createstructdialog.h @@ -2,6 +2,7 @@ #include <QtWidgets/QDialog> #include <QtWidgets/QLineEdit> +#include <QtWidgets/QCheckBox> #include "binaryninjaapi.h" #include "uicontext.h" @@ -11,16 +12,21 @@ class BINARYNINJAUIAPI CreateStructDialog : public QDialog QLineEdit* m_name; QLineEdit* m_size; + QCheckBox* m_pointer; BinaryViewRef m_view; BinaryNinja::QualifiedName m_resultName; uint64_t m_resultSize; + bool m_resultPointer; + bool m_askForPointer; public: - CreateStructDialog(QWidget* parent, BinaryViewRef view, const std::string& name); + CreateStructDialog(QWidget* parent, BinaryViewRef view, const std::string& name, bool askForPointer = false, + bool defaultToPointer = false); BinaryNinja::QualifiedName getName() { return m_resultName; } uint64_t getSize() { return m_resultSize; } + bool getCreatePointer() { return m_resultPointer;} private Q_SLOTS: void createStruct(); |
