From 411acbaa4a1d217e731d3df0b189445117be3b26 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 19 Mar 2019 15:41:08 -0400 Subject: Add in progress UI API headers --- ui/createtypedialog.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ui/createtypedialog.h (limited to 'ui/createtypedialog.h') diff --git a/ui/createtypedialog.h b/ui/createtypedialog.h new file mode 100644 index 00000000..1d0effe3 --- /dev/null +++ b/ui/createtypedialog.h @@ -0,0 +1,28 @@ +#pragma once + +#include +#include +#include "binaryninjaapi.h" +#include "dialogtextedit.h" +#include "uicontext.h" + +class BINARYNINJAUIAPI CreateTypeDialog: public QDialog +{ + Q_OBJECT + + DialogTextEdit* m_code; + + BinaryViewRef m_data; + std::map m_results; + +public: + CreateTypeDialog(QWidget* parent, BinaryViewRef data, const QString& definition); + std::map getResults() { return m_results; } + +private Q_SLOTS: + void createType(); + +protected: + virtual void showEvent(QShowEvent* e) override; + +}; -- cgit v1.3.1