blob: bcb9cd20b83edbb2dc0d4425826fab399d8dbfd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#include <QtWidgets/QDialog>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QCheckBox>
#include "binaryninjaapi.h"
#include "uicontext.h"
class BINARYNINJAUIAPI CreateStructDialog : public QDialog
{
Q_OBJECT
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, 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();
protected:
virtual void showEvent(QShowEvent* e) override;
};
|