Code_TYMPAN  4.4.0
Industrial site acoustic simulation
OSplashScreen.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012> <EDF-R&D> <FRANCE>
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License along
12  * with this program; if not, write to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
14  */
15 
21 #ifndef __O_SPLASH_SCREEN__
22 #define __O_SPLASH_SCREEN__
23 
24 #include <qwidget.h>
25 #include <qpixmap.h>
26 // Added by qt3to4:
27 #include <QMouseEvent>
28 
32 class OSplashScreen : public QWidget
33 {
34 public:
39  OSplashScreen(const QPixmap& pixmap, const QString& msgText);
44  virtual ~OSplashScreen();
45 
50  void setStatus(const QString& message, int alignment = Qt::AlignLeft, const QColor& color = Qt::black);
51 
56  void finish(QWidget* pMainWin);
57 
62  void repaint();
63 
64 protected:
65  void mousePressEvent(QMouseEvent* pEvent);
66 
67 private:
69  QPixmap _pix;
70 
71  // CLM-NT33: gestion du changement de version
72  QLabel* _msgLabel;
73 };
74 
75 #endif //__O_SPLASH_SCREEN__
void setStatus(const QString &message, int alignment=Qt::AlignLeft, const QColor &color=Qt::black)
Affiche un nouveau message indiquant le status de l'application.
QLabel * _msgLabel
Definition: OSplashScreen.h:72
void repaint()
Mise a jour.
void mousePressEvent(QMouseEvent *pEvent)
QPixmap _pix
L'image du splash screen.
Definition: OSplashScreen.h:69
virtual ~OSplashScreen()
Destructeur.
OSplashScreen(const QPixmap &pixmap, const QString &msgText)
Constructeur par defaut.
void finish(QWidget *pMainWin)
Indique que le chargement de l'application est termine.