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