Public Slots | Public Member Functions | Protected Member Functions | Private Attributes

dealii::ParameterGui::InfoMessage Class Reference

Inherits QDialog.

List of all members.

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

Detailed Description

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.

Note:
This class is used in the graphical user interface for the ParameterHandler class. It is not compiled into the deal.II libraries and can not be used by applications using deal.II.
Author:
Martin Steigemann, Wolfgang Bangerth, 2010

Definition at line 44 of file info_message.h.


Constructor & Destructor Documentation

dealii::ParameterGui::InfoMessage::InfoMessage ( QWidget *  parent = 0)

Constructor


Member Function Documentation

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.


Member Data Documentation

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.

The checkboxShow this message again.

Definition at line 83 of file info_message.h.

The message editor.

Definition at line 87 of file info_message.h.

An icon for the dialog.

Definition at line 91 of file info_message.h.

An object for storing settings in a file.

Definition at line 101 of file info_message.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Mon May 21 2012 12:06:34 by doxygen 1.7.3