![]() |
Reference documentation for deal.II version 8.1.0
|
#include <info_message.h>
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 50 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.
|
slot |
Show the dialog with the message
.
|
private |
This variable stores, if the message
should be shown again the next time.
Definition at line 81 of file info_message.h.
|
private |
The Ok
button.
Definition at line 85 of file info_message.h.
|
private |
The checkboxShow this message again
.
Definition at line 89 of file info_message.h.
|
private |
The message
editor.
Definition at line 93 of file info_message.h.
|
private |
An icon
for the dialog.
Definition at line 97 of file info_message.h.
|
private |
An object for storing settings
in a file.
Definition at line 107 of file info_message.h.