author | alwin <alwin> | 2005-02-28 09:40:30 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-02-28 09:40:30 (UTC) |
commit | 2b64a84d39eeed5681d0ee5068c7d11a01527750 (patch) (unidiff) | |
tree | c8693340dbc5ef5e2f9afa90b690829ddff2c4bd /noncore/applets/keyhelper/keyhelperapplet/applet/KeyHelper.h | |
parent | 61fa699140c5efbb6ba0bf2a62f7e8fbf62976be (diff) | |
download | opie-2b64a84d39eeed5681d0ee5068c7d11a01527750.zip opie-2b64a84d39eeed5681d0ee5068c7d11a01527750.tar.gz opie-2b64a84d39eeed5681d0ee5068c7d11a01527750.tar.bz2 |
other keymapping tool - not working this moment, I have to check it out
- the reason is that the config file is somewhat easier to understand than
from zkbapplet and has a nice config tool.
Please don't put it into any repositories this moment.
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.h | 42 |
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 | |||
14 | class KeyHelper : public QWSServer::KeyboardFilter | ||
15 | { | ||
16 | public: | ||
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); | ||
29 | private: | ||
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_ */ | ||