summaryrefslogtreecommitdiff
path: root/noncore/applets/autorotateapplet/autorotate.h
authortreke <treke>2003-12-09 03:23:20 (UTC)
committer treke <treke>2003-12-09 03:23:20 (UTC)
commit1538a521b674d2eff02b926c0d82fa6184dd99db (patch) (unidiff)
treec4e0c870e034275c31c901578f1e09527bc3361d /noncore/applets/autorotateapplet/autorotate.h
parent0526dfbd3053dd89706f615e2549adfea8b87553 (diff)
downloadopie-1538a521b674d2eff02b926c0d82fa6184dd99db.zip
opie-1538a521b674d2eff02b926c0d82fa6184dd99db.tar.gz
opie-1538a521b674d2eff02b926c0d82fa6184dd99db.tar.bz2
Applet for turning on and off automatic rotation
Diffstat (limited to 'noncore/applets/autorotateapplet/autorotate.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/autorotateapplet/autorotate.h41
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
20class AutoRotate : public QWidget {
21 Q_OBJECT
22public:
23 AutoRotate( QWidget *parent = 0 );
24 ~AutoRotate();
25
26private slots:
27
28protected:
29 void paintEvent( QPaintEvent* );
30 void mousePressEvent( QMouseEvent * );
31private:
32 bool isRotateEnabled();
33 void setRotateEnabled(bool);
34 QPixmap enabledPm;
35 QPixmap disabledPm;
36 void iconShow();
37 QPopupMenu *popupMenu;
38 };
39
40#endif
41