31 #include "ui/main_window/GeneralMainWindow.h"
34 class GpgPassphraseContext;
41 class InfoBoardWidget;
55 using OperationType =
unsigned int;
57 static constexpr OperationType None = 0;
58 static constexpr OperationType Encrypt = 1 << 0;
59 static constexpr OperationType Sign = 1 << 1;
60 static constexpr OperationType Decrypt = 1 << 2;
61 static constexpr OperationType Verify = 1 << 3;
62 static constexpr OperationType EncryptAndSign = 1 << 4;
63 static constexpr OperationType DecryptAndVerify = 1 << 5;
87 void SignalRestartApplication(
int);
92 void SignalUIRefresh();
97 void SignalKeyDatabaseRefresh();
104 void SlotSetStatusBarText(const QString& text);
172 void SlotDirectoryEncrypt(const QString&);
247 void slot_refresh_current_file_view();
288 void slot_append_keys_create_datetime();
294 void slot_append_keys_expire_datetime();
300 void slot_append_keys_fingerprint();
365 void slot_add_key_2_favourite();
370 void slot_remove_key_from_favourite();
375 void slot_set_owner_trust_level_of_key();
422 void recover_editor_unsaved_pages_from_cache();
434 QMenu* email_menu_{};
448 QDockWidget* info_board_dock_{};
470 QAction* gnupg_controller_open_act_{};
471 QAction* module_controller_open_act_{};
472 QAction* clean_gpg_password_cache_act_{};
473 QAction* reload_components_act_{};
474 QAction* restart_components_act_{};
478 QAction* append_key_fingerprint_to_editor_act_{};
479 QAction* append_key_create_date_to_editor_act_{};
480 QAction* append_key_expire_date_to_editor_act_{};
484 QAction* copy_key_id_to_clipboard_act_{};
485 QAction* copy_key_default_uid_to_clipboard_act_{};
487 QAction* add_key_2_favourite_act_{};
488 QAction* remove_key_from_favourtie_act_{};
489 QAction* set_owner_trust_of_key_act_{};
511 QAction* import_key_from_file_act_{};
512 QAction* import_key_from_clipboard_act_{};
513 QAction* import_key_from_key_server_act_{};
515 QLabel* status_bar_icon_{};
517 KeyList* m_key_list_{};
518 InfoBoardWidget* info_board_{};
520 bool attachment_dock_created_{};
521 int restart_mode_{0};
522 bool prohibit_update_checking_ =
false;
Definition: GpgPassphraseContext.h:37
Definition: GeneralMainWindow.h:38
Definition: MainWindow.h:47
QAction * import_key_from_edit_act_
Action to import key from edit.
Definition: MainWindow.h:466
void slot_show_key_details()
Definition: MainWindowSlotFunction.cpp:190
void create_dock_windows()
Definition: MainWindowUI.cpp:699
void SlotEncrypt()
Definition: MainWindowGpgOperaFunction.cpp:46
void Init() noexcept
Definition: MainWindow.cpp:54
QAction * close_tab_act_
Action to print.
Definition: MainWindow.h:458
void create_actions()
Definition: MainWindowUI.cpp:42
QAction * clean_double_line_breaks_act_
Definition: MainWindow.h:467
QAction * sign_act_
Action to sign text.
Definition: MainWindow.h:464
QMenu * view_menu_
Submenu for view operations.
Definition: MainWindow.h:431
QAction * verify_act_
Action to verify text.
Definition: MainWindow.h:465
QMenu * key_menu_
Submenu for key-operations.
Definition: MainWindow.h:430
void slot_open_key_management()
Definition: MainWindowSlotUI.cpp:59
void closeEvent(QCloseEvent *event) override
Definition: MainWindow.cpp:232
void create_status_bar()
Definition: MainWindowUI.cpp:683
QToolBar * file_tool_bar_
Toolbar holding file actions.
Definition: MainWindow.h:439
QMenu * crypt_menu_
Submenu for crypt-operations.
Definition: MainWindow.h:427
void restore_settings()
Definition: MainWindow.cpp:163
QAction * save_as_act_
Action to save file as.
Definition: MainWindow.h:456
QAction * encrypt_sign_act_
Action to encrypt and sign text.
Definition: MainWindow.h:461
void slot_disable_tab_actions(int number)
Definition: MainWindowSlotUI.cpp:68
void SlotSetRestartNeeded(int)
Definition: MainWindowSlotUI.cpp:185
void slot_open_file_tab()
Definition: MainWindowSlotUI.cpp:66
QAction * cut_act_
Action to cut text.
Definition: MainWindow.h:494
QAction * cut_pgp_header_act_
Action for cutting the PGP header.
Definition: MainWindow.h:509
void SlotDecrypt()
Definition: MainWindowGpgOperaFunction.cpp:195
QToolBar * key_tool_bar_
Toolbar holding key operations.
Definition: MainWindow.h:443
void slot_copy_default_uid_to_clipboard()
Definition: MainWindowSlotFunction.cpp:164
QAction * browser_act_
Action to open file browser.
Definition: MainWindow.h:454
QAction * zoom_in_act_
Action to zoom in.
Definition: MainWindow.h:500
QAction * new_tab_act_
Action to create new tab.
Definition: MainWindow.h:450
void close_attachment_dock()
Definition: MainWindow.cpp:223
QAction * open_act_
Action to open file.
Definition: MainWindow.h:453
void slot_import_key_from_edit()
Definition: MainWindowSlotUI.cpp:53
void SlotFileDecrypt(const QString &path)
Definition: MainWindowFileSlotFunction.cpp:275
QAction * find_act_
Action to find text.
Definition: MainWindow.h:497
QAction * paste_act_
Action to paste text.
Definition: MainWindow.h:495
QAction * check_update_act_
Action to open about dialog.
Definition: MainWindow.h:503
QMenu * edit_menu_
Submenu for text-operations.
Definition: MainWindow.h:426
QAction * zoom_out_act_
Action to zoom out.
Definition: MainWindow.h:501
QAction * decrypt_verify_act_
Action to encrypt and sign text.
Definition: MainWindow.h:462
QAction * copy_act_
Action to copy text.
Definition: MainWindow.h:492
void slot_append_selected_keys()
Definition: MainWindowSlotFunction.cpp:62
QAction * gnupg_act_
Action to open about dialog.
Definition: MainWindow.h:505
TextEdit * edit_
Tabwidget holding the edit-windows.
Definition: MainWindow.h:424
void SlotDecryptVerify()
Definition: MainWindowGpgOperaFunction.cpp:351
void slot_cut_pgp_header()
Definition: MainWindowSlotUI.cpp:161
void slot_add_pgp_header()
Definition: MainWindowSlotUI.cpp:147
QToolButton * import_button_
Tool button for import dropdown menu in toolbar.
Definition: MainWindow.h:445
void slot_open_settings_dialog()
Definition: MainWindowSlotUI.cpp:107
QAction * switch_tab_down_act_
Action to switch tab down.
Definition: MainWindow.h:452
void SlotFileEncrypt(const QString &)
Definition: MainWindowFileSlotFunction.cpp:45
QMenu * help_menu_
Submenu for help-operations.
Definition: MainWindow.h:429
QAction * switch_tab_up_act_
Action to switch tab up.
Definition: MainWindow.h:451
QMenu * import_key_menu_
Submenu for import operations.
Definition: MainWindow.h:432
void SlotArchiveDecryptVerify(const QString &path)
Definition: MainWindowFileSlotFunction.cpp:810
QAction * print_act_
Action to print.
Definition: MainWindow.h:457
void create_attachment_dock()
QAction * add_pgp_header_act_
Action for adding the PGP header.
Definition: MainWindow.h:510
QAction * about_act_
Action to open about dialog.
Definition: MainWindow.h:502
void slot_copy_key_id_to_clipboard()
Definition: MainWindowSlotFunction.cpp:177
void create_menus()
Definition: MainWindowUI.cpp:553
void SlotFileSign(const QString &path)
Definition: MainWindowFileSlotFunction.cpp:376
void SlotSign()
Definition: MainWindowGpgOperaFunction.cpp:141
QAction * undo_act_
Action to undo last action.
Definition: MainWindow.h:498
QAction * decrypt_act_
Action to decrypt text.
Definition: MainWindow.h:463
void create_tool_bars()
Definition: MainWindowUI.cpp:635
void slot_start_wizard()
Definition: MainWindowSlotUI.cpp:47
QToolBar * crypt_tool_bar_
Toolbar holding crypt actions.
Definition: MainWindow.h:438
QAction * start_wizard_act_
Action to open the wizard.
Definition: MainWindow.h:508
QAction * save_act_
Action to save file.
Definition: MainWindow.h:455
QToolBar * edit_tool_bar_
Toolbar holding edit actions.
Definition: MainWindow.h:440
QAction * append_selected_keys_act_
Action to append selected keys to edit.
Definition: MainWindow.h:477
void SlotArchiveDecrypt(const QString &path)
Definition: MainWindowFileSlotFunction.cpp:326
QMenu * advance_menu_
Submenu for help-operations.
Definition: MainWindow.h:428
void SlotUpdateCryptoMenuStatus(unsigned int type)
Definition: MainWindowSlotUI.cpp:190
QAction * quit_act_
Action to quit application.
Definition: MainWindow.h:459
QAction * redo_act_
Action to redo last action.
Definition: MainWindow.h:499
void SlotRaisePinentry(QSharedPointer< GpgPassphraseContext >)
Definition: MainWindowSlotUI.cpp:223
QAction * select_all_act_
Action to select whole text.
Definition: MainWindow.h:496
void SlotVerify()
Definition: MainWindowGpgOperaFunction.cpp:230
void SlotEncryptSign()
Definition: MainWindowGpgOperaFunction.cpp:260
QAction * show_key_details_act_
Action to open key-details dialog.
Definition: MainWindow.h:507
void upload_key_to_server()
Definition: MainWindowSlotFunction.cpp:237
void SlotOpenFile(const QString &path)
Definition: MainWindowSlotFunction.cpp:244
QAction * encrypt_act_
Action to encrypt text.
Definition: MainWindow.h:460
QAction * open_key_management_act_
Action to open key management.
Definition: MainWindow.h:491
QDockWidget * key_list_dock_
Encrypt Dock.
Definition: MainWindow.h:446
QAction * translate_act_
Action to open about dialog.
Definition: MainWindow.h:504
void refresh_keys_from_key_server()
Definition: MainWindowSlotFunction.cpp:222
void slot_find()
Definition: MainWindowSlotFunction.cpp:47
void SlotFileVerify(const QString &path)
Definition: MainWindowFileSlotFunction.cpp:450
void slot_clean_double_line_breaks()
Definition: MainWindowSlotUI.cpp:137
QMenu * file_menu_
Submenu for file-operations.
Definition: MainWindow.h:425
QToolBar * special_edit_tool_bar_
Toolbar holding special edit actions.
Definition: MainWindow.h:442
QMenu * steganography_menu_
Submenu for steganography operations.
Definition: MainWindow.h:437
QAction * copy_mail_address_to_clipboard_act_
Definition: MainWindow.h:482
void slot_copy_mail_address_to_clipboard()
Definition: MainWindowSlotFunction.cpp:151
void slot_version_upgrade_notify()
Definition: MainWindowSlotFunction.cpp:265
QAction * quote_act_
Action to quote text.
Definition: MainWindow.h:493
void SlotDirectoryEncryptSign(const QString &path)
Definition: MainWindowFileSlotFunction.cpp:637
QAction * open_settings_act_
Action to open settings dialog.
Definition: MainWindow.h:506
void SlotFileEncryptSign(const QString &path)
Definition: MainWindowFileSlotFunction.cpp:534
QDockWidget * attachment_dock_
Attachment Dock.
Definition: MainWindow.h:447
void SlotFileDecryptVerify(const QString &path)
Definition: MainWindowFileSlotFunction.cpp:741
TextEdit class.
Definition: TextEdit.h:40
Definition: FileReadTask.cpp:31
Definition: MainWindow.h:54