kwave  18.07.70
LogoWidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  LogoWidget.h - widget with the animated Kwave logo
3  -------------------
4  begin : Sun Oct 29 2000
5  copyright : (C) 2000 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
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 LOGO_WIDGET_H
19 #define LOGO_WIDGET_H
20 
21 #include "config.h"
22 
23 #include <QPixmap>
24 #include <QWidget>
25 
26 class QPaintEvent;
27 class QImage;
28 class QTimer;
29 
31 #define MAXSIN 5
32 
33 namespace Kwave
34 {
35  class LogoWidget: public QWidget
36  {
37  Q_OBJECT
38 
39  public:
41  explicit LogoWidget(QWidget *parent);
42 
44  virtual ~LogoWidget() Q_DECL_OVERRIDE;
45 
46  public slots:
48  void doAnim();
49 
50  protected:
51 
53  virtual void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;
54 
55  private:
56 
58  int m_width;
59 
61  int m_height;
62 
64  bool m_repaint;
65 
67  double m_deg[MAXSIN];
68 
70  QImage *m_image;
71 
73  QPixmap m_logo;
74 
76  QTimer *m_timer;
77 
79  double m_color_h;
80  };
81 }
82 
83 #endif /* LOGO_WIDGET_H */
84 
85 //***************************************************************************
86 //***************************************************************************
virtual void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE
Definition: LogoWidget.cpp:86
Definition: App.h:33
QTimer * m_timer
Definition: LogoWidget.h:76
LogoWidget(QWidget *parent)
Definition: LogoWidget.cpp:39
QImage * m_image
Definition: LogoWidget.h:70
virtual ~LogoWidget() Q_DECL_OVERRIDE
Definition: LogoWidget.cpp:79
#define MAXSIN
Definition: LogoWidget.h:31
double m_deg[MAXSIN]
Definition: LogoWidget.h:67