aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowUI.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-15 18:29:46 +0000
committerSaturneric <[email protected]>2021-12-16 09:36:19 +0000
commit51259403d70cb69c2fbd2b38794867f0b60bcf35 (patch)
treeecbaffef748db326f00ac58f757e5e824b61d52e /src/ui/main_window/MainWindowUI.cpp
parentSMTP Support Added. (diff)
downloadGpgFrontend-51259403d70cb69c2fbd2b38794867f0b60bcf35.tar.gz
GpgFrontend-51259403d70cb69c2fbd2b38794867f0b60bcf35.zip
Added & Improved & Fixed.
Fixed Bugs in core. Improved Send Mail & Keyserver Settings. Added Pubkey Sync for key list. Added Refresh for key list. Improved Send Mail and others. Known Bugs Fixed.
Diffstat (limited to 'src/ui/main_window/MainWindowUI.cpp')
-rw-r--r--src/ui/main_window/MainWindowUI.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp
index a629057e..c33407f3 100644
--- a/src/ui/main_window/MainWindowUI.cpp
+++ b/src/ui/main_window/MainWindowUI.cpp
@@ -24,6 +24,7 @@
#include "MainWindow.h"
#include "ui/UserInterfaceUtils.h"
+#include "ui/smtp/SendMailDialog.h"
namespace GpgFrontend::UI {
@@ -276,19 +277,6 @@ void MainWindow::createActions() {
connect(showKeyDetailsAct, SIGNAL(triggered()), this,
SLOT(slotShowKeyDetails()));
- refreshKeysFromKeyserverAct =
- new QAction(_("Refresh Key From Key Server"), this);
- refreshKeysFromKeyserverAct->setToolTip(
- _("Refresh key from default key server"));
- connect(refreshKeysFromKeyserverAct, SIGNAL(triggered()), this,
- SLOT(refreshKeysFromKeyserver()));
-
- uploadKeyToServerAct = new QAction(_("Upload Public Key(s) To Server"), this);
- uploadKeyToServerAct->setToolTip(
- _("Upload The Selected Public Keys To Server"));
- connect(uploadKeyToServerAct, SIGNAL(triggered()), this,
- SLOT(uploadKeyToServer()));
-
/* Key-Shortcuts for Tab-Switchung-Action
*/
switchTabUpAct = new QAction(this);
@@ -307,6 +295,13 @@ void MainWindow::createActions() {
addPgpHeaderAct = new QAction(_("Add PGP Header"), this);
connect(addPgpHeaderAct, SIGNAL(triggered()), this, SLOT(slotAddPgpHeader()));
+
+ sendMailAct = new QAction(_("Send An Email"), this);
+ sendMailAct->setIcon(QIcon(":email.png"));
+ connect(sendMailAct, &QAction::triggered, this, [=]() {
+ auto* dialog = new SendMailDialog({}, this);
+ dialog->show();
+ });
}
void MainWindow::createMenus() {
@@ -364,6 +359,9 @@ void MainWindow::createMenus() {
steganoMenu->addAction(cutPgpHeaderAct);
steganoMenu->addAction(addPgpHeaderAct);
+ emailMenu = menuBar()->addMenu(_("Email"));
+ emailMenu->addAction(sendMailAct);
+
#ifdef ADVANCED_SUPPORT
// Hide menu, when steganography menu is disabled in settings
if (!settings.value("advanced/steganography").toBool()) {
@@ -482,6 +480,8 @@ void MainWindow::createDockWindows() {
!(key.revoked() || key.disabled() || key.expired());
});
+ mKeyList->slotRefresh();
+
keyListDock->setWidget(mKeyList);
viewMenu->addAction(keyListDock->toggleViewAction());