summaryrefslogtreecommitdiffstats
path: root/karm/tray.h
blob: 6868e060b19bf7deb580222e54cc38b2d1ba82c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef KARM_TRAY_H
#define KARM_TRAY_H

#include <tqptrvector.h>
#include <tqpixmap.h>
#include <tqptrlist.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 TQPtrVector<TQPixmap> *icons;
    TQTimer *_taskActiveTimer;

  public slots:
    void startClock();
    void stopClock();
    void resetClock();
    void updateToolTip( TQPtrList<Task> activeTasks);
    void initToolTip();

  protected slots:
    void advanceClock();
    
  // experiment
  /*
    void insertTitle(TQString title);

  private:
    KPopupMenu *trayPopupMenu;
    TQPopupMenu *trayPopupMenu2;
    */
};

#endif // KARM_TRAY_H