Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[429088]: kwave / about.h Maximize Restore History

Download this file

about.h    69 lines (48 with data), 981 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef _ABOUT_H_
#define _ABOUT_H_ 1
#include <stdlib.h>
#include <qapp.h>
#include <qwidget.h>
#include <qpushbt.h>
#include <qdialog.h>
#include <qmlined.h>
#include <qpainter.h>
#include <qpixmap.h>
#include <qimage.h>
#include <qtimer.h>
#define MAXSIN 5
class LogoWidget : public QWidget
{
Q_OBJECT
public:
LogoWidget (QWidget *parent=NULL);
~LogoWidget ();
public slots:
void doAnim ();
protected:
void paintEvent(QPaintEvent *);
private:
int width, height;
int amp;
int rpaint; //flag for need of repaint of animation
double deg[MAXSIN]; //phase of sinus for animation
QPainter p;
QPixmap *pixmap;
QPixmap *img;
QTimer *timer;
};
class AboutDialog : public QDialog
{
Q_OBJECT
public:
AboutDialog (QWidget *parent=NULL);
~AboutDialog ();
public slots:
protected:
void resizeEvent (QResizeEvent *);
private:
QMultiLineEdit *abouttext;
LogoWidget *logo;
QPushButton *ok;
};
#endif /* about.h */