From 2324618008670469819575185748778191038053 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 2 Mar 2023 18:57:28 -0500 Subject: CreateTypeDialog helpers to create/apply the dialog like TypeView does --- ui/createtypedialog.h | 4 ++++ 1 file changed, 4 insertions(+) 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& typesAllowRedefinition = {}); + static CreateTypeDialog* createWithType(QWidget* parent, BinaryViewRef data, BinaryNinja::QualifiedName name, TypeRef type); + std::vector getResults() { return m_results; } + void applyResults() { applyResultsTo(this, m_data); } + void applyResultsTo(QWidget* parent, BinaryViewRef view); private Q_SLOTS: void createType(); -- cgit v1.3.1