Reference documentation for deal.II version 8.1.0
info_message.h
1 // ---------------------------------------------------------------------
2 // @f$Id: info_message.h 31527 2013-11-03 09:58:45Z maier @f$
3 //
4 // Copyright (C) 2010 - 2013 by Martin Steigemann and Wolfgang Bangerth
5 //
6 // This file is part of the deal.II library.
7 //
8 // The deal.II library is free software; you can use it, redistribute
9 // it, and/or modify it under the terms of the GNU Lesser General
10 // Public License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 // The full text of the license can be found in the file LICENSE at
13 // the top level of the deal.II distribution.
14 //
15 // ---------------------------------------------------------------------
16 
17 
18 #ifndef INFOMESSAGE_H
19 #define INFOMESSAGE_H
20 
21 #include <QDialog>
22 #include <QSettings>
23 #include <QCheckBox>
24 #include <QTextEdit>
25 #include <QLabel>
26 
27 
28 namespace dealii
29 {
33  namespace ParameterGui
34  {
50  class InfoMessage : public QDialog
51  {
52  Q_OBJECT
53 
54  public:
58  InfoMessage (QWidget *parent = 0);
63  void setInfoMessage(const QString &message);
64 
65  public slots:
69  void showMessage();
70 
71  protected:
75  void done(int r);
76 
77  private:
81  bool show_again;
85  QPushButton * ok;
89  QCheckBox * again;
93  QTextEdit * message;
97  QLabel * icon;
98 #ifdef QT_SOFTKEYS_ENABLED
99 
102  QAction * ok_action;
103 #endif
104 
107  QSettings * settings;
108  };
109  }
111 }
112 
113 
114 #endif
void setInfoMessage(const QString &message)