GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
32 #include "core/GpgConstants.h"
33 #include "core/function/result_analyse/GpgDecryptResultAnalyse.h"
34 #include "core/function/result_analyse/GpgEncryptResultAnalyse.h"
35 #include "core/function/result_analyse/GpgSignResultAnalyse.h"
36 #include "ui/GpgFrontendUI.h"
37 #include "ui/KeyMgmt.h"
38 #include "ui/dialog/WaitingDialog.h"
39 #include "ui/dialog/Wizard.h"
40 #include "ui/help/AboutDialog.h"
41 #include "ui/import_export/KeyUploadDialog.h"
42 #include "ui/settings/SettingsDialog.h"
43 #include "ui/widgets/FindWidget.h"
44 #include "ui/widgets/InfoBoardWidget.h"
45 #include "ui/widgets/TextEdit.h"
57 using OperationType =
unsigned int;
59 static constexpr OperationType None = 0;
60 static constexpr OperationType Encrypt = 1 << 0;
61 static constexpr OperationType Sign = 1 << 1;
62 static constexpr OperationType Decrypt = 1 << 2;
63 static constexpr OperationType Verify = 1 << 3;
64 static constexpr OperationType EncryptAndSign = 1 << 4;
65 static constexpr OperationType DecryptAndVerify = 1 << 5;
96 void SlotSetStatusBarText(const QString& text);
332 QMenu* email_menu_{};
346 QDockWidget* info_board_dock_{};
391 QAction* import_key_from_file_act_{};
392 QAction* import_key_from_clipboard_act_{};
393 QAction* import_key_from_key_server_act_{};
395 QLabel* status_bar_icon_{};
397 KeyList* m_key_list_{};
398 InfoBoardWidget* info_board_{};
400 bool attachment_dock_created_{};
401 bool restart_needed_{};
402 bool prohibit_update_checking_ =
false;
407 #endif // __GPGWIN_H__
void slot_verify()
Definition: MainWindowSlotFunction.cpp:327
QAction * quote_act_
Action to quote text.
Definition: MainWindow.h:374
void upload_key_to_server()
Definition: MainWindowSlotFunction.cpp:654
Definition: FileReadTask.cpp:31
void save_settings()
Definition: MainWindow.cpp:254
void SlotFileEncrypt()
Definition: MainWindowFileSlotFunction.cpp:154
void slot_open_file_tab()
Definition: MainWindowSlotUI.cpp:58
void SignalUpgradeVersion(SoftwareVersion version)
QAction * redo_act_
Action to redo last action.
Definition: MainWindow.h:380
bool MaybeSaveAnyTab()
Definition: TextEdit.cpp:322
QAction * quit_act_
Action to quit application.
Definition: MainWindow.h:357
QAction * cut_pgp_header_act_
Action for cutting the PGP header.
Definition: MainWindow.h:389
void create_actions()
Definition: MainWindowUI.cpp:34
void SyncSettings() noexcept
sync the settings to the file
Definition: GlobalSettingStation.cpp:33
void SlotFileDecryptVerify()
Definition: MainWindowFileSlotFunction.cpp:679
void slot_cut_pgp_header()
Definition: MainWindowSlotUI.cpp:161
QAction * browser_act_
Action to open file browser.
Definition: MainWindow.h:352
static GlobalSettingStation & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
QToolBar * key_tool_bar_
Toolbar holding key operations.
Definition: MainWindow.h:341
QMenu * view_menu_
Submenu for view operations.
Definition: MainWindow.h:329
Definition: SoftwareVersion.h:39
libconfig::Setting & GetUISettings() noexcept
Definition: GlobalSettingStation.h:63
void SetChecked(KeyIdArgsListPtr key_ids)
Set the Checked object.
Definition: KeyList.cpp:239
QMenu * file_menu_
Submenu for file-operations.
Definition: MainWindow.h:324
QAction * sign_act_
Action to sign text.
Definition: MainWindow.h:362
void slot_append_selected_keys()
Definition: MainWindowSlotFunction.cpp:607
QAction * verify_act_
Action to verify text.
Definition: MainWindow.h:363
QAction * about_act_
Action to open about dialog.
Definition: MainWindow.h:383
QToolBar * file_tool_bar_
Toolbar holding file actions.
Definition: MainWindow.h:337
void refresh_keys_from_key_server()
Definition: MainWindowSlotFunction.cpp:645
QAction * zoom_in_act_
Action to zoom in.
Definition: MainWindow.h:381
void create_menus()
Definition: MainWindowUI.cpp:318
QAction * cut_act_
Action to cut text.
Definition: MainWindow.h:375
TextEdit class.
Definition: TextEdit.h:41
void slot_start_wizard()
Definition: MainWindowSlotUI.cpp:40
void create_dock_windows()
Definition: MainWindowUI.cpp:448
QAction * copy_mail_address_to_clipboard_act_
Definition: MainWindow.h:370
KeyIdArgsListPtr GetChecked()
Get the Checked object.
Definition: KeyList.cpp:181
QAction * switch_tab_up_act_
Action to switch tab up.
Definition: MainWindow.h:349
void SlotSetRestartNeeded(bool needed)
Definition: MainWindowSlotUI.cpp:185
void slot_clean_double_line_breaks()
Definition: MainWindowSlotUI.cpp:137
void SlotOpenFile(QString &path)
Definition: MainWindowSlotFunction.cpp:661
QAction * open_act_
Action to open file.
Definition: MainWindow.h:351
QMenu * import_key_menu_
Submenu for import operations.
Definition: MainWindow.h:330
QAction * encrypt_sign_act_
Action to encrypt and sign text.
Definition: MainWindow.h:359
QDockWidget * attachment_dock_
Attachment Dock.
Definition: MainWindow.h:345
QAction * paste_act_
Action to paste text.
Definition: MainWindow.h:376
void slot_encrypt()
Definition: MainWindowSlotFunction.cpp:51
void AddMenuAction(QAction *act)
Definition: KeyList.cpp:300
QToolBar * crypt_tool_bar_
Toolbar holding crypt actions.
Definition: MainWindow.h:336
QMenu * steganography_menu_
Submenu for steganography operations.
Definition: MainWindow.h:335
nlohmann::json & Check(const std::string &key, const nlohmann::json &default_value)
Definition: SettingsObject.cpp:31
QAction * zoom_out_act_
Action to zoom out.
Definition: MainWindow.h:382
QDockWidget * key_list_dock_
Encrypt Dock.
Definition: MainWindow.h:344
void slot_show_key_details()
Definition: MainWindowSlotFunction.cpp:633
QAction * print_act_
Action to print.
Definition: MainWindow.h:355
void SetCryptoMenuStatus(CryptoMenu::OperationType type)
Definition: MainWindowSlotUI.cpp:191
void slot_decrypt_verify()
Definition: MainWindowSlotFunction.cpp:514
Definition: MainWindow.h:56
void slot_copy_mail_address_to_clipboard()
Definition: MainWindowSlotFunction.cpp:620
Definition: MainWindow.h:52
QAction * switch_tab_down_act_
Action to switch tab down.
Definition: MainWindow.h:350
The SettingsObject class This class is used to store settings for the application securely.
Definition: SettingsObject.h:43
void SlotFileSign()
Definition: MainWindowFileSlotFunction.cpp:364
void close_attachment_dock()
Definition: MainWindow.cpp:289
QAction * append_selected_keys_act_
Action to append selected keys to edit.
Definition: MainWindow.h:369
QAction * check_update_act_
Action to open about dialog.
Definition: MainWindow.h:384
void create_attachment_dock()
void create_tool_bars()
Definition: MainWindowUI.cpp:383
QAction * undo_act_
Action to undo last action.
Definition: MainWindow.h:379
void create_status_bar()
Definition: MainWindowUI.cpp:432
void slot_open_settings_dialog()
Definition: MainWindowSlotUI.cpp:102
QAction * start_wizard_act_
Action to open the wizard.
Definition: MainWindow.h:388
QAction * add_pgp_header_act_
Action for adding the PGP header.
Definition: MainWindow.h:390
void slot_sign()
Definition: MainWindowSlotFunction.cpp:173
QAction * save_as_act_
Action to save file as.
Definition: MainWindow.h:354
QToolButton * import_button_
Tool button for import dropdown menu in toolbar.
Definition: MainWindow.h:343
void SlotFileVerify()
Definition: MainWindowFileSlotFunction.cpp:459
void slot_disable_tab_actions(int number)
Definition: MainWindowSlotUI.cpp:60
bool get_restart_needed() const
return true, if restart is needed
Definition: MainWindowSlotUI.cpp:189
QAction * find_act_
Action to find text.
Definition: MainWindow.h:378
Definition: KeyList.h:152
void slot_open_key_management()
Definition: MainWindowSlotUI.cpp:52
void slot_version_upgrade(const SoftwareVersion &version)
Definition: MainWindowSlotFunction.cpp:663
QAction * decrypt_verify_act_
Action to encrypt and sign text.
Definition: MainWindow.h:360
QAction * clean_double_line_breaks_act_
Definition: MainWindow.h:365
QAction * copy_act_
Action to copy text.
Definition: MainWindow.h:373
void restore_settings()
Definition: MainWindow.cpp:134
void Init() noexcept
Definition: MainWindow.cpp:44
void slot_find()
Definition: MainWindowSlotFunction.cpp:592
QMenu * key_menu_
Submenu for key-operations.
Definition: MainWindow.h:328
QAction * import_key_from_edit_act_
Action to import key from edit.
Definition: MainWindow.h:364
Definition: VersionCheckTask.h:45
static SignalStation * GetInstance()
Get the Instance object.
Definition: SignalStation.cpp:37
QAction * select_all_act_
Action to select whole text.
Definition: MainWindow.h:377
QMenu * crypt_menu_
Submenu for crypt-operations.
Definition: MainWindow.h:326
QMenu * edit_menu_
Submenu for text-operations.
Definition: MainWindow.h:325
QAction * decrypt_act_
Action to decrypt text.
Definition: MainWindow.h:361
QToolBar * special_edit_tool_bar_
Toolbar holding special edit actions.
Definition: MainWindow.h:340
void SlotFileEncryptSign()
Definition: MainWindowFileSlotFunction.cpp:551
QAction * encrypt_act_
Action to encrypt text.
Definition: MainWindow.h:358
void closeEvent(QCloseEvent *event) override
Definition: MainWindow.cpp:298
void slot_import_key_from_edit()
Definition: MainWindowSlotUI.cpp:46
QAction * translate_act_
Action to open about dialog.
Definition: MainWindow.h:385
void SlotFileDecrypt()
Definition: MainWindowFileSlotFunction.cpp:291
TextEdit * edit_
Tabwidget holding the edit-windows.
Definition: MainWindow.h:323
QAction * open_settings_act_
Action to open settings dialog.
Definition: MainWindow.h:386
void slot_add_pgp_header()
Definition: MainWindowSlotUI.cpp:147
QAction * new_tab_act_
Action to create new tab.
Definition: MainWindow.h:348
QMenu * help_menu_
Submenu for help-operations.
Definition: MainWindow.h:327
QAction * save_act_
Action to save file.
Definition: MainWindow.h:353
QToolBar * edit_tool_bar_
Toolbar holding edit actions.
Definition: MainWindow.h:338
QAction * show_key_details_act_
Action to open key-details dialog.
Definition: MainWindow.h:387
QAction * close_tab_act_
Action to print.
Definition: MainWindow.h:356
void slot_decrypt()
Definition: MainWindowSlotFunction.cpp:259
void SignalRefreshStatusBar(const QString &message, int timeout)
PlainTextEditorPage * CurTextPage() const
Definition: TextEdit.cpp:377
QAction * open_key_management_act_
Action to open key management.
Definition: MainWindow.h:372
void slot_encrypt_sign()
Definition: MainWindowSlotFunction.cpp:394