kwave  18.07.70
Splash.h
Go to the documentation of this file.
1 /*************************************************************************
2  Splash.h - splash screen for Kwave
3  -------------------
4  begin : Tue Jun 24 2003
5  copyright : Copyright (C) 2003 Gilles CAULIER
6  email : Gilles CAULIER <caulier.gilles@free.fr>
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef KWAVE_SPLASH_H
19 #define KWAVE_SPLASH_H
20 
21 #include <QFrame>
22 #include <QFont>
23 #include <QObject>
24 #include <QPixmap>
25 #include <QPointer>
26 #include <QString>
27 #include <QTimer>
28 
29 class QMouseEvent;
30 class QPaintEvent;
31 
32 namespace Kwave
33 {
34  class Splash: public QFrame
35  {
36  Q_OBJECT
37 
38  public:
44  explicit Splash(const QString &PNGFile);
45 
47  virtual ~Splash() Q_DECL_OVERRIDE;
48 
50  static void showMessage(const QString &message);
51 
53  virtual void paintEvent(QPaintEvent *e) Q_DECL_OVERRIDE;
54 
56  virtual void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE;
57 
59  void done();
60 
61  private:
62 
64  QFont m_font;
65 
67  QPixmap m_pixmap;
68 
70  QString m_message;
71 
73  static QPointer<Kwave::Splash> m_splash;
74  };
75 }
76 
77 #endif /* KWAVE_SPLASH_H */
78 
79 //***************************************************************************
80 //***************************************************************************
QString m_message
Definition: Splash.h:70
Splash(const QString &PNGFile)
Definition: Splash.cpp:42
virtual ~Splash() Q_DECL_OVERRIDE
Definition: Splash.cpp:109
Definition: App.h:33
static void showMessage(const QString &message)
Definition: Splash.cpp:115
static QPointer< Kwave::Splash > m_splash
Definition: Splash.h:73
QPixmap m_pixmap
Definition: Splash.h:67
virtual void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE
Definition: Splash.cpp:150
virtual void paintEvent(QPaintEvent *e) Q_DECL_OVERRIDE
Definition: Splash.cpp:124
void done()
Definition: Splash.cpp:99
QFont m_font
Definition: Splash.h:64