Code_TYMPAN  4.4.0
Industrial site acoustic simulation
OSplashScreen.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3  * This file is part of Code_TYMPAN (R).
4  * Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  * Code_TYMPAN (R) is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
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.