From 2bda8f7717adf28da4af0d34fb82f63d2868c31d Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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/kdeutils@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- superkaramba/src/systemtray.h | 69 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 superkaramba/src/systemtray.h (limited to 'superkaramba/src/systemtray.h') diff --git a/superkaramba/src/systemtray.h b/superkaramba/src/systemtray.h new file mode 100644 index 0000000..768e00c --- /dev/null +++ b/superkaramba/src/systemtray.h @@ -0,0 +1,69 @@ +/* + *************************************************************************** + copyright (C) 2003 Adam Geitgey + 2003 Sven Leiber + 2000-2001 Matthias Ettrich + 2000-2001 Matthias Elter + 2001 Carsten Pfeiffer + 2001 Martijn Klingens + *************************************************************************** + + *************************************************************************** + * * + * 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 TESTCARDAPPLET_H +#define TESTCARDAPPLET_H + +#include +#include +#include +#include + +class KWinModule; + +typedef long unsigned int Atom; + + +class Systemtray : public QWidget +{ + Q_OBJECT +public: + Systemtray(QWidget* parent); + ~Systemtray(); + + void updateBackgroundPixmap ( const QPixmap & ); + + int getCurrentWindowCount(); + + virtual void initSystray( void ); + +public slots: + void updateTrayWindows(); + int getTraySize(); + void systemTrayWindowAdded( WId w ); + void systemTrayWindowRemoved( WId w ); + void layoutSystray(); + +signals: + void updated(); + +private: + KWinModule *kwin_module; + QValueList systemTrayWindows; + + QPtrList m_Wins; + + Atom net_system_tray_selection; + Atom net_system_tray_opcode; + + int no_of_systray_windows; +}; + +#endif -- cgit v1.2.1