diff options
author | Saturneric <[email protected]> | 2021-06-27 20:00:05 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-06-27 20:00:05 +0000 |
commit | 5143c2d56255dec8ca618bc9acaf054781dd8746 (patch) | |
tree | c2861c182fc59bbf5d505bc87929cdd118a5297e /src/ui/widgets/FilePage.cpp | |
parent | Develop File Opera Functions (diff) | |
download | GpgFrontend-5143c2d56255dec8ca618bc9acaf054781dd8746.tar.gz GpgFrontend-5143c2d56255dec8ca618bc9acaf054781dd8746.zip |
Add and improve file operation functions.
Diffstat (limited to 'src/ui/widgets/FilePage.cpp')
-rw-r--r-- | src/ui/widgets/FilePage.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/ui/widgets/FilePage.cpp b/src/ui/widgets/FilePage.cpp index e4226bcf..16724f40 100644 --- a/src/ui/widgets/FilePage.cpp +++ b/src/ui/widgets/FilePage.cpp @@ -127,13 +127,13 @@ void FilePage::createPopupMenu() { connect(openItemAct, SIGNAL(triggered()), this, SLOT(slotOpenItem())); auto deleteItemAct = new QAction(tr("Delete"), this); connect(deleteItemAct, SIGNAL(triggered()), this, SLOT(slotDeleteItem())); - encryptItemAct = new QAction(tr("Encrypt File"), this); + encryptItemAct = new QAction(tr("Encrypt and Sign"), this); connect(encryptItemAct, SIGNAL(triggered()), this, SLOT(slotEncryptItem())); - decryptItemAct = new QAction(tr("Decrypt File"), this); + decryptItemAct = new QAction(tr("Decrypt and Verify"), this); connect(decryptItemAct, SIGNAL(triggered()), this, SLOT(slotDecryptItem())); - signItemAct = new QAction(tr("Sign File"), this); + signItemAct = new QAction(tr("Only Sign"), this); connect(signItemAct, SIGNAL(triggered()), this, SLOT(slotSignItem())); - verifyItemAct = new QAction(tr("Verify File"), this); + verifyItemAct = new QAction(tr("Only Verify"), this); connect(verifyItemAct, SIGNAL(triggered()), this, SLOT(slotVerifyItem())); popUpMenu->addAction(openItemAct); @@ -204,17 +204,23 @@ void FilePage::slotDeleteItem() { void FilePage::slotEncryptItem() { auto mainWindow = qobject_cast<MainWindow *>(firstParent); if(mainWindow != nullptr) - mainWindow->slotFileEncrypt(); + mainWindow->slotFileEncryptSign(); } void FilePage::slotDecryptItem() { - + auto mainWindow = qobject_cast<MainWindow *>(firstParent); + if(mainWindow != nullptr) + mainWindow->slotFileDecryptVerify(); } void FilePage::slotSignItem() { - + auto mainWindow = qobject_cast<MainWindow *>(firstParent); + if(mainWindow != nullptr) + mainWindow->slotFileSign(); } void FilePage::slotVerifyItem() { - + auto mainWindow = qobject_cast<MainWindow *>(firstParent); + if(mainWindow != nullptr) + mainWindow->slotFileVerify(); } |