diff options
| author | Glenn Smith <glenn@vector35.com> | 2023-03-02 18:57:28 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2023-03-29 16:39:37 -0400 |
| commit | 2324618008670469819575185748778191038053 (patch) | |
| tree | c80f3c2800c76399b2c21dd462c266b64e2f9f59 /ui/createtypedialog.h | |
| parent | 69d482b1a8eccbb69f44c44e215e41dbef920146 (diff) | |
CreateTypeDialog helpers to create/apply the dialog like TypeView does
Diffstat (limited to 'ui/createtypedialog.h')
| -rw-r--r-- | ui/createtypedialog.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/createtypedialog.h b/ui/createtypedialog.h index 7b4e8b9e..80de6b0b 100644 --- a/ui/createtypedialog.h +++ b/ui/createtypedialog.h @@ -25,7 +25,11 @@ class BINARYNINJAUIAPI CreateTypeDialog : public QDialog public: CreateTypeDialog(QWidget* parent, BinaryViewRef data, const QString& title, const QString& definition, const std::set<BinaryNinja::QualifiedName>& typesAllowRedefinition = {}); + static CreateTypeDialog* createWithType(QWidget* parent, BinaryViewRef data, BinaryNinja::QualifiedName name, TypeRef type); + std::vector<BinaryNinja::ParsedType> getResults() { return m_results; } + void applyResults() { applyResultsTo(this, m_data); } + void applyResultsTo(QWidget* parent, BinaryViewRef view); private Q_SLOTS: void createType(); |
