-
Notifications
You must be signed in to change notification settings - Fork 0
/
toplevel.h
57 lines (35 loc) · 893 Bytes
/
toplevel.h
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
/* -------------------------------------------------------------
toplevel.h
(C) 1998-1999 by Matthias Hoelzer-Kluepfel (hoelzer@kde.org)
------------------------------------------------------------- */
#ifndef _TOPLEVEL_H_
#define _TOPLEVEL_H_
#include <kapp.h>
#include <ktmainwindow.h>
#include <qpopmenu.h>
#include <qtimer.h>
#include <qpixmap.h>
class TopLevel : public KTMainWindow
{
Q_OBJECT
public:
TopLevel();
~TopLevel();
protected:
void paintEvent(QPaintEvent *);
void mousePressEvent(QMouseEvent *);
void timerEvent(QTimerEvent *);
private slots:
void teaSelected(int index);
void start();
void config();
private:
bool running, ready, frame1;
QStrList teas, times;
int seconds, teatime;
QPopupMenu *menu;
QPixmap *mugPixmap, *bagPixmap, *tea1Pixmap, *tea2Pixmap;
bool beeping, popping;
QString action;
};
#endif