aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowUI.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2023-04-04 16:19:36 +0000
committerSaturneric <[email protected]>2023-04-04 16:19:36 +0000
commit2b2ae2bc7b704e5631458f0411fb3ee9203efdcb (patch)
tree018a9cb84151b413c1f9b9c5e9a7fee3b9817777 /src/ui/main_window/MainWindowUI.cpp
parentfeat: add custom gpgconf path support in context (diff)
downloadGpgFrontend-2b2ae2bc7b704e5631458f0411fb3ee9203efdcb.tar.gz
GpgFrontend-2b2ae2bc7b704e5631458f0411fb3ee9203efdcb.zip
feat: add gnupg controller
Diffstat (limited to '')
-rw-r--r--src/ui/main_window/MainWindowUI.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp
index 1034df52..36aa2f12 100644
--- a/src/ui/main_window/MainWindowUI.cpp
+++ b/src/ui/main_window/MainWindowUI.cpp
@@ -29,6 +29,7 @@
#include "MainWindow.h"
#include "core/function/GlobalSettingStation.h"
#include "core/function/gpg/GpgAdvancedOperator.h"
+#include "dialog/gnupg/GnuPGControllerDialog.h"
#include "ui/UserInterfaceUtils.h"
namespace GpgFrontend::UI {
@@ -330,6 +331,12 @@ void MainWindow::create_actions() {
}
});
+ gnupg_controller_open_act_ = new QAction(_("GnuPG Controller"), this);
+ gnupg_controller_open_act_->setIcon(QIcon(":configure.png"));
+ gnupg_controller_open_act_->setToolTip(_("Open GnuPG Controller Dialog"));
+ connect(gnupg_controller_open_act_, &QAction::triggered, this,
+ [this]() { (new GnuPGControllerDialog(this))->exec(); });
+
/*
* About Menu
*/
@@ -497,6 +504,8 @@ void MainWindow::create_menus() {
gpg_menu_->addSeparator();
gpg_menu_->addAction(reload_components_act_);
gpg_menu_->addAction(restart_components_act_);
+ gpg_menu_->addSeparator();
+ gpg_menu_->addAction(gnupg_controller_open_act_);
steganography_menu_ = menuBar()->addMenu(_("Steganography"));
steganography_menu_->addAction(cut_pgp_header_act_);