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