summaryrefslogtreecommitdiff
path: root/noncore/applets/keyhelper/keyhelperapplet/applet/KeyHelper.h
Unidiff
Diffstat (limited to 'noncore/applets/keyhelper/keyhelperapplet/applet/KeyHelper.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/keyhelper/keyhelperapplet/applet/KeyHelper.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/noncore/applets/keyhelper/keyhelperapplet/applet/KeyHelper.h b/noncore/applets/keyhelper/keyhelperapplet/applet/KeyHelper.h
new file mode 100644
index 0000000..aabb6eb
--- a/dev/null
+++ b/noncore/applets/keyhelper/keyhelperapplet/applet/KeyHelper.h
@@ -0,0 +1,42 @@
1#ifndef _KEY_HELPER_H_
2#define _KEY_HELPER_H_
3
4#include <qdir.h>
5#include <qwindowsystem_qws.h>
6#include "KeyNames.h"
7#include "KeyMappings.h"
8#include "KeyModifiers.h"
9#include "KeyExtensions.h"
10#include "KeyRepeater.h"
11#include "KeyAction.h"
12#include "KeycfgReader.h"
13
14class KeyHelper : public QWSServer::KeyboardFilter
15{
16public:
17 KeyHelper();
18 virtual ~KeyHelper();
19 bool filter(int unicode, int keycode, int modifiers,
20 bool isPress, bool autoRepeat);
21
22 void enable();
23 void disable();
24 void set();
25 void unset();
26 void statistics();
27 void dumpkeymap();
28 bool reload(const QString& file=QString::null);
29private:
30 friend class KeyHelperWidget;
31
32 bool load(const QString& file=QString::null);
33 void setDefault();
34
35 KeyAction m_oAction;
36 KeyMappings m_oMappings;
37 KeyModifiers m_oModifiers;
38 KeyExtensions m_oExtensions;
39 KeyRepeater m_oRepeater;
40};
41
42#endif /* _KEY_HELPER_H_ */