summaryrefslogtreecommitdiffstats
path: root/karm/tray.h
blob: 1740a222d98368a9c69c4f1731e09675a7be8ee2 (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
59
#ifndef KARM_TRAY_H
#define KARM_TRAY_H

#include <tqptrvector.h>
#include <tqpixmap.h>
#include <tqptrlist.h>
// experiement
// #include <tdepopupmenu.h>
#include <ksystemtray.h>

#include "task.h"
#include "karm_part.h"

class KarmPart;

class TQPopupMenu;
class TQTimer;

class KSystemTray;
class MainWindow;
// experiment
// class TDEPopupMenu;

class KarmTray : public KSystemTray
{
  TQ_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:
    TDEPopupMenu *trayPopupMenu;
    TQPopupMenu *trayPopupMenu2;
    */
};

#endif // KARM_TRAY_H