GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontend::UI::MainWindow Class Reference
Inheritance diagram for GpgFrontend::UI::MainWindow:
Inheritance graph
Collaboration diagram for GpgFrontend::UI::MainWindow:
Collaboration graph

Classes

struct  CryptoMenu
 

Public Slots

void SlotSetStatusBarText (const QString &text)
 
void SlotUpdateCryptoMenuStatus (unsigned int type)
 
void SlotOpenFile (const QString &path)
 
void SlotEncrypt ()
 
void SlotEncryptSign ()
 
void SlotDecrypt ()
 
void SlotSign ()
 
void SlotVerify ()
 
void SlotDecryptVerify ()
 
void SlotFileEncrypt (const QString &)
 
void SlotDirectoryEncrypt (const QString &)
 
void SlotFileDecrypt (const QString &path)
 
void SlotArchiveDecrypt (const QString &path)
 
void SlotFileSign (const QString &path)
 
void SlotFileVerify (const QString &path)
 
void SlotFileEncryptSign (const QString &path)
 
void SlotDirectoryEncryptSign (const QString &path)
 
void SlotFileDecryptVerify (const QString &path)
 
void SlotArchiveDecryptVerify (const QString &path)
 
void SlotSetRestartNeeded (int)
 
void SlotRaisePinentry (QSharedPointer< GpgPassphraseContext >)
 

Signals

void SignalLoaded ()
 
void SignalRestartApplication (int)
 
void SignalUIRefresh ()
 
void SignalKeyDatabaseRefresh ()
 

Public Member Functions

void Init () noexcept
 
- Public Member Functions inherited from GpgFrontend::UI::GeneralMainWindow
 GeneralMainWindow (QString name, QWidget *parent=nullptr)
 

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 
- Protected Member Functions inherited from GpgFrontend::UI::GeneralMainWindow
void closeEvent (QCloseEvent *event) override
 
void setPosCenterOfScreen ()
 
void movePosition2CenterOfParent ()
 

Private Slots

void slot_refresh_current_file_view ()
 
void slot_show_key_details ()
 
void refresh_keys_from_key_server ()
 
void upload_key_to_server ()
 
void slot_find ()
 
void slot_start_wizard ()
 
void slot_import_key_from_edit ()
 
void slot_append_selected_keys ()
 
void slot_append_keys_create_datetime ()
 
void slot_append_keys_expire_datetime ()
 
void slot_append_keys_fingerprint ()
 
void slot_copy_mail_address_to_clipboard ()
 
void slot_copy_default_uid_to_clipboard ()
 
void slot_copy_key_id_to_clipboard ()
 
void slot_open_key_management ()
 
void slot_open_file_tab ()
 
void slot_open_settings_dialog ()
 
void slot_clean_double_line_breaks ()
 
void slot_cut_pgp_header ()
 
void slot_add_pgp_header ()
 
void slot_disable_tab_actions (int number)
 
void slot_version_upgrade_nofity ()
 
void slot_add_key_2_favourite ()
 
void slot_remove_key_from_favourite ()
 
void slot_set_owner_trust_level_of_key ()
 

Private Member Functions

void create_actions ()
 
void create_menus ()
 
void create_tool_bars ()
 
void create_status_bar ()
 
void create_dock_windows ()
 
void create_attachment_dock ()
 
void close_attachment_dock ()
 
void restore_settings ()
 
void recover_editor_unsaved_pages_from_cache ()
 
int get_restart_needed () const
 return true, if restart is needed
 

Private Attributes

TextEditedit_ {}
 Tabwidget holding the edit-windows.
 
QMenu * file_menu_ {}
 Submenu for file-operations.
 
QMenu * edit_menu_ {}
 Submenu for text-operations.
 
QMenu * crypt_menu_ {}
 Submenu for crypt-operations.
 
QMenu * advance_menu_ {}
 Submenu for help-operations.
 
QMenu * help_menu_ {}
 Submenu for help-operations.
 
QMenu * key_menu_ {}
 Submenu for key-operations.
 
QMenu * view_menu_ {}
 Submenu for view operations.
 
QMenu * import_key_menu_ {}
 Submenu for import operations.
 
