diff options
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r-- | src/FbCommands.cc | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 2c9805c..7b989bb 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -260,23 +260,6 @@ void SetStyleCmd::execute() { | |||
260 | *Fluxbox::instance()->getStyleResource() = m_filename; | 260 | *Fluxbox::instance()->getStyleResource() = m_filename; |
261 | } | 261 | } |
262 | 262 | ||
263 | REGISTER_COMMAND_WITH_ARGS(keymode, FbCommands::KeyModeCmd, void); | ||
264 | |||
265 | KeyModeCmd::KeyModeCmd(const string &arguments):m_keymode(arguments),m_end_args("None Escape") { | ||
266 | string::size_type second_pos = m_keymode.find_first_of(" \t", 0); | ||
267 | if (second_pos != string::npos) { | ||
268 | // ok we have arguments, parsing them here | ||
269 | m_end_args = m_keymode.substr(second_pos); | ||
270 | m_keymode.erase(second_pos); // remove argument from command | ||
271 | } | ||
272 | if (m_keymode != "default") | ||
273 | Fluxbox::instance()->keys()->addBinding(m_keymode + ": " + m_end_args + " :keymode default"); | ||
274 | } | ||
275 | |||
276 | void KeyModeCmd::execute() { | ||
277 | Fluxbox::instance()->keys()->keyMode(m_keymode); | ||
278 | } | ||
279 | |||
280 | REGISTER_COMMAND(hidemenus, FbCommands::HideMenuCmd, void); | 263 | REGISTER_COMMAND(hidemenus, FbCommands::HideMenuCmd, void); |
281 | 264 | ||
282 | void HideMenuCmd::execute() { | 265 | void HideMenuCmd::execute() { |
@@ -449,21 +432,6 @@ void SetResourceValueDialogCmd::execute() { | |||
449 | win->show(); | 432 | win->show(); |
450 | } | 433 | } |
451 | 434 | ||
452 | REGISTER_UNTRUSTED_COMMAND_WITH_ARGS(bindkey, FbCommands::BindKeyCmd, void); | ||
453 | |||
454 | BindKeyCmd::BindKeyCmd(const string &keybind):m_keybind(keybind) { } | ||
455 | |||
456 | void BindKeyCmd::execute() { | ||
457 | if (Fluxbox::instance()->keys() != 0) { | ||
458 | if (Fluxbox::instance()->keys()->addBinding(m_keybind)) { | ||
459 | ofstream ofile(Fluxbox::instance()->getKeysResource()->c_str(), ios::app); | ||
460 | if (!ofile) | ||
461 | return; | ||
462 | ofile<<m_keybind<<endl; | ||
463 | } | ||
464 | } | ||
465 | } | ||
466 | |||
467 | FbTk::Command<void> *DeiconifyCmd::parse(const string &command, const string &args, | 435 | FbTk::Command<void> *DeiconifyCmd::parse(const string &command, const string &args, |
468 | bool trusted) { | 436 | bool trusted) { |
469 | FbTk_istringstream iss(args.c_str()); | 437 | FbTk_istringstream iss(args.c_str()); |