Reference documentation for deal.II version 8.4.1
Public Slots | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
dealii::ParameterGui::InfoMessage Class Reference

#include </home/dealii/dealii-8.4.1/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
 

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 49 of file info_message.h.

Constructor & Destructor Documentation

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

Constructor

Definition at line 26 of file info_message.cpp.

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.

Definition at line 76 of file info_message.cpp.

void dealii::ParameterGui::InfoMessage::showMessage ( )
slot

Show the dialog with the message.

Definition at line 83 of file info_message.cpp.

void dealii::ParameterGui::InfoMessage::done ( int  r)
protected

Reimplemented from QDialog.

Definition at line 91 of file info_message.cpp.

Member Data Documentation

bool dealii::ParameterGui::InfoMessage::show_again
private

This variable stores, if the message should be shown again the next time.

Definition at line 80 of file info_message.h.

QPushButton* dealii::ParameterGui::InfoMessage::ok
private

The Ok button.

Definition at line 84 of file info_message.h.

QCheckBox* dealii::ParameterGui::InfoMessage::again
private

The checkboxShow this message again.

Definition at line 88 of file info_message.h.

QTextEdit* dealii::ParameterGui::InfoMessage::message
private

The message editor.

Definition at line 92 of file info_message.h.

QLabel* dealii::ParameterGui::InfoMessage::icon
private

An icon for the dialog.

Definition at line 96 of file info_message.h.

QSettings* dealii::ParameterGui::InfoMessage::settings
private

An object for storing settings in a file.

Definition at line 106 of file info_message.h.


The documentation for this class was generated from the following files: