UniversalIndentGUI 1.2.0
|
UiGuiErrorMessage is a child of QErrorMessage. But QErrorMessages "Do not show again" didn't work with my strings, so this is my own, working implementation of it. More...
#include <UiGuiErrorMessage.h>
Public Member Functions | |
void | showMessage (const QString &message) |
For convinience, for showing a dialog box with the default title "UniversalIndentGUI". | |
void | showMessage (const QString &title, const QString &message) |
Shows an error message in a dialog box with title. | |
UiGuiErrorMessage (QWidget *parent=0) | |
Initializes the dialog. | |
~UiGuiErrorMessage (void) | |
Just a lazy nothin doin destructive destructor. | |
Private Attributes | |
QStringList | _errorMessageList |
QCheckBox * | _showAgainCheckBox |
UiGuiErrorMessage is a child of QErrorMessage. But QErrorMessages "Do not show again" didn't work with my strings, so this is my own, working implementation of it.
Definition at line 28 of file UiGuiErrorMessage.h.
UiGuiErrorMessage::UiGuiErrorMessage | ( | QWidget * | parent = 0 | ) |
Initializes the dialog.
Retrieves the object pointer to the _showAgainCheckBox check box, sets the dialogs modality and for a working translation sets the check box text.
Definition at line 39 of file UiGuiErrorMessage.cpp.
References _showAgainCheckBox.
UiGuiErrorMessage::~UiGuiErrorMessage | ( | void | ) |
Just a lazy nothin doin destructive destructor.
Definition at line 49 of file UiGuiErrorMessage.cpp.
void UiGuiErrorMessage::showMessage | ( | const QString & | message | ) |
For convinience, for showing a dialog box with the default title "UniversalIndentGUI".
Definition at line 85 of file UiGuiErrorMessage.cpp.
Referenced by IndentHandler::callExecutableIndenter(), IndentHandler::IndentHandler(), and showMessage().
void UiGuiErrorMessage::showMessage | ( | const QString & | title, |
const QString & | message | ||
) |
Shows an error message in a dialog box with title.
The shown message is added to a list, if not already in there. If it is already in that list and "Show this message again" is not checked, that message will not be shown.
Definition at line 60 of file UiGuiErrorMessage.cpp.
References _errorMessageList, _showAgainCheckBox, and showMessage().
QStringList UiGuiErrorMessage::_errorMessageList [private] |
Definition at line 40 of file UiGuiErrorMessage.h.
Referenced by showMessage().
QCheckBox* UiGuiErrorMessage::_showAgainCheckBox [private] |
Definition at line 39 of file UiGuiErrorMessage.h.
Referenced by showMessage(), and UiGuiErrorMessage().