summaryrefslogtreecommitdiffstats
path: root/src/komposesystray.h
blob: e649ee10d7e77dbf7cb18bafcd3d88a566ad9e82 (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
//
// C++ Interface: komposesystray
//
// Description:
//
//
// Author: Hans Oischinger <[email protected]>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KOMPOSESYSTRAY_H
#define KOMPOSESYSTRAY_H

#include <ksystemtray.h>

#include <qimage.h>

class KAction;
class KGlobalAccel;
class KPopupMenu;

/**
@author Hans Oischinger
*/
class KomposeSysTray : public KSystemTray
{
  Q_OBJECT
public:
  KomposeSysTray(QWidget *parent = 0, const char *name = 0);
  ~KomposeSysTray();

  void currentDesktopChanged(int desktop);

protected:
  void mouseReleaseEvent (QMouseEvent *);
  void mousePressEvent (QMouseEvent *);

protected slots:
  void slotConfigChanged();

private:
  KPopupMenu *menu;
  QImage icon;
};

#endif