aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-24 14:08:05 (GMT)
committerPavel Labath <pavelo@centrum.sk>2013-02-18 21:04:24 (GMT)
commit5a96ffd04b2eb10d32bf83f98e0437b3d12f9cc5 (patch)
treed2412e0269370a393c8c30184b298e15eb519b1e /src/FbCommands.hh
parentadc4d926020fe170cb29c7fac6e30334f96bb51b (diff)
downloadfluxbox_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.hh17
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
109class KeyModeCmd: public FbTk::Command<void> {
110public:
111 explicit KeyModeCmd(const std::string &arguments);
112 void execute();
113private:
114 std::string m_keymode;
115 std::string m_end_args;
116};
117
118class HideMenuCmd: public FbTk::Command<void> { 109class HideMenuCmd: public FbTk::Command<void> {
119public: 110public:
120 void execute(); 111 void execute();
@@ -188,14 +179,6 @@ public:
188 void execute(); 179 void execute();
189}; 180};
190 181
191class BindKeyCmd: public FbTk::Command<void> {
192public:
193 BindKeyCmd(const std::string &keybind);
194 void execute();
195private:
196 const std::string m_keybind;
197};
198
199/// deiconifies iconified windows 182/// deiconifies iconified windows
200class DeiconifyCmd: public FbTk::Command<void> { 183class DeiconifyCmd: public FbTk::Command<void> {
201public: 184public: