diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-24 14:08:05 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2013-02-18 21:04:24 (GMT) |
commit | 5a96ffd04b2eb10d32bf83f98e0437b3d12f9cc5 (patch) | |
tree | d2412e0269370a393c8c30184b298e15eb519b1e /src/FbCommands.hh | |
parent | adc4d926020fe170cb29c7fac6e30334f96bb51b (diff) | |
download | fluxbox_pavel-5a96ffd04b2eb10d32bf83f98e0437b3d12f9cc5.zip fluxbox_pavel-5a96ffd04b2eb10d32bf83f98e0437b3d12f9cc5.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 bd377f5..25d1227 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: |