contrib/parameter_gui/info_message.h

00001 //---------------------------------------------------------------------------
00002 //
00003 //    Copyright (C) 2010, 2011 by the deal.II authors
00004 //
00005 //    This file is subject to QPL and may not be  distributed
00006 //    without copyright and license information. Please refer
00007 //    to the file deal.II/doc/license.html for the  text  and
00008 //    further information on this license.
00009 //
00010 //---------------------------------------------------------------------------
00011 
00012 #ifndef INFOMESSAGE_H
00013 #define INFOMESSAGE_H
00014 
00015 #include <QDialog>
00016 #include <QSettings>
00017 #include <QCheckBox>
00018 #include <QTextEdit>
00019 #include <QLabel>
00020 
00021 
00022 namespace dealii
00023 {
00027   namespace ParameterGui
00028   {
00044     class InfoMessage : public QDialog
00045     {
00046       Q_OBJECT
00047 
00048       public:
00052         InfoMessage (QWidget *parent = 0);
00057         void setInfoMessage(const QString &message);
00058 
00059       public slots:
00063         void showMessage();
00064 
00065       protected:
00069         void done(int r);
00070 
00071       private:
00075         bool show_again;
00079         QPushButton * ok;
00083         QCheckBox * again;
00087         QTextEdit * message;
00091         QLabel * icon;
00092 #ifdef QT_SOFTKEYS_ENABLED
00093 
00096         QAction * ok_action;
00097 #endif
00098 
00101         QSettings * settings;
00102     };
00103   }
00105 }
00106 
00107 
00108 #endif
00109 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Tue May 22 2012 12:06:02 by doxygen 1.7.3