diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-03-30 13:58:33 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-03-30 13:58:33 +0300 |
commit | 74b22318b8df6c1e9355b73a16bb755a5178b8d6 (patch) | |
tree | 538c9e62d606c6718fa64f8c8f2ad42e4aefc1ad /src/komposesystray.h | |
download | kompose-74b22318b8df6c1e9355b73a16bb755a5178b8d6.tar.gz kompose-74b22318b8df6c1e9355b73a16bb755a5178b8d6.zip |
Initial commit (KDE3 version)
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/komposesystray.h')
-rw-r--r-- | src/komposesystray.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/komposesystray.h b/src/komposesystray.h new file mode 100644 index 0000000..e649ee1 --- /dev/null +++ b/src/komposesystray.h @@ -0,0 +1,47 @@ +// +// C++ Interface: komposesystray +// +// Description: +// +// +// Author: Hans Oischinger <hans.oischinger@kde-mail.net>, (C) 2004 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef KOMPOSESYSTRAY_H +#define KOMPOSESYSTRAY_H + +#include <ksystemtray.h> + +#include <qimage.h> + +class KAction; +class KGlobalAccel; +class KPopupMenu; + +/** +@author Hans Oischinger +*/ +class KomposeSysTray : public KSystemTray +{ + Q_OBJECT +public: + KomposeSysTray(QWidget *parent = 0, const char *name = 0); + ~KomposeSysTray(); + + void currentDesktopChanged(int desktop); + +protected: + void mouseReleaseEvent (QMouseEvent *); + void mousePressEvent (QMouseEvent *); + +protected slots: + void slotConfigChanged(); + +private: + KPopupMenu *menu; + QImage icon; +}; + +#endif |