blob: e29d646762c5dcb60ab460299af2160021b9e556 (
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
30
31
32
33
|
#include "tabasymmetric.h"
#include "ui_tabasymmetric.h"
TabAsymmetric::TabAsymmetric(QWidget *parent) :
QWidget(parent),
ui(new Ui::TabAsymmetric)
{
ui->setupUi(this);
//Set SpinBoxCiphers to number of Asymmetric Ciphers
ui->spinBoxCipher->setMinimum( (CiphersSingleton::getInstance()).symmetricCiphersCount() );
ui->spinBoxCipher->setMaximum( (CiphersSingleton::getInstance()).symmetricCiphersCount() +
(CiphersSingleton::getInstance()).asymmetricCiphersCount()-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)));
}
TabAsymmetric::~TabAsymmetric()
{
delete ui;
}
void TabAsymmetric::on_spinBoxKeylength_valueChanged(int value)
{
emit keyLengthChanged(value, true);
}
|