forked from ic005k/OCAuxiliaryTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdlgParameters.cpp
113 lines (100 loc) · 3.53 KB
/
dlgParameters.cpp
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#include "dlgParameters.h"
#include "mainwindow.h"
#include "ui_dlgParameters.h"
extern MainWindow* mw_one;
extern QVector<QCheckBox*> chkDisplayLevel;
extern QVector<QCheckBox*> chk_ScanPolicy;
extern QVector<QCheckBox*> chk_PickerAttributes;
extern QVector<QCheckBox*> chk_ExposeSensitiveData;
extern QVector<QCheckBox*> chk_Target;
dlgParameters::dlgParameters(QWidget* parent)
: QDialog(parent)
, ui(new Ui::dlgParameters)
{
ui->setupUi(this);
chkDisplayLevel.clear();
chkDisplayLevel.append(ui->chkD1);
chkDisplayLevel.append(ui->chkD2);
chkDisplayLevel.append(ui->chkD3);
chkDisplayLevel.append(ui->chkD4);
chkDisplayLevel.append(ui->chkD5);
chkDisplayLevel.append(ui->chkD6);
chkDisplayLevel.append(ui->chkD7);
chkDisplayLevel.append(ui->chkD8);
chkDisplayLevel.append(ui->chkD9);
chkDisplayLevel.append(ui->chkD10);
chkDisplayLevel.append(ui->chkD11);
chkDisplayLevel.append(ui->chkD12);
chkDisplayLevel.append(ui->chkD13);
chkDisplayLevel.append(ui->chkD14);
chkDisplayLevel.append(ui->chkD15);
chkDisplayLevel.append(ui->chkD16);
chkDisplayLevel.append(ui->chkD17);
chkDisplayLevel.append(ui->chkD18);
chkDisplayLevel.append(ui->chkD19);
for (int i = 0; i < chkDisplayLevel.count(); i++) {
connect(chkDisplayLevel.at(i), &QCheckBox::clicked, this, &dlgParameters::slotDisplayLevel);
}
chk_ScanPolicy.clear();
chk_ScanPolicy.append(ui->chk1);
chk_ScanPolicy.append(ui->chk2);
chk_ScanPolicy.append(ui->chk3);
chk_ScanPolicy.append(ui->chk4);
chk_ScanPolicy.append(ui->chk5);
chk_ScanPolicy.append(ui->chk6);
chk_ScanPolicy.append(ui->chk7);
chk_ScanPolicy.append(ui->chk8);
chk_ScanPolicy.append(ui->chk9);
chk_ScanPolicy.append(ui->chk10);
chk_ScanPolicy.append(ui->chk11);
chk_ScanPolicy.append(ui->chk12);
chk_ScanPolicy.append(ui->chk13);
chk_ScanPolicy.append(ui->chk14);
chk_ScanPolicy.append(ui->chk15);
chk_ScanPolicy.append(ui->chk16);
chk_ScanPolicy.append(ui->chk17);
chk_ScanPolicy.append(ui->chk18);
for (int i = 0; i < chk_ScanPolicy.count(); i++) {
connect(chk_ScanPolicy.at(i), &QCheckBox::clicked, this, &dlgParameters::slotScanPolicy);
}
chk_PickerAttributes.clear();
chk_PickerAttributes.append(ui->chkPA1);
chk_PickerAttributes.append(ui->chkPA2);
chk_PickerAttributes.append(ui->chkPA3);
chk_PickerAttributes.append(ui->chkPA4);
chk_PickerAttributes.append(ui->chkPA5);
chk_PickerAttributes.append(ui->chkPA6);
chk_PickerAttributes.append(ui->chkPA7);
chk_PickerAttributes.append(ui->chkPA8);
for (int i = 0; i < chk_PickerAttributes.count(); i++) {
connect(chk_PickerAttributes.at(i), &QCheckBox::clicked, this, &dlgParameters::slotPickerAttributes);
}
chk_ExposeSensitiveData.clear();
chk_ExposeSensitiveData.append(ui->chk01);
chk_ExposeSensitiveData.append(ui->chk02);
chk_ExposeSensitiveData.append(ui->chk04);
chk_ExposeSensitiveData.append(ui->chk08);
for (int i = 0; i < chk_ExposeSensitiveData.count(); i++) {
connect(chk_ExposeSensitiveData.at(i), &QCheckBox::clicked, this, &dlgParameters::slotExposeSensitiveData);
}
}
dlgParameters::~dlgParameters()
{
delete ui;
}
void dlgParameters::slotDisplayLevel()
{
mw_one->DisplayLevel();
}
void dlgParameters::slotScanPolicy()
{
mw_one->ScanPolicy();
}
void dlgParameters::slotPickerAttributes()
{
mw_one->PickerAttributes();
}
void dlgParameters::slotExposeSensitiveData()
{
mw_one->ExposeSensitiveData();
}