aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommandFactory.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-07-01 21:01:31 (GMT)
committermarkt <markt>2007-07-01 21:01:31 (GMT)
commit69d63da5420965216f2cd6a756301c70f6c32284 (patch)
tree919c3f48fb5ed1318d5376283ba5fc16f612003e /src/FbCommandFactory.cc
parent7783a8c84e57c4a58d270b9722800a031f50ed62 (diff)
downloadfluxbox-69d63da5420965216f2cd6a756301c70f6c32284.zip
fluxbox-69d63da5420965216f2cd6a756301c70f6c32284.tar.bz2
added key commands :AddWorkspace and :RemoveLastWorkspace
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r--src/FbCommandFactory.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc
index f1f7276..1382c89 100644
--- a/src/FbCommandFactory.cc
+++ b/src/FbCommandFactory.cc
@@ -60,6 +60,7 @@ static int getint(const char *str, int defaultvalue) {
60FbCommandFactory::FbCommandFactory() { 60FbCommandFactory::FbCommandFactory() {
61 // setup commands that we can handle 61 // setup commands that we can handle
62 const char* commands[] = { 62 const char* commands[] = {
63 "addworkspace",
63 "arrangewindows", 64 "arrangewindows",
64 "bindkey", 65 "bindkey",
65 "close", 66 "close",
@@ -115,6 +116,7 @@ FbCommandFactory::FbCommandFactory() {
115 "reconfig", 116 "reconfig",
116 "reconfigure", 117 "reconfigure",
117 "reloadstyle", 118 "reloadstyle",
119 "removelastworkspace",
118 "resizeto", 120 "resizeto",
119 "resize", 121 "resize",
120 "resizehorizontal", 122 "resizehorizontal",
@@ -232,6 +234,10 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
232 return new SetResourceValueCmd(name, value); 234 return new SetResourceValueCmd(name, value);
233 } else if (command == "setresourcevaluedialog") 235 } else if (command == "setresourcevaluedialog")
234 return new SetResourceValueDialogCmd(); 236 return new SetResourceValueDialogCmd();
237 else if (command == "addworkspace")
238 return new AddWorkspaceCmd();
239 else if (command == "removelastworkspace")
240 return new RemoveLastWorkspaceCmd();
235 // 241 //
236 // Current focused window commands 242 // Current focused window commands
237 // 243 //