QMenu * steganography_menu_ {}
 Submenu for steganography operations.
 
QToolBar * crypt_tool_bar_ {}
 Toolbar holding crypt actions.
 
QToolBar * file_tool_bar_ {}
 Toolbar holding file actions.
 
QToolBar * edit_tool_bar_ {}
 Toolbar holding edit actions.
 
QToolBar * special_edit_tool_bar_ {}
 Toolbar holding special edit actions.
 
QToolBar * key_tool_bar_ {}
 Toolbar holding key operations.
 
QToolButton * import_button_ {}
 Tool button for import dropdown menu in toolbar.
 
QDockWidget * key_list_dock_ {}
 Encrypt Dock.
 
QDockWidget * attachment_dock_ {}
 Attachment Dock.
 
QDockWidget * info_board_dock_ {}
 
QAction * new_tab_act_ {}
 Action to create new tab.
 
QAction * switch_tab_up_act_ {}
 Action to switch tab up.
 
QAction * switch_tab_down_act_ {}
 Action to switch tab down.
 
QAction * open_act_ {}
 Action to open file.
 
QAction * browser_act_ {}
 Action to open file browser.
 
QAction * save_act_ {}
 Action to save file.
 
QAction * save_as_act_ {}
 Action to save file as.
 
QAction * print_act_ {}
 Action to print.
 
QAction * close_tab_act_ {}
 Action to print.
 
QAction * quit_act_ {}
 Action to quit application.
 
QAction * encrypt_act_ {}
 Action to encrypt text.
 
QAction * encrypt_sign_act_ {}
 Action to encrypt and sign text.
 
QAction * decrypt_verify_act_ {}
 Action to encrypt and sign text.
 
QAction * decrypt_act_ {}
 Action to decrypt text.
 
QAction * sign_act_ {}
 Action to sign text.
 
QAction * verify_act_ {}
 Action to verify text.
 
QAction * import_key_from_edit_act_ {}
 Action to import key from edit.
 
QAction * clean_double_line_breaks_act_ {}
 
QAction * gnupg_controller_open_act_ {}
 
QAction * module_controller_open_act_ {}
 
QAction * clean_gpg_password_cache_act_ {}
 
QAction * reload_components_act_ {}
 
QAction * restart_components_act_ {}
 
QAction * append_selected_keys_act_ {}
 Action to append selected keys to edit.
 
QAction * append_key_fingerprint_to_editor_act_ {}
 
QAction * append_key_create_date_to_editor_act_ {}
 
QAction * append_key_expire_date_to_editor_act_ {}
 
QAction * copy_mail_address_to_clipboard_act_ {}
 
QAction * copy_key_id_to_clipboard_act_ {}
 
QAction * copy_key_default_uid_to_clipboard_act_ {}
 
QAction * add_key_2_favourtie_act_ {}
 
QAction * remove_key_from_favourtie_act_ {}
 
QAction * set_owner_trust_of_key_act_ {}
 
QAction * open_key_management_act_ {}
 Action to open key management.
 
QAction * copy_act_ {}
 Action to copy text.
 
QAction * quote_act_ {}
 Action to quote text.
 
QAction * cut_act_ {}
 Action to cut text.
 
QAction * paste_act_ {}
 Action to paste text.
 
QAction * select_all_act_ {}
 Action to select whole text.
 
QAction * find_act_ {}
 Action to find text.
 
QAction * undo_act_ {}
 Action to undo last action.
 
QAction * redo_act_ {}
 Action to redo last action.
 
QAction * zoom_in_act_ {}
 Action to zoom in.
 
QAction * zoom_out_act_ {}
 Action to zoom out.
 
QAction * about_act_ {}
 Action to open about dialog.
 
QAction * check_update_act_ {}
 Action to open about dialog.
 
QAction * translate_act_ {}
 Action to open about dialog.
 
QAction * gnupg_act_ {}
 Action to open about dialog.
 
QAction * open_settings_act_ {}
 Action to open settings dialog.
 
QAction * show_key_details_act_ {}
 Action to open key-details dialog.
 
QAction * start_wizard_act_ {}
 Action to open the wizard.
 
