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/anylnk/MenuLnk.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/anylnk/MenuLnk.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/applets/keyhelper/keyhelperapplet/anylnk/MenuLnk.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/noncore/applets/keyhelper/keyhelperapplet/anylnk/MenuLnk.h b/noncore/applets/keyhelper/keyhelperapplet/anylnk/MenuLnk.h new file mode 100644 index 0000000..19f75d6 --- a/dev/null +++ b/noncore/applets/keyhelper/keyhelperapplet/anylnk/MenuLnk.h | |||
@@ -0,0 +1,41 @@ | |||
1 | #ifndef _MENULNK_H_ | ||
2 | #define _MENULNK_H_ | ||
3 | |||
4 | #include <qpe/qpeapplication.h> | ||
5 | |||
6 | #include "AnyLnk.h" | ||
7 | #include "ConfigEx.h" | ||
8 | |||
9 | class MenuLnk : public AnyLnk | ||
10 | { | ||
11 | public: | ||
12 | MenuLnk(){} | ||
13 | MenuLnk(const QStringList& params) | ||
14 | : AnyLnk(params){} | ||
15 | virtual ~MenuLnk() { | ||
16 | } | ||
17 | |||
18 | virtual bool isValid() { | ||
19 | ConfigEx& cfg = ConfigEx::getInstance("keyhelper"); | ||
20 | QString group = cfg.getGroup(); | ||
21 | cfg.setGroup(name()); | ||
22 | bool valid = (cfg.getKeys().isEmpty() == false); | ||
23 | cfg.setGroup(group); | ||
24 | return(valid); | ||
25 | } | ||
26 | virtual void execute() { | ||
27 | } | ||
28 | virtual QString name() { | ||
29 | QString group; | ||
30 | group = m_params[1]; | ||
31 | group[0] = group[0].upper(); | ||
32 | return(group); | ||
33 | } | ||
34 | virtual const QPixmap& pixmap() { | ||
35 | return(m_pixmap); | ||
36 | } | ||
37 | protected: | ||
38 | }; | ||
39 | |||
40 | #endif /* _MENULNK_H_ */ | ||
41 | |||