![]() |
Reference documentation for deal.II version 8.4.2
|
#include </build/deal.ii-pdtiAo/deal.ii-8.4.2/contrib/parameter_gui/info_message.h>
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 49 of file info_message.h.
| dealii::ParameterGui::InfoMessage::InfoMessage | ( | QWidget * | parent = 0 | ) |
Constructor
Definition at line 26 of file info_message.cpp.
| void dealii::ParameterGui::InfoMessage::setInfoMessage | ( | const QString & | message | ) |
With this function the message which will be shown in the dialog can be set.
Definition at line 76 of file info_message.cpp.
|
slot |
Show the dialog with the message.
Definition at line 83 of file info_message.cpp.
|
protected |
Reimplemented from QDialog.
Definition at line 91 of file info_message.cpp.
|
private |
This variable stores, if the message should be shown again the next time.
Definition at line 80 of file info_message.h.
|
private |
The Ok button.
Definition at line 84 of file info_message.h.
|
private |
The checkboxShow this message again.
Definition at line 88 of file info_message.h.
|
private |
The message editor.
Definition at line 92 of file info_message.h.
|
private |
An icon for the dialog.
Definition at line 96 of file info_message.h.
|
private |
An object for storing settings in a file.
Definition at line 106 of file info_message.h.
1.8.12