summaryrefslogtreecommitdiffstats
path: root/karm/tray.h
blob: 134e34fa632979a26221b1faa18b6d0ece3a2b52 (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 <kpopupmenu.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
{
  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:
    TDEPopupMenu *trayPopupMenu;
    TQPopupMenu *trayPopupMenu2;
    */
};

#endif // KARM_TRAY_H