diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-24 14:08:05 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2012-04-07 02:11:33 (GMT) |
commit | 63043b396d4fb5b5d71dc1c5c92a293abc9254ca (patch) | |
tree | 2494ae54ffabdaccb984dca032e63129b3a3e7cc /src/FbCommands.hh | |
parent | 801df07362a4d4b0038d2410be001e43cdc74395 (diff) | |
download | fluxbox_paul-63043b396d4fb5b5d71dc1c5c92a293abc9254ca.zip fluxbox_paul-63043b396d4fb5b5d71dc1c5c92a293abc9254ca.tar.bz2 |
(More-or-less complete) conversion of keys file to lua
keybindings are added by calling the addBinding method of default_keymode. It keys two
parameters: the keys to which the action is bound to and the action itself. The action can be
specified as a string (which is passed to CommandParser) or as a lua function.
Support for multiple keymodes is forthcoming. For the time being, I removed the BindKey and
KeyMode commands, as they will take a bit different form.
Diffstat (limited to 'src/FbCommands.hh')
-rw-r--r-- | src/FbCommands.hh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/FbCommands.hh b/src/FbCommands.hh index ef9812b..7355428 100644 --- a/src/FbCommands.hh +++ b/src/FbCommands.hh | |||
@@ -106,15 +106,6 @@ private: | |||
106 | std::string m_filename; | 106 | std::string m_filename; |
107 | }; | 107 | }; |
108 | 108 | ||
109 | class KeyModeCmd: public FbTk::Command<void> { | ||
110 | public: | ||
111 | explicit KeyModeCmd(const std::string &arguments); | ||
112 | void execute(); | ||
113 | private: | ||
114 | std::string m_keymode; | ||
115 | std::string m_end_args; | ||
116 | }; | ||
117 | |||
118 | class HideMenuCmd: public FbTk::Command<void> { | 109 | class HideMenuCmd: public FbTk::Command<void> { |
119 | public: | 110 | public: |
120 | void execute(); | 111 | void execute(); |
@@ -188,14 +179,6 @@ public: | |||
188 | void execute(); | 179 | void execute(); |
189 | }; | 180 | }; |
190 | 181 | ||
191 | class BindKeyCmd: public FbTk::Command<void> { | ||
192 | public: | ||
193 | BindKeyCmd(const std::string &keybind); | ||
194 | void execute(); | ||
195 | private: | ||
196 | const std::string m_keybind; | ||
197 | }; | ||
198 | |||
199 | /// deiconifies iconified windows | 182 | /// deiconifies iconified windows |
200 | class DeiconifyCmd: public FbTk::Command<void> { | 183 | class DeiconifyCmd: public FbTk::Command<void> { |
201 | public: | 184 | public: |