2017-03-29 10:18:37 +00:00
|
|
|
#ifndef OPTIONSDIALOG_H
|
|
|
|
#define OPTIONSDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QStringList>
|
2017-09-25 12:55:41 +00:00
|
|
|
#include "cutter.h"
|
2017-03-29 10:18:37 +00:00
|
|
|
#include "analthread.h"
|
|
|
|
|
|
|
|
class MainWindow;
|
|
|
|
|
2017-04-09 19:55:06 +00:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class OptionsDialog;
|
2017-03-29 10:18:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class OptionsDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-05-13 18:09:36 +00:00
|
|
|
explicit OptionsDialog(MainWindow *main);
|
2017-03-29 10:18:37 +00:00
|
|
|
~OptionsDialog();
|
|
|
|
RAnalFunction functionAt(ut64 addr);
|
|
|
|
QStringList asm_plugins;
|
|
|
|
|
2017-07-24 11:05:28 +00:00
|
|
|
void setupAndStartAnalysis(int level, QList<QString> advanced);
|
2017-04-28 13:09:40 +00:00
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
private slots:
|
|
|
|
void on_closeButton_clicked();
|
|
|
|
void on_okButton_clicked();
|
|
|
|
void on_cancelButton_clicked();
|
|
|
|
void on_analSlider_valueChanged(int value);
|
|
|
|
void on_AdvOptButton_clicked();
|
2017-04-10 12:22:18 +00:00
|
|
|
void on_analCheckBox_clicked(bool checked);
|
2017-09-27 20:23:18 +00:00
|
|
|
void on_archComboBox_currentIndexChanged(int index);
|
|
|
|
void on_pdbSelectButton_clicked();
|
|
|
|
|
|
|
|
void updatePDBLayout();
|
|
|
|
|
|
|
|
void anal_finished();
|
2017-04-10 12:22:18 +00:00
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
private:
|
|
|
|
Ui::OptionsDialog *ui;
|
2017-03-31 22:47:37 +00:00
|
|
|
AnalThread analThread;
|
2017-05-13 18:09:36 +00:00
|
|
|
MainWindow *main;
|
2017-04-18 10:03:47 +00:00
|
|
|
int defaultAnalLevel;
|
2017-04-01 11:20:13 +00:00
|
|
|
|
2017-04-10 12:22:18 +00:00
|
|
|
QString analysisDescription(int level);
|
2017-09-27 20:23:18 +00:00
|
|
|
|
|
|
|
void updateCPUComboBox();
|
|
|
|
QString getSelectedArch();
|
|
|
|
QString getSelectedCPU();
|
|
|
|
int getSelectedBits();
|
|
|
|
QString getSelectedOS();
|
2017-03-29 10:18:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // OPTIONSDIALOG_H
|