blob: 071d4f8ee7e472fd36e113a74a52c69977835aa3 (
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
|
#pragma once
#include <QtWidgets/QDialog>
#include <QtWidgets/QComboBox>
#include "binaryninjaapi.h"
#include "uicontext.h"
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();
};
|