-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCorruptor_Settings.h
46 lines (39 loc) · 1.27 KB
/
Corruptor_Settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef CORRUPTOR_SETTINGS_H
#define CORRUPTOR_SETTINGS_H
#include <QDialog>
#include <QAbstractButton>
#include "Settings.h"
namespace Ui {
class Corruptor_Settings;
}
class Corruptor_Settings : public QDialog
{
Q_OBJECT
public:
Corruptor_Settings(QWidget *parent, Settings *settings, qint64 fileSize);
~Corruptor_Settings();
private slots:
void on_cbRandomByteCorruption_toggled(bool checked);
void on_cbAdd_toggled(bool checked);
void on_cbShiftLeft_toggled(bool checked);
void on_cbReplace_toggled(bool checked);
void on_buttonBox_accepted();
void on_buttonBox_rejected();
void on_btnSaveSettings_clicked();
void on_btnLoadSettings_clicked();
void on_sbStartingOffset_valueChanged(int arg1);
void on_sbEndingOffset_valueChanged(int arg1);
void on_sbMinBytes_valueChanged(int arg1);
void on_sbMaxBytes_valueChanged(int arg1);
void on_btnEndOfFile_clicked();
private:
void Set_Random_Corruption_Mode(bool random);
void Set_Add_Mode(bool add);
void Set_Shift_Left_Mode(bool shift);
void Set_Replace_Mode(bool replace);
void Load_Settings(qint64 fileSize);
Ui::Corruptor_Settings *ui;
Settings *settings;
qint64 fileSize;
};
#endif // CORRUPTOR_SETTINGS_H