GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
Class for handling the verify label shown at bottom of a textedit-page. More...
#include <InfoBoardWidget.h>
Public Slots | |
void | SlotReset () |
void | SlotRefresh (const QString &text, GpgFrontend::UI::InfoBoardStatus status) |
Public Member Functions | |
InfoBoardWidget (QWidget *parent) | |
void | AssociateTextEdit (QTextEdit *edit) |
void | AssociateTabWidget (QTabWidget *tab) |
void | AddOptionalAction (const QString &name, const std::function< void()> &action) |
void | ResetOptionActionsMenu () |
void | SetInfoBoard (const QString &text, GpgFrontend::UI::InfoBoardStatus verify_label_status) |
Private Slots | |
void | slot_copy () |
void | slot_save () |
Private Member Functions | |
void | delete_widgets_in_layout (QLayout *layout, int start_index=0) |
Private Attributes | |
std::shared_ptr< Ui_InfoBoard > | ui_ |
QTextEdit * | m_text_page_ |
TextEdit associated to the notification. More... | |
QTabWidget * | m_tab_widget_ {nullptr} |
Class for handling the verify label shown at bottom of a textedit-page.
|
explicit |
ctx | The GPGme-Context |
parent | The parent widget |
References GpgFrontend::UI::SignalStation::GetInstance(), GpgFrontend::UI::SignalStation::SignalRefreshInfoBoard(), and SlotRefresh().
void GpgFrontend::UI::InfoBoardWidget::AddOptionalAction | ( | const QString & | name, |
const std::function< void()> & | action | ||
) |
name | |
action |
Referenced by GpgFrontend::UI::show_verify_details().
void GpgFrontend::UI::InfoBoardWidget::AssociateTabWidget | ( | QTabWidget * | tab | ) |
void GpgFrontend::UI::InfoBoardWidget::AssociateTextEdit | ( | QTextEdit * | edit | ) |
edit |
References m_text_page_.
|
private |
layout | |
start_index | Try Delete all widget from target layout |
layout | target layout |
Referenced by ResetOptionActionsMenu().
void GpgFrontend::UI::InfoBoardWidget::ResetOptionActionsMenu | ( | ) |
Delete All item in actionButtonLayout
References delete_widgets_in_layout().
Referenced by GpgFrontend::UI::show_verify_details(), GpgFrontend::UI::MainWindow::slot_encrypt(), and GpgFrontend::UI::MainWindow::slot_encrypt_sign().
void GpgFrontend::UI::InfoBoardWidget::SetInfoBoard | ( | const QString & | text, |
GpgFrontend::UI::InfoBoardStatus | verify_label_status | ||
) |
Set the text and background-color of verify notification.
text | The text to be set. |
verify_label_status | The status of label to set the specified color. |
References GpgFrontend::UI::SettingsObject::Check().
Referenced by SlotRefresh().
|
slot |
Refresh the contents of dialog.
References SetInfoBoard().
Referenced by InfoBoardWidget(), and GpgFrontend::UI::refresh_info_board().
|
private |
TextEdit associated to the notification.
Referenced by AssociateTabWidget(), and AssociateTextEdit().