diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 4aed2c8219774f5d797760606b8489a92ddc5163 (patch) | |
tree | 3f8c130f7d269626bf6a9447407ef6c35954426a /kicker/applets/lockout/lockout.h | |
download | tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/applets/lockout/lockout.h')
-rw-r--r-- | kicker/applets/lockout/lockout.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/kicker/applets/lockout/lockout.h b/kicker/applets/lockout/lockout.h new file mode 100644 index 000000000..606870a99 --- /dev/null +++ b/kicker/applets/lockout/lockout.h @@ -0,0 +1,52 @@ +#ifndef LOCKOUT_H +#define LOCKOUT_H + +#include <qevent.h> +#include <qstring.h> +#include <kpanelapplet.h> + +#include "simplebutton.h" + +class QBoxLayout; +class QToolButton; + +class Lockout : public KPanelApplet +{ + Q_OBJECT + +public: + Lockout( const QString& configFile, + QWidget *parent = 0, const char *name = 0 ); + ~Lockout(); + + int widthForHeight(int height) const; + int heightForWidth(int width) const; + +protected: + virtual void mousePressEvent( QMouseEvent * ); + virtual void mouseMoveEvent( QMouseEvent * ); + virtual void mouseReleaseEvent( QMouseEvent * ); + virtual void mouseDoubleClickEvent( QMouseEvent * ); + + virtual bool eventFilter( QObject *, QEvent * ); + +private slots: + void lock(); + void logout(); + + void slotLockPrefs(); + void slotLogoutPrefs(); + void slotTransparent(); + void slotIconChanged(); + +private: + void propagateMouseEvent( QMouseEvent * ); + void checkLayout( int height ) const; + + SimpleButton *lockButton, *logoutButton; + QBoxLayout *layout; + + bool bTransparent; +}; + +#endif // LOCKOUT_H |