Inherits QDialog.
Public Slots | |
| void | showMessage () |
Public Member Functions | |
| InfoMessage (QWidget *parent=0) | |
| void | setInfoMessage (const QString &message) |
Protected Member Functions | |
| void | done (int r) |
Private Attributes | |
| bool | show_again |
| QPushButton * | ok |
| QCheckBox * | again |
| QTextEdit * | message |
| QLabel * | icon |
| QSettings * | settings |
The InfoMessage class implements a special info message for the parameterGUI. Besides showing a info message itself, the dialog shows a checkbox "Show this message again". If the user unchecks this box, this is stored in the "settings.ini" file and will be reloaded the next time the user opens the parameterGUI. The intention of such a info message is the following. The user should have some information on how using the GUI "at hand" such as "how to edit parameter values" for example. But after reading this message, the user knows it and the message should not appear permanently.
Definition at line 44 of file info_message.h.
| dealii::ParameterGui::InfoMessage::InfoMessage | ( | QWidget * | parent = 0 | ) |
Constructor
| void dealii::ParameterGui::InfoMessage::setInfoMessage | ( | const QString & | message | ) |
With this function the message which will be shown in the dialog can be set.
| void dealii::ParameterGui::InfoMessage::showMessage | ( | ) | [slot] |
Show the dialog with the message.
| void dealii::ParameterGui::InfoMessage::done | ( | int | r | ) | [protected] |
Reimplemented from QDialog.
bool dealii::ParameterGui::InfoMessage::show_again [private] |
This variable stores, if the message should be shown again the next time.
Definition at line 75 of file info_message.h.
QPushButton* dealii::ParameterGui::InfoMessage::ok [private] |
The Ok button.
Definition at line 79 of file info_message.h.
QCheckBox* dealii::ParameterGui::InfoMessage::again [private] |
The checkboxShow this message again.
Definition at line 83 of file info_message.h.
QTextEdit* dealii::ParameterGui::InfoMessage::message [private] |
The message editor.
Definition at line 87 of file info_message.h.
QLabel* dealii::ParameterGui::InfoMessage::icon [private] |
An icon for the dialog.
Definition at line 91 of file info_message.h.
QSettings* dealii::ParameterGui::InfoMessage::settings [private] |
An object for storing settings in a file.
Definition at line 101 of file info_message.h.
documentation generated on Mon May 21 2012 12:06:34 by
doxygen
1.7.3