-
Notifications
You must be signed in to change notification settings - Fork 0
/
cipherdialog.cpp
39 lines (36 loc) · 1.19 KB
/
cipherdialog.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
#include "cipherdialog.h"
#include "ui_cipherdialog.h"
#include "mainwindow.h"
#include <QDebug>
cipherDialog::cipherDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::cipherDialog)
{
ui->setupUi(this);
if (single_r_on) ui->single_reduction->setChecked(true);
if (francis_on) ui->francis_bacon->setChecked(true);
if (satanic_on) ui->satanic->setChecked(true);
if (jewish_on) ui->jewish->setChecked(true);
if (sumerian_on) ui->sumerian->setChecked(true);
if (rev_sumerian_on) ui->rev_sumerian->setChecked(true);
}
cipherDialog::~cipherDialog()
{
delete ui;
}
void cipherDialog::on_buttonBox_accepted()
{
if (ui->single_reduction->isChecked()) single_r_on = true;
else single_r_on = false;
if (ui->francis_bacon->isChecked()) francis_on = true;
else francis_on = false;
if (ui->satanic->isChecked()) satanic_on = true;
else satanic_on = false;
if (ui->jewish->isChecked()) jewish_on = true;
else jewish_on = false;
if (ui->sumerian->isChecked()) sumerian_on = true;
else sumerian_on = false;
if (ui->rev_sumerian->isChecked()) rev_sumerian_on = true;
else rev_sumerian_on = false;
//if (primeson) qDebug() << "Prime is on";
}