~ubuntu-branches/ubuntu/feisty/kdetv/feisty

« back to all changes in this revision

Viewing changes to kdetv/clients/shared/systray.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-09-17 23:25:16 UTC
  • Revision ID: james.westby@ubuntu.com-20050917232516-9wdsn3ckagbqieh8
Tags: upstream-0.8.8
ImportĀ upstreamĀ versionĀ 0.8.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          systray.h  -  description
 
3
                             -------------------
 
4
    begin                : Sun Jul 21 2002
 
5
    copyright            : (C) 2002 by Kevin Hessels
 
6
    email                : khessels@shaw.ca
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef __SYSTRAY_H
 
19
#define __SYSTRAY_H
 
20
 
 
21
#include <ksystemtray.h>
 
22
 
 
23
class KPopupMenu;
 
24
class LibKdetvActions;
 
25
 
 
26
 
 
27
/**
 
28
  *@author Kevin Hessels
 
29
  */
 
30
 
 
31
class SysTray : public KSystemTray
 
32
{
 
33
 
 
34
Q_OBJECT
 
35
 
 
36
public: 
 
37
        SysTray(QWidget *parent = 0, const char *name = 0, KPopupMenu *p = 0, LibKdetvActions *a = 0);
 
38
        ~SysTray();
 
39
 
 
40
protected:
 
41
        virtual void mouseDoubleClickEvent(QMouseEvent *);
 
42
        virtual void mousePressEvent(QMouseEvent *);
 
43
#ifndef QT_NO_WHEELEVENT
 
44
        virtual void wheelEvent(QWheelEvent *);
 
45
#endif
 
46
        
 
47
private:
 
48
        LibKdetvActions *actions;
 
49
        KPopupMenu *menu;
 
50
 
 
51
signals:
 
52
        void doubleClicked();
 
53
        void leftClicked();
 
54
};
 
55
 
 
56
#endif