Added vacant Password Management Window

This commit is contained in:
amazing-username
2017-07-29 16:18:50 -05:00
parent 4d5b19cabe
commit 2074f26c4e
8 changed files with 111 additions and 64 deletions
+22 -15
View File
@@ -12,6 +12,25 @@
#include"Conversions.h"
KeyManagementWindow::KeyManagementWindow(QWidget* parent) : QDialog(parent)
{
setupWindow();
connections();
}
void KeyManagementWindow::setContentsOfComboBox()
{
KeyRetrieval kr{};
std::vector<int> c{kr.codeCharacterStructure()};
for (auto index = 0u; index!=c.size(); ++index)
{
std::string ch{static_cast<char>(c[index])};
QString bl = QString::fromStdString(ch);
selectionBox.get()->addItem(bl);
}
}
void KeyManagementWindow::setupWindow()
{
windowWidth = 450;
windowHeight = 450;
@@ -54,25 +73,13 @@ KeyManagementWindow::KeyManagementWindow(QWidget* parent) : QDialog(parent)
setFixedHeight(windowHeight);
setWindowTitle("Key Management Window");
}
void KeyManagementWindow::connections()
{
QObject::connect(selectionBox.get(), SIGNAL(currentIndexChanged(int)), SLOT(test()));
QObject::connect(generateNewKeys.get(), SIGNAL(clicked()), this, SLOT(generation()));
QObject::connect(closeButton.get(), SIGNAL(clicked()), this, SLOT(exitApplication()));
}
void KeyManagementWindow::setContentsOfComboBox()
{
KeyRetrieval kr{};
std::vector<int> c{kr.codeCharacterStructure()};
for (auto index = 0u; index!=c.size(); ++index)
{
std::string ch{static_cast<char>(c[index])};
QString bl = QString::fromStdString(ch);
selectionBox.get()->addItem(bl);
}
}
void KeyManagementWindow::test()
{
std::string emp{"d"};