QAction * cut_pgp_header_act_ {}
 Action for cutting the PGP header.
 
QAction * add_pgp_header_act_ {}
 Action for adding the PGP header.
 
QAction * import_key_from_file_act_ {}
 
QAction * import_key_from_clipboard_act_ {}
 
QAction * import_key_from_key_server_act_ {}
 
QLabel * status_bar_icon_ {}
 
KeyListm_key_list_ {}
 
InfoBoardWidgetinfo_board_ {}
 
bool attachment_dock_created_ {}
 
int restart_needed_ {0}
 
bool prohibit_update_checking_ = false
 

Additional Inherited Members

- Protected Attributes inherited from GpgFrontend::UI::GeneralMainWindow
QSize icon_size_ {}
 
int font_size_ {}
 
Qt::ToolButtonStyle icon_style_
 

Member Function Documentation

◆ close_attachment_dock()

void GpgFrontend::UI::MainWindow::close_attachment_dock ( )
private

close attachment-dockwindow.

◆ closeEvent()

void GpgFrontend::UI::MainWindow::closeEvent ( QCloseEvent *  event)
overrideprotected

Close event shows a save dialog, if there are unsaved documents on exit.

Parameters
event

◆ create_actions()

◆ create_attachment_dock()

void GpgFrontend::UI::MainWindow::create_attachment_dock ( )
private

Create attachment dock window.

◆ create_dock_windows()

void GpgFrontend::UI::MainWindow::create_dock_windows ( )
private

◆ create_menus()

void GpgFrontend::UI::MainWindow::create_menus ( )
private

create the menu of the main-window.

◆ create_status_bar()

void GpgFrontend::UI::MainWindow::create_status_bar ( )
private

Create statusbar of mainwindow.

◆ create_tool_bars()

void GpgFrontend::UI::MainWindow::create_tool_bars ( )
private

Create edit-, crypt- and key-toolbars.

◆ Init()

void GpgFrontend::UI::MainWindow::Init ( )
noexcept

ONLY Called from main()

◆ refresh_keys_from_key_server

void GpgFrontend::UI::MainWindow::refresh_keys_from_key_server ( )
privateslot

Refresh key information of selected keys from default keyserver

References GpgFrontend::UI::CommonUtils::GetInstance(), and GpgFrontend::UI::KeyList::GetSelected().

◆ restore_settings()

void GpgFrontend::UI::MainWindow::restore_settings ( )
private

Load settings from ini-file.

◆ slot_add_pgp_header

◆ slot_append_selected_keys

◆ slot_clean_double_line_breaks

void GpgFrontend::UI::MainWindow::slot_clean_double_line_breaks ( )
privateslot

◆ slot_copy_default_uid_to_clipboard

void GpgFrontend::UI::MainWindow::slot_copy_default_uid_to_clipboard ( )
privateslot

Copy the mailaddress of selected key to clipboard. Method for keylists contextmenu.

References GpgFrontend::SingletonFunctionObject< GpgKeyGetter >::GetInstance(), and GpgFrontend::UI::KeyList::GetSelected().

◆ slot_copy_key_id_to_clipboard

void GpgFrontend::UI::MainWindow::slot_copy_key_id_to_clipboard ( )
privateslot

Copy the mailaddress of selected key to clipboard. Method for keylists contextmenu.

References GpgFrontend::SingletonFunctionObject< GpgKeyGetter >::GetInstance(), and GpgFrontend::UI::KeyList::GetSelected().

◆ slot_copy_mail_address_to_clipboard

void GpgFrontend::UI::MainWindow::slot_copy_mail_address_to_clipboard ( )
privateslot

Copy the mailaddress of selected key to clipboard. Method for keylists contextmenu.

References GpgFrontend::SingletonFunctionObject< GpgKeyGetter >::GetInstance(), and GpgFrontend::UI::KeyList::GetSelected().

◆ slot_cut_pgp_header

◆ slot_disable_tab_actions

void GpgFrontend::UI::MainWindow::slot_disable_tab_actions ( int  number)
privateslot

◆ slot_find

◆ slot_import_key_from_edit

◆ slot_open_file_tab

