Added abstract class that holds partial window data

This commit is contained in:
amazing-username
2017-07-23 13:07:52 -05:00
parent de5b56e84f
commit 157b18ee8d
3 changed files with 43 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef COMMONWINDOW_H_
#define COMMONWINDOW_H_
#include<QHBoxLayout>
#include<QVBoxLayout>
#include<QComboBox>
#include<QPushButton>
#include<memory>
using std::unique_ptr;
class CommonWindow
{
public:
CommonWindow() = default;
~CommonWindow() = default;
protected:
unique_ptr<QComboBox> selectionBox;
unique_ptr<QPushButton> actionButton;
unique_ptr<QHBoxLayout> mainLayout;
unique_ptr<VBoxLayout> subLayoutOne;
unique_ptr<VBoxLayout> subLayoutTwo;
};
#endif
+1 -1
View File
@@ -9,7 +9,7 @@ QT += widgets
INCLUDEPATH += .
# Input
HEADERS += Decryption.h Encryption.h GenerateKeys.h MessagingControls.h Cryption.h KeyManagementWindow.h KeyRetrieval.h Conversions.h
HEADERS += Decryption.h Encryption.h GenerateKeys.h MessagingControls.h Cryption.h KeyManagementWindow.h KeyRetrieval.h Conversions.h CommonWindow.h ViewingWindow.h
SOURCES += Decryption.cpp \
Encryption.cpp \
Cryption.cpp \
+18
View File
@@ -0,0 +1,18 @@
#ifndef VIEWINGWINDOW_H_
#define VIEWINGWINDOW_H_
#include<QLineEdit>
#include<QPushButton>
#include<memory>
using std::unique_ptr;
class ViewingWindow
{
public:
ViewingWindow() = default;
~ViewingWindow() = default;
protected:
unique_ptr<QLineEdit> crypticText;
};
#endif