summaryrefslogtreecommitdiffstats
path: root/karm/tray.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch)
tree67208f7c145782a7e90b123b982ca78d88cc2c87 /karm/tray.h
downloadtdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz
tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.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/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karm/tray.h')
-rw-r--r--karm/tray.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/karm/tray.h b/karm/tray.h
new file mode 100644
index 000000000..34701cff4
--- /dev/null
+++ b/karm/tray.h
@@ -0,0 +1,58 @@
+#ifndef KARM_TRAY_H
+#define KARM_TRAY_H
+
+#include <qptrvector.h>
+#include <qpixmap.h>
+#include <qptrlist.h>
+// experiement
+// #include <kpopupmenu.h>
+#include <ksystemtray.h>
+
+#include "task.h"
+#include "karm_part.h"
+
+class KarmPart;
+
+class QPopupMenu;
+class QTimer;
+
+class KSystemTray;
+class MainWindow;
+// experiment
+// class KPopupMenu;
+
+class KarmTray : public KSystemTray
+{
+ Q_OBJECT
+
+ public:
+ KarmTray(MainWindow * parent);
+ KarmTray(karmPart * parent);
+ ~KarmTray();
+
+ private:
+ int _activeIcon;
+ static QPtrVector<QPixmap> *icons;
+ QTimer *_taskActiveTimer;
+
+ public slots:
+ void startClock();
+ void stopClock();
+ void resetClock();
+ void updateToolTip( QPtrList<Task> activeTasks);
+ void initToolTip();
+
+ protected slots:
+ void advanceClock();
+
+ // experiment
+ /*
+ void insertTitle(QString title);
+
+ private:
+ KPopupMenu *trayPopupMenu;
+ QPopupMenu *trayPopupMenu2;
+ */
+};
+
+#endif // KARM_TRAY_H