summaryrefslogtreecommitdiffstats
path: root/src/tabsymmetric.cpp
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-03-25 10:15:50 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-03-25 10:33:32 +0100
commita1e3d36dca9c6abf235c7ddf47ab9185c4b748d5 (patch)
tree859befb5df101432b7388e1562f90a01c6d8e238 /src/tabsymmetric.cpp
downloadIT-Sicherheit-a1e3d36dca9c6abf235c7ddf47ab9185c4b748d5.tar.gz
IT-Sicherheit-a1e3d36dca9c6abf235c7ddf47ab9185c4b748d5.zip
First commit of IT-Sicherheit
Diffstat (limited to 'src/tabsymmetric.cpp')
-rw-r--r--src/tabsymmetric.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tabsymmetric.cpp b/src/tabsymmetric.cpp
new file mode 100644
index 0000000..85f742d
--- /dev/null
+++ b/src/tabsymmetric.cpp
@@ -0,0 +1,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);
+}