Archived
Fixed issue where a new window to save password with a certain name would crash. Next add implementation
This commit is contained in:
+6
-1
@@ -92,7 +92,12 @@ void MainWindow::connections()
|
|||||||
QObject::connect(textForCryption.get(), SIGNAL(textChanged()), this, SLOT(activateButton()));
|
QObject::connect(textForCryption.get(), SIGNAL(textChanged()), this, SLOT(activateButton()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* February 26, 2018
|
||||||
|
*
|
||||||
|
* Work on asking the user to enter a filename
|
||||||
|
*
|
||||||
|
*/
|
||||||
void MainWindow::encryptPassword()
|
void MainWindow::encryptPassword()
|
||||||
{
|
{
|
||||||
QString passwordToEncrypt{textForCryption.get()->toPlainText()}, keyForEncryption{selectionBox.get()->currentText()};
|
QString passwordToEncrypt{textForCryption.get()->toPlainText()}, keyForEncryption{selectionBox.get()->currentText()};
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ CXX = g++
|
|||||||
DEFINES = -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
|
DEFINES = -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
|
||||||
CFLAGS = -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
|
CFLAGS = -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
|
||||||
CXXFLAGS = -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
|
CXXFLAGS = -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC $(DEFINES)
|
||||||
INCPATH = -I. -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/qt/mkspecs/linux-g++ -I /usr/include/boost
|
INCPATH = -I. -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/qt/mkspecs/linux-g++ -I "/usr/include/boost"
|
||||||
QMAKE = /usr/bin/qmake
|
QMAKE = /usr/bin/qmake
|
||||||
DEL_FILE = rm -f
|
DEL_FILE = rm -f
|
||||||
CHK_DIR_EXISTS= test -d
|
CHK_DIR_EXISTS= test -d
|
||||||
@@ -35,7 +35,7 @@ MOVE = mv -f
|
|||||||
TAR = tar -cf
|
TAR = tar -cf
|
||||||
COMPRESS = gzip -9f
|
COMPRESS = gzip -9f
|
||||||
DISTNAME = PasswordEncryption1.0.0
|
DISTNAME = PasswordEncryption1.0.0
|
||||||
DISTDIR = /home/monde/Downloads/PasswordEncryption/.tmp/PasswordEncryption1.0.0
|
DISTDIR = /home/monde/Programming/C++/PasswordEncryption/.tmp/PasswordEncryption1.0.0
|
||||||
LINK = g++
|
LINK = g++
|
||||||
LFLAGS = -Wl,-O1 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
|
LFLAGS = -Wl,-O1 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
|
||||||
LIBS = $(SUBLIBS) -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread -L "/usr/include/boost" -lboost_filesystem -lboost_system
|
LIBS = $(SUBLIBS) -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread -L "/usr/include/boost" -lboost_filesystem -lboost_system
|
||||||
@@ -60,9 +60,11 @@ SOURCES = Cryption.cpp \
|
|||||||
KeyRetrieval.cpp \
|
KeyRetrieval.cpp \
|
||||||
Main.cpp \
|
Main.cpp \
|
||||||
MainWindow.cpp \
|
MainWindow.cpp \
|
||||||
PasswordManagementWindow.cpp moc_KeyManagementWindow.cpp \
|
PasswordManagementWindow.cpp \
|
||||||
|
SaveFile.cpp moc_KeyManagementWindow.cpp \
|
||||||
moc_MainWindow.cpp \
|
moc_MainWindow.cpp \
|
||||||
moc_PasswordManagementWindow.cpp
|
moc_PasswordManagementWindow.cpp \
|
||||||
|
moc_SaveFile.cpp
|
||||||
OBJECTS = Cryption.o \
|
OBJECTS = Cryption.o \
|
||||||
Decryption.o \
|
Decryption.o \
|
||||||
Encryption.o \
|
Encryption.o \
|
||||||
@@ -74,9 +76,11 @@ OBJECTS = Cryption.o \
|
|||||||
Main.o \
|
Main.o \
|
||||||
MainWindow.o \
|
MainWindow.o \
|
||||||
PasswordManagementWindow.o \
|
PasswordManagementWindow.o \
|
||||||
|
SaveFile.o \
|
||||||
moc_KeyManagementWindow.o \
|
moc_KeyManagementWindow.o \
|
||||||
moc_MainWindow.o \
|
moc_MainWindow.o \
|
||||||
moc_PasswordManagementWindow.o
|
moc_PasswordManagementWindow.o \
|
||||||
|
moc_SaveFile.o
|
||||||
DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
|
DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
|
||||||
/usr/lib/qt/mkspecs/common/unix.conf \
|
/usr/lib/qt/mkspecs/common/unix.conf \
|
||||||
/usr/lib/qt/mkspecs/common/linux.conf \
|
/usr/lib/qt/mkspecs/common/linux.conf \
|
||||||
@@ -133,6 +137,7 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
|
|||||||
/usr/lib/qt/mkspecs/features/qt_config.prf \
|
/usr/lib/qt/mkspecs/features/qt_config.prf \
|
||||||
/usr/lib/qt/mkspecs/linux-g++/qmake.conf \
|
/usr/lib/qt/mkspecs/linux-g++/qmake.conf \
|
||||||
/usr/lib/qt/mkspecs/features/spec_post.prf \
|
/usr/lib/qt/mkspecs/features/spec_post.prf \
|
||||||
|
.qmake.stash \
|
||||||
/usr/lib/qt/mkspecs/features/exclusive_builds.prf \
|
/usr/lib/qt/mkspecs/features/exclusive_builds.prf \
|
||||||
/usr/lib/qt/mkspecs/features/toolchain.prf \
|
/usr/lib/qt/mkspecs/features/toolchain.prf \
|
||||||
/usr/lib/qt/mkspecs/features/default_pre.prf \
|
/usr/lib/qt/mkspecs/features/default_pre.prf \
|
||||||
@@ -169,6 +174,7 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
|
|||||||
MainWindow.h \
|
MainWindow.h \
|
||||||
Password.h \
|
Password.h \
|
||||||
PasswordManagementWindow.h \
|
PasswordManagementWindow.h \
|
||||||
|
SaveFile.h \
|
||||||
TimeInformation.h \
|
TimeInformation.h \
|
||||||
ViewingWindow.h Cryption.cpp \
|
ViewingWindow.h Cryption.cpp \
|
||||||
Decryption.cpp \
|
Decryption.cpp \
|
||||||
@@ -180,7 +186,8 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
|
|||||||
KeyRetrieval.cpp \
|
KeyRetrieval.cpp \
|
||||||
Main.cpp \
|
Main.cpp \
|
||||||
MainWindow.cpp \
|
MainWindow.cpp \
|
||||||
PasswordManagementWindow.cpp
|
PasswordManagementWindow.cpp \
|
||||||
|
SaveFile.cpp
|
||||||
QMAKE_TARGET = PasswordEncryption
|
QMAKE_TARGET = PasswordEncryption
|
||||||
DESTDIR =
|
DESTDIR =
|
||||||
TARGET = PasswordEncryption
|
TARGET = PasswordEncryption
|
||||||
@@ -248,6 +255,7 @@ Makefile: PasswordEncryption.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/l
|
|||||||
/usr/lib/qt/mkspecs/features/qt_config.prf \
|
/usr/lib/qt/mkspecs/features/qt_config.prf \
|
||||||
/usr/lib/qt/mkspecs/linux-g++/qmake.conf \
|
/usr/lib/qt/mkspecs/linux-g++/qmake.conf \
|
||||||
/usr/lib/qt/mkspecs/features/spec_post.prf \
|
/usr/lib/qt/mkspecs/features/spec_post.prf \
|
||||||
|
.qmake.stash \
|
||||||
/usr/lib/qt/mkspecs/features/exclusive_builds.prf \
|
/usr/lib/qt/mkspecs/features/exclusive_builds.prf \
|
||||||
/usr/lib/qt/mkspecs/features/toolchain.prf \
|
/usr/lib/qt/mkspecs/features/toolchain.prf \
|
||||||
/usr/lib/qt/mkspecs/features/default_pre.prf \
|
/usr/lib/qt/mkspecs/features/default_pre.prf \
|
||||||
@@ -327,6 +335,7 @@ Makefile: PasswordEncryption.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/l
|
|||||||
/usr/lib/qt/mkspecs/features/qt_config.prf:
|
/usr/lib/qt/mkspecs/features/qt_config.prf:
|
||||||
/usr/lib/qt/mkspecs/linux-g++/qmake.conf:
|
/usr/lib/qt/mkspecs/linux-g++/qmake.conf:
|
||||||
/usr/lib/qt/mkspecs/features/spec_post.prf:
|
/usr/lib/qt/mkspecs/features/spec_post.prf:
|
||||||
|
.qmake.stash:
|
||||||
/usr/lib/qt/mkspecs/features/exclusive_builds.prf:
|
/usr/lib/qt/mkspecs/features/exclusive_builds.prf:
|
||||||
/usr/lib/qt/mkspecs/features/toolchain.prf:
|
/usr/lib/qt/mkspecs/features/toolchain.prf:
|
||||||
/usr/lib/qt/mkspecs/features/default_pre.prf:
|
/usr/lib/qt/mkspecs/features/default_pre.prf:
|
||||||
@@ -364,8 +373,8 @@ distdir: FORCE
|
|||||||
@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
|
@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
|
||||||
$(COPY_FILE) --parents $(DIST) $(DISTDIR)/
|
$(COPY_FILE) --parents $(DIST) $(DISTDIR)/
|
||||||
$(COPY_FILE) --parents /usr/lib/qt/mkspecs/features/data/dummy.cpp $(DISTDIR)/
|
$(COPY_FILE) --parents /usr/lib/qt/mkspecs/features/data/dummy.cpp $(DISTDIR)/
|
||||||
$(COPY_FILE) --parents Characters.h CommonWindow.h Conversions.h Cryption.h Decryption.h Demo.h Encryption.h FileNameRetrieval.h FolderStructure.h GenerateDate.h GenerateKeys.h GeneratePasswordFileName.h Key.h KeyManagementWindow.h KeyRetrieval.h MainWindow.h Password.h PasswordManagementWindow.h TimeInformation.h ViewingWindow.h $(DISTDIR)/
|
$(COPY_FILE) --parents Characters.h CommonWindow.h Conversions.h Cryption.h Decryption.h Demo.h Encryption.h FileNameRetrieval.h FolderStructure.h GenerateDate.h GenerateKeys.h GeneratePasswordFileName.h Key.h KeyManagementWindow.h KeyRetrieval.h MainWindow.h Password.h PasswordManagementWindow.h SaveFile.h TimeInformation.h ViewingWindow.h $(DISTDIR)/
|
||||||
$(COPY_FILE) --parents Cryption.cpp Decryption.cpp Encryption.cpp FileNameRetrieval.cpp FolderStructure.cpp GeneratePasswordFileName.cpp KeyManagementWindow.cpp KeyRetrieval.cpp Main.cpp MainWindow.cpp PasswordManagementWindow.cpp $(DISTDIR)/
|
$(COPY_FILE) --parents Cryption.cpp Decryption.cpp Encryption.cpp FileNameRetrieval.cpp FolderStructure.cpp GeneratePasswordFileName.cpp KeyManagementWindow.cpp KeyRetrieval.cpp Main.cpp MainWindow.cpp PasswordManagementWindow.cpp SaveFile.cpp $(DISTDIR)/
|
||||||
|
|
||||||
|
|
||||||
clean: compiler_clean
|
clean: compiler_clean
|
||||||
@@ -397,9 +406,9 @@ compiler_moc_predefs_clean:
|
|||||||
moc_predefs.h: /usr/lib/qt/mkspecs/features/data/dummy.cpp
|
moc_predefs.h: /usr/lib/qt/mkspecs/features/data/dummy.cpp
|
||||||
g++ -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -dM -E -o moc_predefs.h /usr/lib/qt/mkspecs/features/data/dummy.cpp
|
g++ -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -dM -E -o moc_predefs.h /usr/lib/qt/mkspecs/features/data/dummy.cpp
|
||||||
|
|
||||||
compiler_moc_header_make_all: moc_KeyManagementWindow.cpp moc_MainWindow.cpp moc_PasswordManagementWindow.cpp
|
compiler_moc_header_make_all: moc_KeyManagementWindow.cpp moc_MainWindow.cpp moc_PasswordManagementWindow.cpp moc_SaveFile.cpp
|
||||||
compiler_moc_header_clean:
|
compiler_moc_header_clean:
|
||||||
-$(DEL_FILE) moc_KeyManagementWindow.cpp moc_MainWindow.cpp moc_PasswordManagementWindow.cpp
|
-$(DEL_FILE) moc_KeyManagementWindow.cpp moc_MainWindow.cpp moc_PasswordManagementWindow.cpp moc_SaveFile.cpp
|
||||||
moc_KeyManagementWindow.cpp: CommonWindow.h \
|
moc_KeyManagementWindow.cpp: CommonWindow.h \
|
||||||
Encryption.h \
|
Encryption.h \
|
||||||
Cryption.h \
|
Cryption.h \
|
||||||
@@ -414,10 +423,11 @@ moc_KeyManagementWindow.cpp: CommonWindow.h \
|
|||||||
KeyManagementWindow.h \
|
KeyManagementWindow.h \
|
||||||
PasswordManagementWindow.h \
|
PasswordManagementWindow.h \
|
||||||
ViewingWindow.h \
|
ViewingWindow.h \
|
||||||
|
SaveFile.h \
|
||||||
KeyManagementWindow.h \
|
KeyManagementWindow.h \
|
||||||
moc_predefs.h \
|
moc_predefs.h \
|
||||||
/usr/bin/moc
|
/usr/bin/moc
|
||||||
/usr/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/qt/mkspecs/linux-g++ -I/home/monde/Downloads/PasswordEncryption -I/home/monde/Downloads/PasswordEncryption -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I/usr/include/c++/7.3.0 -I/usr/include/c++/7.3.0/x86_64-pc-linux-gnu -I/usr/include/c++/7.3.0/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include-fixed -I/usr/include KeyManagementWindow.h -o moc_KeyManagementWindow.cpp
|
/usr/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/qt/mkspecs/linux-g++ -I/home/monde/Programming/C++/PasswordEncryption -I/home/monde/Programming/C++/PasswordEncryption -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I/usr/include/c++/7.3.0 -I/usr/include/c++/7.3.0/x86_64-pc-linux-gnu -I/usr/include/c++/7.3.0/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include-fixed -I/usr/include KeyManagementWindow.h -o moc_KeyManagementWindow.cpp
|
||||||
|
|
||||||
moc_MainWindow.cpp: KeyManagementWindow.h \
|
moc_MainWindow.cpp: KeyManagementWindow.h \
|
||||||
CommonWindow.h \
|
CommonWindow.h \
|
||||||
@@ -433,17 +443,26 @@ moc_MainWindow.cpp: KeyManagementWindow.h \
|
|||||||
MainWindow.h \
|
MainWindow.h \
|
||||||
PasswordManagementWindow.h \
|
PasswordManagementWindow.h \
|
||||||
ViewingWindow.h \
|
ViewingWindow.h \
|
||||||
|
SaveFile.h \
|
||||||
MainWindow.h \
|
MainWindow.h \
|
||||||
moc_predefs.h \
|
moc_predefs.h \
|
||||||
/usr/bin/moc
|
/usr/bin/moc
|
||||||
/usr/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/qt/mkspecs/linux-g++ -I/home/monde/Downloads/PasswordEncryption -I/home/monde/Downloads/PasswordEncryption -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I/usr/include/c++/7.3.0 -I/usr/include/c++/7.3.0/x86_64-pc-linux-gnu -I/usr/include/c++/7.3.0/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include-fixed -I/usr/include MainWindow.h -o moc_MainWindow.cpp
|
/usr/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/qt/mkspecs/linux-g++ -I/home/monde/Programming/C++/PasswordEncryption -I/home/monde/Programming/C++/PasswordEncryption -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I/usr/include/c++/7.3.0 -I/usr/include/c++/7.3.0/x86_64-pc-linux-gnu -I/usr/include/c++/7.3.0/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include-fixed -I/usr/include MainWindow.h -o moc_MainWindow.cpp
|
||||||
|
|
||||||
moc_PasswordManagementWindow.cpp: CommonWindow.h \
|
moc_PasswordManagementWindow.cpp: CommonWindow.h \
|
||||||
ViewingWindow.h \
|
ViewingWindow.h \
|
||||||
|
SaveFile.h \
|
||||||
PasswordManagementWindow.h \
|
PasswordManagementWindow.h \
|
||||||
moc_predefs.h \
|
moc_predefs.h \
|
||||||
/usr/bin/moc
|
/usr/bin/moc
|
||||||
/usr/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/qt/mkspecs/linux-g++ -I/home/monde/Downloads/PasswordEncryption -I/home/monde/Downloads/PasswordEncryption -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I/usr/include/c++/7.3.0 -I/usr/include/c++/7.3.0/x86_64-pc-linux-gnu -I/usr/include/c++/7.3.0/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include-fixed -I/usr/include PasswordManagementWindow.h -o moc_PasswordManagementWindow.cpp
|
/usr/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/qt/mkspecs/linux-g++ -I/home/monde/Programming/C++/PasswordEncryption -I/home/monde/Programming/C++/PasswordEncryption -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I/usr/include/c++/7.3.0 -I/usr/include/c++/7.3.0/x86_64-pc-linux-gnu -I/usr/include/c++/7.3.0/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include-fixed -I/usr/include PasswordManagementWindow.h -o moc_PasswordManagementWindow.cpp
|
||||||
|
|
||||||
|
moc_SaveFile.cpp: CommonWindow.h \
|
||||||
|
ViewingWindow.h \
|
||||||
|
SaveFile.h \
|
||||||
|
moc_predefs.h \
|
||||||
|
/usr/bin/moc
|
||||||
|
/usr/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/qt/mkspecs/linux-g++ -I/home/monde/Programming/C++/PasswordEncryption -I/home/monde/Programming/C++/PasswordEncryption -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I/usr/include/c++/7.3.0 -I/usr/include/c++/7.3.0/x86_64-pc-linux-gnu -I/usr/include/c++/7.3.0/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include-fixed -I/usr/include SaveFile.h -o moc_SaveFile.cpp
|
||||||
|
|
||||||
compiler_moc_objc_header_make_all:
|
compiler_moc_objc_header_make_all:
|
||||||
compiler_moc_objc_header_clean:
|
compiler_moc_objc_header_clean:
|
||||||
@@ -515,6 +534,7 @@ KeyManagementWindow.o: KeyManagementWindow.cpp KeyManagementWindow.h \
|
|||||||
MainWindow.h \
|
MainWindow.h \
|
||||||
PasswordManagementWindow.h \
|
PasswordManagementWindow.h \
|
||||||
ViewingWindow.h \
|
ViewingWindow.h \
|
||||||
|
SaveFile.h \
|
||||||
GenerateKeys.h \
|
GenerateKeys.h \
|
||||||
Characters.h \
|
Characters.h \
|
||||||
KeyRetrieval.h
|
KeyRetrieval.h
|
||||||
@@ -539,7 +559,8 @@ Main.o: Main.cpp MainWindow.h \
|
|||||||
GeneratePasswordFileName.h \
|
GeneratePasswordFileName.h \
|
||||||
TimeInformation.h \
|
TimeInformation.h \
|
||||||
PasswordManagementWindow.h \
|
PasswordManagementWindow.h \
|
||||||
ViewingWindow.h
|
ViewingWindow.h \
|
||||||
|
SaveFile.h
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o Main.o Main.cpp
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o Main.o Main.cpp
|
||||||
|
|
||||||
MainWindow.o: MainWindow.cpp MainWindow.h \
|
MainWindow.o: MainWindow.cpp MainWindow.h \
|
||||||
@@ -556,6 +577,7 @@ MainWindow.o: MainWindow.cpp MainWindow.h \
|
|||||||
TimeInformation.h \
|
TimeInformation.h \
|
||||||
PasswordManagementWindow.h \
|
PasswordManagementWindow.h \
|
||||||
ViewingWindow.h \
|
ViewingWindow.h \
|
||||||
|
SaveFile.h \
|
||||||
Decryption.h \
|
Decryption.h \
|
||||||
KeyRetrieval.h
|
KeyRetrieval.h
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o MainWindow.o MainWindow.cpp
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o MainWindow.o MainWindow.cpp
|
||||||
@@ -573,9 +595,15 @@ PasswordManagementWindow.o: PasswordManagementWindow.cpp Encryption.h \
|
|||||||
Demo.h \
|
Demo.h \
|
||||||
PasswordManagementWindow.h \
|
PasswordManagementWindow.h \
|
||||||
CommonWindow.h \
|
CommonWindow.h \
|
||||||
ViewingWindow.h
|
ViewingWindow.h \
|
||||||
|
SaveFile.h
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o PasswordManagementWindow.o PasswordManagementWindow.cpp
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o PasswordManagementWindow.o PasswordManagementWindow.cpp
|
||||||
|
|
||||||
|
SaveFile.o: SaveFile.cpp SaveFile.h \
|
||||||
|
CommonWindow.h \
|
||||||
|
ViewingWindow.h
|
||||||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o SaveFile.o SaveFile.cpp
|
||||||
|
|
||||||
moc_KeyManagementWindow.o: moc_KeyManagementWindow.cpp
|
moc_KeyManagementWindow.o: moc_KeyManagementWindow.cpp
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_KeyManagementWindow.o moc_KeyManagementWindow.cpp
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_KeyManagementWindow.o moc_KeyManagementWindow.cpp
|
||||||
|
|
||||||
@@ -585,6 +613,9 @@ moc_MainWindow.o: moc_MainWindow.cpp
|
|||||||
moc_PasswordManagementWindow.o: moc_PasswordManagementWindow.cpp
|
moc_PasswordManagementWindow.o: moc_PasswordManagementWindow.cpp
|
||||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_PasswordManagementWindow.o moc_PasswordManagementWindow.cpp
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_PasswordManagementWindow.o moc_PasswordManagementWindow.cpp
|
||||||
|
|
||||||
|
moc_SaveFile.o: moc_SaveFile.cpp
|
||||||
|
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_SaveFile.o moc_SaveFile.cpp
|
||||||
|
|
||||||
####### Install
|
####### Install
|
||||||
|
|
||||||
install: FORCE
|
install: FORCE
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ HEADERS += Characters.h \
|
|||||||
MainWindow.h \
|
MainWindow.h \
|
||||||
Password.h \
|
Password.h \
|
||||||
PasswordManagementWindow.h \
|
PasswordManagementWindow.h \
|
||||||
|
SaveFile.h \
|
||||||
TimeInformation.h \
|
TimeInformation.h \
|
||||||
ViewingWindow.h
|
ViewingWindow.h
|
||||||
SOURCES += Cryption.cpp \
|
SOURCES += Cryption.cpp \
|
||||||
@@ -50,4 +51,5 @@ SOURCES += Cryption.cpp \
|
|||||||
KeyRetrieval.cpp \
|
KeyRetrieval.cpp \
|
||||||
Main.cpp \
|
Main.cpp \
|
||||||
MainWindow.cpp \
|
MainWindow.cpp \
|
||||||
PasswordManagementWindow.cpp
|
PasswordManagementWindow.cpp \
|
||||||
|
SaveFile.cpp
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
#include"CommonWindow.h"
|
#include"CommonWindow.h"
|
||||||
#include"ViewingWindow.h"
|
#include"ViewingWindow.h"
|
||||||
|
|
||||||
|
#include"SaveFile.h"
|
||||||
|
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
|
||||||
class PasswordManagementWindow : public QDialog, public CommonWindow, public ViewingWindow
|
class PasswordManagementWindow : public QDialog, public CommonWindow, public ViewingWindow
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
#include"SaveFile.h"
|
||||||
|
|
||||||
|
SaveFile::SaveFile(QWidget* parent) : QDialog(parent)
|
||||||
|
{
|
||||||
|
setupWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
void SaveFile::setupWindow()
|
||||||
|
{
|
||||||
|
|
||||||
|
windowWidth=250;
|
||||||
|
windowHeight=250;
|
||||||
|
|
||||||
|
filename = unique_ptr<QLineEdit>{new QLineEdit};
|
||||||
|
saveIt = unique_ptr<QPushButton>{new QPushButton};
|
||||||
|
|
||||||
|
subLayoutOne = unique_ptr<QVBoxLayout>{new QVBoxLayout};
|
||||||
|
subLayoutTwo = unique_ptr<QVBoxLayout>{new QVBoxLayout};
|
||||||
|
|
||||||
|
subLayoutOne.get()->addWidget(filename.get());
|
||||||
|
subLayoutOne.get()->addWidget(saveIt.get());
|
||||||
|
subLayoutTwo.get()->addLayout(subLayoutOne.get());
|
||||||
|
|
||||||
|
setLayout(subLayoutTwo.get());
|
||||||
|
|
||||||
|
setFixedWidth(windowWidth);
|
||||||
|
setFixedHeight(windowHeight);
|
||||||
|
|
||||||
|
connections();
|
||||||
|
}
|
||||||
|
void SaveFile::connections()
|
||||||
|
{
|
||||||
|
QObject::connect(saveIt.get(), SIGNAL(clicked()), this, SLOT(saveFileAs()));
|
||||||
|
}
|
||||||
|
void SaveFile::saveFileAs()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
#ifndef SAVEFILE_H_
|
||||||
|
#define SAVEFILE_H_
|
||||||
|
|
||||||
|
#include"CommonWindow.h"
|
||||||
|
#include"ViewingWindow.h"
|
||||||
|
|
||||||
|
class SaveFile : public QDialog, public CommonWindow, public ViewingWindow
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
SaveFile(QWidget* parent = 0);
|
||||||
|
private:
|
||||||
|
void setupWindow();
|
||||||
|
void connections();
|
||||||
|
|
||||||
|
unique_ptr<QLineEdit> filename;
|
||||||
|
unique_ptr<QPushButton> saveIt;
|
||||||
|
private slots:
|
||||||
|
void saveFileAs();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user