diff options
Diffstat (limited to 'ui/platformdialog.h')
| -rw-r--r-- | ui/platformdialog.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ui/platformdialog.h b/ui/platformdialog.h new file mode 100644 index 00000000..01f2c75f --- /dev/null +++ b/ui/platformdialog.h @@ -0,0 +1,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(); +}; |
