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/compileoptions.h | |
| parent | ca1bc587c22928bbd7198813064c9615c3c12771 (diff) | |
Add in progress UI API headers
Diffstat (limited to 'ui/compileoptions.h')
| -rw-r--r-- | ui/compileoptions.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/ui/compileoptions.h b/ui/compileoptions.h new file mode 100644 index 00000000..53a7e687 --- /dev/null +++ b/ui/compileoptions.h @@ -0,0 +1,46 @@ +#pragma once + +#include <QtWidgets/QDialog> +#include <QtWidgets/QCheckBox> +#include <QtWidgets/QRadioButton> +#include <QtWidgets/QLineEdit> +#include "binaryninjaapi.h" +#include "uicontext.h" + +class BINARYNINJAUIAPI CompileOptions: public QDialog +{ + Q_OBJECT + + QCheckBox* m_safeStack; + QLineEdit* m_blacklist; + QLineEdit* m_base; + QLineEdit* m_maxLength; + QCheckBox* m_pad; + QCheckBox* m_polymorph; + + QRadioButton* m_exit; + QRadioButton* m_allowReturn; + QRadioButton* m_concat; + + QLineEdit* m_stackReg; + QLineEdit* m_frameReg; + QLineEdit* m_baseReg; + QLineEdit* m_returnReg; + QLineEdit* m_returnHighReg; + QCheckBox* m_encodePointers; + QCheckBox* m_stackGrowsUp; + QCheckBox* m_antiDisasm; + QLineEdit* m_antiDisasmFreq; + QLineEdit* m_seed; + + QString optionValue(const std::map<std::string, std::string>& options, const std::string& name); + void updateOptions(const std::map<std::string, std::string>& options); + +public: + CompileOptions(QWidget* parent, const std::map<std::string, std::string>& initialOptions); + + std::map<std::string, std::string> getSettings(); + +private Q_SLOTS: + void reset(); +}; |