void GpgFrontend::UI::MainWindow::slot_open_file_tab ( )
privateslot

Open File Opera Tab

References edit_, and GpgFrontend::UI::TextEdit::SlotNewFileTab().

Referenced by create_actions().

◆ slot_open_key_management

void GpgFrontend::UI::MainWindow::slot_open_key_management ( )
privateslot

Open key management dialog.

◆ slot_open_settings_dialog

void GpgFrontend::UI::MainWindow::slot_open_settings_dialog ( )
privateslot

◆ slot_show_key_details

void GpgFrontend::UI::MainWindow::slot_show_key_details ( )
privateslot

Show the details of the first of the first of selected keys

References GpgFrontend::SingletonFunctionObject< GpgKeyGetter >::GetInstance(), and GpgFrontend::UI::KeyList::GetSelected().

◆ slot_start_wizard

void GpgFrontend::UI::MainWindow::slot_start_wizard ( )
privateslot

start the wizard

◆ slot_version_upgrade_nofity

void GpgFrontend::UI::MainWindow::slot_version_upgrade_nofity ( )
privateslot

called when need to upgrade.

◆ SlotArchiveDecrypt

◆ SlotArchiveDecryptVerify

◆ SlotDecrypt

◆ SlotDecryptVerify

◆ SlotDirectoryEncryptSign

◆ SlotEncrypt

◆ SlotEncryptSign

◆ SlotFileDecrypt

◆ SlotFileDecryptVerify

◆ SlotFileEncrypt

◆ SlotFileEncryptSign

◆ SlotFileSign

◆ SlotFileVerify

◆ SlotOpenFile

void GpgFrontend::UI::MainWindow::SlotOpenFile ( const QString &  path)
slot

Open a new tab for path

References edit_, and GpgFrontend::UI::TextEdit::SlotOpenFile().

◆ SlotRaisePinentry

void GpgFrontend::UI::MainWindow::SlotRaisePinentry ( QSharedPointer< GpgPassphraseContext context)
slot

Open a new tab for path

◆ SlotSetRestartNeeded

void GpgFrontend::UI::MainWindow::SlotSetRestartNeeded ( int  mode)
slot

get value of member restartNeeded to needed.

Parameters
neededtrue, if application has to be restarted

Referenced by GpgFrontend::UI::SettingsDialog::SettingsDialog().

◆ SlotSign

◆ SlotUpdateCryptoMenuStatus

void GpgFrontend::UI::MainWindow::SlotUpdateCryptoMenuStatus ( unsigned int  type)
slot

refresh and enable specify crypto-menu actions.

References decrypt_act_, decrypt_verify_act_, encrypt_act_, encrypt_sign_act_, sign_act_, and verify_act_.

◆ SlotVerify

void GpgFrontend::UI::MainWindow::SlotVerify ( )
slot

Verify the text of currently active tab and show verify information. If document is signed with a key, which is not in keylist, show import missing key from keyserver in Menu of verifynotification.

References GpgFrontend::CheckGpgError(), GpgFrontend::UI::TextEdit::CurTextPage(), edit_, GpgFrontend::SingletonFunctionObject< GpgBasicOperator >::GetInstance(), GpgFrontend::UI::PlainTextEditorPage::GetTextPage(), GpgFrontend::UI::process_result_analyse(), GpgFrontend::UI::TextEdit::SlotCurPageTextEdit(), and GpgFrontend::UI::CommonUtils::WaitForOpera().

◆ upload_key_to_server

void GpgFrontend::UI::MainWindow::upload_key_to_server ( )
privateslot

upload the selected key to the keyserver

References GpgFrontend::UI::KeyList::GetSelected().

Member Data Documentation

◆ clean_double_line_breaks_act_

QAction* GpgFrontend::UI::MainWindow::clean_double_line_breaks_act_ {}
private

Action to remove double line breaks

Referenced by create_actions(), and slot_disable_tab_actions().

◆ copy_mail_address_to_clipboard_act_

QAction* GpgFrontend::UI::MainWindow::copy_mail_address_to_clipboard_act_ {}
private

Action to copy mail to clipboard


The documentation for this class was generated from the following files: