From 1538a521b674d2eff02b926c0d82fa6184dd99db Mon Sep 17 00:00:00 2001 From: treke Date: Tue, 09 Dec 2003 03:23:20 +0000 Subject: Applet for turning on and off automatic rotation --- (limited to 'noncore/applets/autorotateapplet/autorotate.h') 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 +#include +#include + +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 + -- cgit v0.9.0.2