Added abstract class that holds partial window data
This commit is contained in:
@@ -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
|
||||||
@@ -9,7 +9,7 @@ QT += widgets
|
|||||||
INCLUDEPATH += .
|
INCLUDEPATH += .
|
||||||
|
|
||||||
# Input
|
# 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 \
|
SOURCES += Decryption.cpp \
|
||||||
Encryption.cpp \
|
Encryption.cpp \
|
||||||
Cryption.cpp \
|
Cryption.cpp \
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user