33 #include "core/GpgConstants.h"
34 #include "core/function/result_analyse/GpgDecryptResultAnalyse.h"
35 #include "core/function/result_analyse/GpgEncryptResultAnalyse.h"
36 #include "core/function/result_analyse/GpgSignResultAnalyse.h"
37 #include "ui/GpgFrontendUI.h"
38 #include "ui/dialog/WaitingDialog.h"
39 #include "ui/dialog/Wizard.h"
40 #include "ui/dialog/help/AboutDialog.h"
41 #include "ui/dialog/import_export/KeyUploadDialog.h"
42 #include "ui/dialog/settings/SettingsDialog.h"
43 #include "ui/main_window/GeneralMainWindow.h"
44 #include "ui/widgets/FindWidget.h"
45 #include "ui/widgets/InfoBoardWidget.h"
46 #include "ui/widgets/TextEdit.h"
61 using OperationType =
unsigned int;
63 static constexpr OperationType None = 0;
64 static constexpr OperationType Encrypt = 1 << 0;
65 static constexpr OperationType Sign = 1 << 1;
66 static constexpr OperationType Decrypt = 1 << 2;
67 static constexpr OperationType Verify = 1 << 3;
68 static constexpr OperationType EncryptAndSign = 1 << 4;
69 static constexpr OperationType DecryptAndVerify = 1 << 5;
98 void SignalRestartApplication(
int);
103 void SignalUIRefresh();
108 void SignalKeyDatabaseRefresh();
115 void SlotSetStatusBarText(const QString& text);
246 void slot_append_keys_create_datetime();
252 void slot_append_keys_expire_datetime();
258 void slot_append_keys_fingerprint();
323 void slot_add_key_2_favourite();
328 void slot_remove_key_from_favourite();
333 void slot_set_owner_trust_level_of_key();
380 void recover_editor_unsaved_pages_from_cache();
402 QMenu* email_menu_{};
416 QDockWidget* info_board_dock_{};
438 QAction* gnupg_controller_open_act_{};
439 QAction* clean_gpg_password_cache_act_{};
440 QAction* reload_components_act_{};
441 QAction* restart_components_act_{};
445 QAction* append_key_fingerprint_to_editor_act_{};
446 QAction* append_key_create_date_to_editor_act_{};
447 QAction* append_key_expire_date_to_editor_act_{};
451 QAction* copy_key_id_to_clipboard_act_{};
452 QAction* copy_key_default_uid_to_clipboard_act_{};
454 QAction* add_key_2_favourtie_act_{};
455 QAction* remove_key_from_favourtie_act_{};
456 QAction* set_owner_trust_of_key_act_{};
478 QAction* import_key_from_file_act_{};
479 QAction* import_key_from_clipboard_act_{};
480 QAction* import_key_from_key_server_act_{};
482 QLabel* status_bar_icon_{};
484 KeyList* m_key_list_{};
485 InfoBoardWidget* info_board_{};
487 bool attachment_dock_created_{};
488 int restart_needed_{0};
489 bool prohibit_update_checking_ =
false;
Definition: GeneralMainWindow.h:39
Definition: MainWindow.h:53
QAction * import_key_from_edit_act_
Action to import key from edit.
Definition: MainWindow.h:434
void slot_show_key_details()
Definition: MainWindowSlotFunction.cpp:739
void create_dock_windows()
Definition: MainWindowUI.cpp:604
void SlotOpenFile(QString &path)
Definition: MainWindowSlotFunction.cpp:837
void Init() noexcept
Definition: MainWindow.cpp:51
QAction * close_tab_act_
Action to print.
Definition: MainWindow.h:426
void SlotFileDecrypt()
Definition: MainWindowFileSlotFunction.cpp:287
void create_actions()
Definition: MainWindowUI.cpp:37
QAction * clean_double_line_breaks_act_
Definition: MainWindow.h:435
QAction * sign_act_
Action to sign text.
Definition: MainWindow.h:432
QMenu * view_menu_
Submenu for view operations.
Definition: MainWindow.h:399
QAction * verify_act_
Action to verify text.
Definition: MainWindow.h:433
QMenu * key_menu_
Submenu for key-operations.
Definition: MainWindow.h:398
void slot_open_key_management()
Definition: MainWindowSlotUI.cpp:53
void closeEvent(QCloseEvent *event) override
Definition: MainWindow.cpp:322
void create_status_bar()
Definition: MainWindowUI.cpp:588
void slot_decrypt_verify()
Definition: MainWindowSlotFunction.cpp:517
QToolBar * file_tool_bar_
Toolbar holding file actions.
Definition: MainWindow.h:407
QMenu * crypt_menu_
Submenu for crypt-operations.
Definition: MainWindow.h:395
void restore_settings()
Definition: MainWindow.cpp:187
QAction * save_as_act_
Action to save file as.
Definition: MainWindow.h:424
QAction * encrypt_sign_act_
Action to encrypt and sign text.
Definition: MainWindow.h:429
void slot_disable_tab_actions(int number)
Definition: MainWindowSlotUI.cpp:61
void SlotFileEncryptSign()
Definition: MainWindowFileSlotFunction.cpp:538
void SlotSetRestartNeeded(int)
Definition: MainWindowSlotUI.cpp:184
void slot_open_file_tab()
Definition: MainWindowSlotUI.cpp:59
QMenu * gpg_menu_
Submenu for help-operations.
Definition: MainWindow.h:396
QAction * cut_act_
Action to cut text.
Definition: MainWindow.h:461
void slot_encrypt_sign()
Definition: MainWindowSlotFunction.cpp:395
QAction * cut_pgp_header_act_
Action for cutting the PGP header.
Definition: MainWindow.h:476
QToolBar * key_tool_bar_
Toolbar holding key operations.
Definition: MainWindow.h:411
void slot_copy_default_uid_to_clipboard()
Definition: MainWindowSlotFunction.cpp:713
QAction * browser_act_
Action to open file browser.
Definition: MainWindow.h:422
QAction * zoom_in_act_
Action to zoom in.
Definition: MainWindow.h:467
void slot_sign()
Definition: MainWindowSlotFunction.cpp:174
QAction * new_tab_act_
Action to create new tab.
Definition: MainWindow.h:418
void close_attachment_dock()
Definition: MainWindow.cpp:313
void slot_version_upgrade(const SoftwareVersion &version)
Definition: MainWindowSlotFunction.cpp:839
QAction * open_act_
Action to open file.
Definition: MainWindow.h:421
void slot_import_key_from_edit()
Definition: MainWindowSlotUI.cpp:47
int get_restart_needed() const
return true, if restart is needed
Definition: MainWindowSlotUI.cpp:189
QAction * find_act_
Action to find text.
Definition: MainWindow.h:464
QAction * paste_act_
Action to paste text.
Definition: MainWindow.h:462
QAction * check_update_act_
Action to open about dialog.
Definition: MainWindow.h:470
QMenu * edit_menu_
Submenu for text-operations.
Definition: MainWindow.h:394
QAction * zoom_out_act_
Action to zoom out.
Definition: MainWindow.h:468
QAction * decrypt_verify_act_
Action to encrypt and sign text.
Definition: MainWindow.h:430
QAction * copy_act_
Action to copy text.
Definition: MainWindow.h:459
void slot_append_selected_keys()
Definition: MainWindowSlotFunction.cpp:610
QAction * gnupg_act_
Action to open about dialog.
Definition: MainWindow.h:472
void save_settings()
Definition: MainWindow.cpp:292
TextEdit * edit_
Tabwidget holding the edit-windows.
Definition: MainWindow.h:392
void slot_cut_pgp_header()
Definition: MainWindowSlotUI.cpp:160
void slot_add_pgp_header()
Definition: MainWindowSlotUI.cpp:146
QToolButton * import_button_
Tool button for import dropdown menu in toolbar.
Definition: MainWindow.h:413
void SetCryptoMenuStatus(CryptoMenu::OperationType type)
Definition: MainWindowSlotUI.cpp:191
void slot_open_settings_dialog()
Definition: MainWindowSlotUI.cpp:103
QAction * switch_tab_down_act_
Action to switch tab down.
Definition: MainWindow.h:420
QMenu * help_menu_
Submenu for help-operations.
Definition: MainWindow.h:397
void SlotFileSign()
Definition: MainWindowFileSlotFunction.cpp:360
QAction * switch_tab_up_act_
Action to switch tab up.
Definition: MainWindow.h:419
QMenu * import_key_menu_
Submenu for import operations.
Definition: MainWindow.h:400
QAction * print_act_
Action to print.
Definition: MainWindow.h:425
void create_attachment_dock()
QAction * add_pgp_header_act_
Action for adding the PGP header.
Definition: MainWindow.h:477
void SlotFileVerify()
Definition: MainWindowFileSlotFunction.cpp:450
QAction * about_act_
Action to open about dialog.
Definition: MainWindow.h:469
void slot_copy_key_id_to_clipboard()
Definition: MainWindowSlotFunction.cpp:726
void SlotFileEncrypt()
Definition: MainWindowFileSlotFunction.cpp:155
void create_menus()
Definition: MainWindowUI.cpp:465
QAction * undo_act_
Action to undo last action.
Definition: MainWindow.h:465
QAction * decrypt_act_
Action to decrypt text.
Definition: MainWindow.h:431
void slot_verify()
Definition: MainWindowSlotFunction.cpp:328
void create_tool_bars()
Definition: MainWindowUI.cpp:539
void slot_start_wizard()
Definition: MainWindowSlotUI.cpp:41
QToolBar * crypt_tool_bar_
Toolbar holding crypt actions.
Definition: MainWindow.h:406
QAction * start_wizard_act_
Action to open the wizard.
Definition: MainWindow.h:475
QAction * save_act_
Action to save file.
Definition: MainWindow.h:423
void SlotFileDecryptVerify()
Definition: MainWindowFileSlotFunction.cpp:664
QToolBar * edit_tool_bar_
Toolbar holding edit actions.
Definition: MainWindow.h:408
QAction * append_selected_keys_act_
Action to append selected keys to edit.
Definition: MainWindow.h:444
QAction * quit_act_
Action to quit application.
Definition: MainWindow.h:427
QAction * redo_act_
Action to redo last action.
Definition: MainWindow.h:466
QAction * select_all_act_
Action to select whole text.
Definition: MainWindow.h:463
QAction * show_key_details_act_
Action to open key-details dialog.
Definition: MainWindow.h:474
void upload_key_to_server()
Definition: MainWindowSlotFunction.cpp:830
QAction * encrypt_act_
Action to encrypt text.
Definition: MainWindow.h:428
QAction * open_key_management_act_
Action to open key management.
Definition: MainWindow.h:458
QDockWidget * key_list_dock_
Encrypt Dock.
Definition: MainWindow.h:414
QAction * translate_act_
Action to open about dialog.
Definition: MainWindow.h:471
void refresh_keys_from_key_server()
Definition: MainWindowSlotFunction.cpp:771
void slot_encrypt()
Definition: MainWindowSlotFunction.cpp:52
void slot_find()
Definition: MainWindowSlotFunction.cpp:595
void slot_decrypt()
Definition: MainWindowSlotFunction.cpp:260
void slot_clean_double_line_breaks()
Definition: MainWindowSlotUI.cpp:136
QMenu * file_menu_
Submenu for file-operations.
Definition: MainWindow.h:393
QToolBar * special_edit_tool_bar_
Toolbar holding special edit actions.
Definition: MainWindow.h:410
QMenu * steganography_menu_
Submenu for steganography operations.
Definition: MainWindow.h:405
QAction * copy_mail_address_to_clipboard_act_
Definition: MainWindow.h:449
void slot_copy_mail_address_to_clipboard()
Definition: MainWindowSlotFunction.cpp:700
QAction * quote_act_
Action to quote text.
Definition: MainWindow.h:460
QAction * open_settings_act_
Action to open settings dialog.
Definition: MainWindow.h:473
QDockWidget * attachment_dock_
Attachment Dock.
Definition: MainWindow.h:415
TextEdit class.
Definition: TextEdit.h:41
Definition: FileReadTask.cpp:29
Definition: MainWindow.h:60
Definition: SoftwareVersion.h:39