blob: aabb6ebd175ddea6aebd92fdc95f1d4e1219bafa (
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
|
#ifndef _KEY_HELPER_H_
#define _KEY_HELPER_H_
#include <qdir.h>
#include <qwindowsystem_qws.h>
#include "KeyNames.h"
#include "KeyMappings.h"
#include "KeyModifiers.h"
#include "KeyExtensions.h"
#include "KeyRepeater.h"
#include "KeyAction.h"
#include "KeycfgReader.h"
class KeyHelper : public QWSServer::KeyboardFilter
{
public:
KeyHelper();
virtual ~KeyHelper();
bool filter(int unicode, int keycode, int modifiers,
bool isPress, bool autoRepeat);
void enable();
void disable();
void set();
void unset();
void statistics();
void dumpkeymap();
bool reload(const QString& file=QString::null);
private:
friend class KeyHelperWidget;
bool load(const QString& file=QString::null);
void setDefault();
KeyAction m_oAction;
KeyMappings m_oMappings;
KeyModifiers m_oModifiers;
KeyExtensions m_oExtensions;
KeyRepeater m_oRepeater;
};
#endif /* _KEY_HELPER_H_ */
|