blob: b985c32c3e551cd75afd53f59989f82ad773bb0a (
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
34
|
#include "tabhybrid.h"
#include "ui_tabhybrid.h"
TabHybrid::TabHybrid(QWidget *parent) :
QWidget(parent),
ui(new Ui::TabHybrid)
{
ui->setupUi(this);
//Set SpinBoxCiphers to number of Symmetric Ciphers
ui->spinBoxCipherSymmetric->setMaximum( (CiphersSingleton::getInstance()).symmetricCiphersCount()-1 );
//Set SpinBoxCiphers to number of Asymmetric Ciphers
ui->spinBoxCipherAsymmetric->setMinimum( (CiphersSingleton::getInstance()).symmetricCiphersCount() );
ui->spinBoxCipherAsymmetric->setMaximum( (CiphersSingleton::getInstance()).symmetricCiphersCount() +
(CiphersSingleton::getInstance()).asymmetricCiphersCount()-1 );
//Send Selection from SpinBox on to TabWidgetSelectAlgorithm
connect( ui->spinBoxCipherSymmetric, SIGNAL(valueChanged(int)),
this, SIGNAL(cipherChanged(int)) );
//TODO enable Hybrid - Asymmetric
connect( ui->spinBoxKeylengthSymmetric, SIGNAL(valueChanged(int)),
this, SLOT(on_spinBoxKeylengthSymmetric_valueChanged(int)));
}
TabHybrid::~TabHybrid()
{
delete ui;
}
void TabHybrid::on_spinBoxKeylengthSymmetric_valueChanged(int value)
{
emit keyLengthChanged(value, true);
}
|