diff options
author | fluxgen <fluxgen> | 2004-02-20 19:40:31 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2004-02-20 19:40:31 (GMT) |
commit | afb137c7881c622547de6a4d91fc5c18cfe4d4aa (patch) | |
tree | 754fdf136e4b9202f16d43ef9671e550820e0e62 /src/FbCommandFactory.cc | |
parent | b566b0d970f9074835e4c2480aa740e34579edb1 (diff) | |
download | fluxbox_pavel-afb137c7881c622547de6a4d91fc5c18cfe4d4aa.zip fluxbox_pavel-afb137c7881c622547de6a4d91fc5c18cfe4d4aa.tar.bz2 |
added SendToNextWorkspace and SendToPrevWorkspace, patch from Mathias Gumz
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r-- | src/FbCommandFactory.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc index 9e4ec8f..a275446 100644 --- a/src/FbCommandFactory.cc +++ b/src/FbCommandFactory.cc | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: FbCommandFactory.cc,v 1.26 2004/01/21 14:11:42 fluxgen Exp $ | 23 | // $Id: FbCommandFactory.cc,v 1.27 2004/02/20 19:40:31 fluxgen Exp $ |
24 | 24 | ||
25 | #include "FbCommandFactory.hh" | 25 | #include "FbCommandFactory.hh" |
26 | 26 | ||
@@ -108,6 +108,8 @@ FbCommandFactory::FbCommandFactory() { | |||
108 | "rootmenu", | 108 | "rootmenu", |
109 | "saverc", | 109 | "saverc", |
110 | "sendtoworkspace", | 110 | "sendtoworkspace", |
111 | "sendtonextworkspace", | ||
112 | "sendtoprevworkspace", | ||
111 | "setstyle", | 113 | "setstyle", |
112 | "setworkspacename", | 114 | "setworkspacename", |
113 | "setworkspacenamedialog", | 115 | "setworkspacenamedialog", |
@@ -235,6 +237,10 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command, | |||
235 | return new CurrentWindowCmd(&FluxboxWindow::toggleDecoration); | 237 | return new CurrentWindowCmd(&FluxboxWindow::toggleDecoration); |
236 | else if (command == "sendtoworkspace") | 238 | else if (command == "sendtoworkspace") |
237 | return new SendToWorkspaceCmd(atoi(arguments.c_str()) - 1); // make 1-indexed to user | 239 | return new SendToWorkspaceCmd(atoi(arguments.c_str()) - 1); // make 1-indexed to user |
240 | else if (command == "sendtonextworkspace") | ||
241 | return new SendToNextWorkspaceCmd(atoi(arguments.c_str())); | ||
242 | else if (command == "sendtoprevworkspace") | ||
243 | return new SendToPrevWorkspaceCmd(atoi(arguments.c_str())); | ||
238 | else if (command == "killwindow") | 244 | else if (command == "killwindow") |
239 | return new KillWindowCmd(); | 245 | return new KillWindowCmd(); |
240 | else if (command == "nexttab") | 246 | else if (command == "nexttab") |