OpenWalnut
1.5.0dev
|
General purpose message dialog, able to show arbitrary content. More...
#include <WQtMessageDialog.h>
Public Member Functions | |
WQtMessageDialog (QString msgID, QString title, QWidget *content, QSettings &settings, QWidget *parent) | |
Construct a message dialog. More... | |
virtual | ~WQtMessageDialog () |
Destructor. More... | |
virtual void | show () |
Shows the dialog if the user does not disabled it. More... | |
virtual void | show (bool force) |
Force showing the dialog. More... | |
Private Slots | |
virtual void | reject () |
Dialog closed. More... | |
virtual void | accept () |
Dialog closed. More... | |
Private Member Functions | |
void | handleClose () |
Handles close and saves setting. More... | |
Private Attributes | |
QDialogButtonBox * | m_buttonBox |
Dialog buttons. More... | |
QCheckBox * | m_checkBox |
Do not show again - Checkbox. More... | |
QWidget * | m_content |
The widget showing the content. More... | |
QString | m_msgID |
The message ID. More... | |
QSettings & | m_settings |
Settings object of the main window. More... | |
General purpose message dialog, able to show arbitrary content.
It additionally allows the user to decide whether he wants to see this again or not.
Definition at line 39 of file WQtMessageDialog.h.
WQtMessageDialog::WQtMessageDialog | ( | QString | msgID, |
QString | title, | ||
QWidget * | content, | ||
QSettings & | settings, | ||
QWidget * | parent | ||
) |
Construct a message dialog.
msgID | the id used to check whether to show the message or not. |
title | the title of the dialog |
content | the widget representing the content |
settings | the object storing the info about disabled messages |
parent | parent window |
Definition at line 34 of file WQtMessageDialog.cpp.
References accept(), m_buttonBox, m_checkBox, m_content, and reject().
|
virtual |
Destructor.
Definition at line 69 of file WQtMessageDialog.cpp.
|
privatevirtualslot |
Dialog closed.
Definition at line 103 of file WQtMessageDialog.cpp.
References handleClose().
Referenced by WQtMessageDialog().
|
private |
Handles close and saves setting.
Definition at line 109 of file WQtMessageDialog.cpp.
References m_checkBox, m_msgID, and m_settings.
Referenced by accept().
|
privatevirtualslot |
Dialog closed.
Definition at line 98 of file WQtMessageDialog.cpp.
Referenced by WQtMessageDialog().
|
virtual |
Shows the dialog if the user does not disabled it.
Definition at line 74 of file WQtMessageDialog.cpp.
Referenced by WMainWindow::handleGLVendor(), show(), and WMainWindow::showWelcomeDialog().
|
virtual |
Force showing the dialog.
force | true if forced to show (even if the user marked the do not show again flag). |
Definition at line 79 of file WQtMessageDialog.cpp.
References m_checkBox, m_msgID, m_settings, and show().
|
private |
|
private |
Do not show again - Checkbox.
Definition at line 93 of file WQtMessageDialog.h.
Referenced by handleClose(), show(), and WQtMessageDialog().
|
private |
The widget showing the content.
Definition at line 98 of file WQtMessageDialog.h.
Referenced by WQtMessageDialog().
|
private |
The message ID.
Definition at line 103 of file WQtMessageDialog.h.
Referenced by handleClose(), and show().
|
private |
Settings object of the main window.
Definition at line 108 of file WQtMessageDialog.h.
Referenced by handleClose(), and show().