Diffstat (limited to 'noncore/applets/autorotateapplet/autorotate.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/applets/autorotateapplet/autorotate.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/noncore/applets/autorotateapplet/autorotate.h b/noncore/applets/autorotateapplet/autorotate.h new file mode 100644 index 0000000..e05e7a0 --- a/dev/null +++ b/noncore/applets/autorotateapplet/autorotate.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /* | ||
2 | * copyright : (c) 2003 by Greg Gilbert | ||
3 | * email : greg@treke.net | ||
4 | * based on the cardmon applet by Max Reiss | ||
5 | * * | ||
6 | * This program is free software; you can redistribute it and/or modify * | ||
7 | * it under the terms of the GNU General Public License as published by * | ||
8 | * the Free Software Foundation; either version 2 of the License, or * | ||
9 | * (at your option) any later version. * | ||
10 | * * | ||
11 | *************************************************************************/ | ||
12 | |||
13 | #ifndef AUTOROTATE_H | ||
14 | #define AUTOROTATE_H | ||
15 | |||
16 | #include <qwidget.h> | ||
17 | #include <qpixmap.h> | ||
18 | #include <qpopupmenu.h> | ||
19 | |||
20 | class AutoRotate : public QWidget { | ||
21 | Q_OBJECT | ||
22 | public: | ||
23 | AutoRotate( QWidget *parent = 0 ); | ||
24 | ~AutoRotate(); | ||
25 | |||
26 | private slots: | ||
27 | |||
28 | protected: | ||
29 | void paintEvent( QPaintEvent* ); | ||
30 | void mousePressEvent( QMouseEvent * ); | ||
31 | private: | ||
32 | bool isRotateEnabled(); | ||
33 | void setRotateEnabled(bool); | ||
34 | QPixmap enabledPm; | ||
35 | QPixmap disabledPm; | ||
36 | void iconShow(); | ||
37 | QPopupMenu *popupMenu; | ||
38 | }; | ||
39 | |||
40 | #endif | ||
41 | |||