author | treke <treke> | 2003-12-09 03:23:20 (UTC) |
---|---|---|
committer | treke <treke> | 2003-12-09 03:23:20 (UTC) |
commit | 1538a521b674d2eff02b926c0d82fa6184dd99db (patch) (side-by-side diff) | |
tree | c4e0c870e034275c31c901578f1e09527bc3361d /noncore/applets/autorotateapplet/autorotate.h | |
parent | 0526dfbd3053dd89706f615e2549adfea8b87553 (diff) | |
download | opie-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) (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 @@ +/* + * copyright : (c) 2003 by Greg Gilbert + * email : greg@treke.net + * based on the cardmon applet by Max Reiss + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + *************************************************************************/ + +#ifndef AUTOROTATE_H +#define AUTOROTATE_H + +#include <qwidget.h> +#include <qpixmap.h> +#include <qpopupmenu.h> + +class AutoRotate : public QWidget { + Q_OBJECT +public: + AutoRotate( QWidget *parent = 0 ); + ~AutoRotate(); + +private slots: + +protected: + void paintEvent( QPaintEvent* ); + void mousePressEvent( QMouseEvent * ); +private: + bool isRotateEnabled(); + void setRotateEnabled(bool); + QPixmap enabledPm; + QPixmap disabledPm; + void iconShow(); + QPopupMenu *popupMenu; + }; + +#endif + |