blob: 85f742d616de8da24fa743a419087bef82051a71 (
plain)
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
|
#include "tabsymmetric.h"
#include "ui_tabsymmetric.h"
TabSymmetric::TabSymmetric(QWidget *parent) :
QWidget(parent),
ui(new Ui::TabSymmetric)
{
ui->setupUi(this);
//Set SpinBoxCiphers to number of Symmetric Ciphers
ui->spinBoxCipher->setMaximum( (CiphersSingleton::getInstance()).symmetricCiphersCount()-1 );
//Send Selection from SpinBox on to TabWidgetSelectAlgorithm
connect( ui->spinBoxCipher, SIGNAL(valueChanged(int)),
this, SIGNAL(cipherChanged(int)) );
connect( ui->spinBoxKeylength, SIGNAL(valueChanged(int)),
this, SLOT(on_spinBoxKeylength_valueChanged(int)));
}
TabSymmetric::~TabSymmetric()
{
delete ui;
}
void TabSymmetric::on_spinBoxKeylength_valueChanged(int value)
{
emit keyLengthChanged(value, true);
}
|