diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-03-25 10:15:50 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-03-25 10:33:32 +0100 |
| commit | a1e3d36dca9c6abf235c7ddf47ab9185c4b748d5 (patch) | |
| tree | 859befb5df101432b7388e1562f90a01c6d8e238 /src/tabasymmetric.cpp | |
| download | IT-Sicherheit-a1e3d36dca9c6abf235c7ddf47ab9185c4b748d5.tar.gz IT-Sicherheit-a1e3d36dca9c6abf235c7ddf47ab9185c4b748d5.zip | |
First commit of IT-Sicherheit
Diffstat (limited to 'src/tabasymmetric.cpp')
| -rw-r--r-- | src/tabasymmetric.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/tabasymmetric.cpp b/src/tabasymmetric.cpp new file mode 100644 index 0000000..e29d646 --- /dev/null +++ b/src/tabasymmetric.cpp @@ -0,0 +1,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); +} |
