blob: 3e1ae2c05ed3771fef5efbaf765e24c6206ce0c2 (
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
|
//
// C++ Interface: kxkbtraywindow
//
// Description:
//
//
// Author: Andriy Rysin <rysin@kde.org>, (C) 2006
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KXKBSYSTEMTRAY_H
#define KXKBSYSTEMTRAY_H
#include <ksystemtray.h>
#include <tqstring.h>
#include <tqvaluelist.h>
#include "layoutunit.h"
class XkbRules;
class KxkbConfig;
class LayoutIconManager;
class KxkbSystemTray : public KSystemTray
{
TQ_OBJECT
public:
KxkbSystemTray(KxkbConfig *kxkbConfig);
~KxkbSystemTray();
void initLayoutList(const TQValueList<LayoutUnit>& layouts, const XkbRules& rule);
void setCurrentLayout(const LayoutUnit& layout);
void setError(const TQString& layoutInfo = TQString::null);
enum { START_MENU_ID = 100, CONFIG_MENU_ID = 130, HELP_MENU_ID = 131 };
protected:
void mouseReleaseEvent(TQMouseEvent *ev);
private slots:
void setToolTip(const TQString& tip);
void setPixmap(const TQPixmap& pix);
signals:
void menuActivated(int);
void toggled();
private:
LayoutIconManager *m_icoMgr;
int m_prevLayoutCount;
TQMap<TQString, TQString> m_descriptionMap;
};
#endif
|