cutter/src/dialogs/InitialOptionsDialog.h

73 lines
1.6 KiB
C
Raw Normal View History

#ifndef OPTIONSDIALOG_H
#define OPTIONSDIALOG_H
#include <QDialog>
#include <QStringList>
#include <QTimer>
#include <QElapsedTimer>
2017-10-02 09:41:28 +00:00
#include <memory>
#include "core/Cutter.h"
#include "common/AnalTask.h"
2018-10-17 07:55:53 +00:00
#include "common/InitialOptions.h"
2018-09-30 20:00:53 +00:00
namespace Ui {
class InitialOptionsDialog;
}
class MainWindow;
class InitialOptionsDialog : public QDialog
{
Q_OBJECT
public:
explicit InitialOptionsDialog(MainWindow *main);
~InitialOptionsDialog();
2018-05-27 14:51:01 +00:00
QStringList asm_plugins;
void setupAndStartAnalysis(/*int level, QList<QString> advanced*/);
private slots:
void on_okButton_clicked();
void on_analSlider_valueChanged(int value);
void on_AdvOptButton_clicked();
void on_analCheckBox_clicked(bool checked);
void on_archComboBox_currentIndexChanged(int index);
void on_pdbSelectButton_clicked();
void on_scriptSelectButton_clicked();
void updatePDBLayout();
void updateScriptLayout();
protected:
2018-03-21 20:32:32 +00:00
void closeEvent(QCloseEvent *event) override;
private:
std::unique_ptr<Ui::InitialOptionsDialog> ui;
2018-07-24 16:49:52 +00:00
MainWindow *main;
2017-10-09 18:08:35 +00:00
CutterCore *core;
2017-04-01 11:20:13 +00:00
QString analysisDescription(int level);
QString shellcode;
2018-08-18 18:45:49 +00:00
int analLevel;
void updateCPUComboBox();
QString getSelectedArch();
QString getSelectedCPU();
int getSelectedBits();
int getSelectedBBSize();
InitialOptions::Endianness getSelectedEndianness();
QString getSelectedOS();
2018-05-27 19:38:19 +00:00
QList<QString> getSelectedAdvancedAnalCmds();
2018-05-27 14:51:01 +00:00
public:
void loadOptions(const InitialOptions &options);
2017-12-06 12:32:35 +00:00
void reject() override;
};
#endif // OPTIONSDIALOG_H