blob: 9d8709c251913576c4fc825a5334c61d165c5068 (
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
37
38
39
40
|
#pragma once
#include <QtWidgets/QDialog>
#include <QtWidgets/QComboBox>
#include "binaryninjaapi.h"
#include "uicontext.h"
/*!
\defgroup platformdialog PlatformDialog
\ingroup uiapi
*/
/*!
\ingroup platformdialog
*/
class BINARYNINJAUIAPI PlatformDialog : public QDialog
{
Q_OBJECT
QComboBox* m_arch;
QComboBox* m_os;
QComboBox* m_platform;
std::map<QString, PlatformRef> m_platformsByName;
PlatformRef m_selectedPlatform;
public:
PlatformDialog(QWidget* parent, ArchitectureRef defaultArch = nullptr);
PlatformRef getPlatform();
void saveDefaults();
private Q_SLOTS:
void architectureChanged(const QString& name);
void osChanged(const QString& name);
void selectPlatform();
};
|