diff options
| author | Rusty Wagner <rusty@vector35.com> | 2019-03-19 15:41:08 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2019-03-20 13:00:17 -0400 |
| commit | 411acbaa4a1d217e731d3df0b189445117be3b26 (patch) | |
| tree | 49b5c5290058ffb98dd23ec9a7c1a49921254d15 /ui/platformdialog.h | |
| parent | ca1bc587c22928bbd7198813064c9615c3c12771 (diff) | |
Add in progress UI API headers
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(); +}; |
