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>2011-11-01 09:57:23 (GMT)
commit8ee8a7798c73731724a8e982ed027394a45f6b58 (patch)
treeea12ca08f17eea045301d0be846b170eb35deaad /src/FbCommands.hh
parentab0fd035167f053966225a239dae189d5f439ecd (diff)
downloadfluxbox_pavel-8ee8a7798c73731724a8e982ed027394a45f6b58.zip
fluxbox_pavel-8ee8a7798c73731724a8e982ed027394a45f6b58.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 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
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: