summaryrefslogtreecommitdiff
path: root/src/FbCommandFactory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r--src/FbCommandFactory.cc77
1 files changed, 40 insertions, 37 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc
index 237b16c..bdbe305 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.13 2003/08/26 23:53:01 fluxgen Exp $ 23// $Id: FbCommandFactory.cc,v 1.14 2003/08/30 11:59:29 fluxgen Exp $
24 24
25#include "FbCommandFactory.hh" 25#include "FbCommandFactory.hh"
26 26
@@ -38,56 +38,57 @@ FbCommandFactory FbCommandFactory::s_autoreg;
38 38
39FbCommandFactory::FbCommandFactory() { 39FbCommandFactory::FbCommandFactory() {
40 // setup commands that we can handle 40 // setup commands that we can handle
41 const char commands[][32] = { 41 const char commands[][33] = {
42 "setstyle", 42 "arrangewindows",
43 "saverc", 43 "close",
44 "reconfigure", 44 "detachclient",
45 "execcommand",
46 "exec", 45 "exec",
46 "execcommand",
47 "execute", 47 "execute",
48 "quit",
49 "restart",
50 "minimizewindow",
51 "minimize",
52 "iconfiy", 48 "iconfiy",
53 "maximizewindow", 49 "killwindow",
50 "leftworkspace",
51 "lower",
54 "maximize", 52 "maximize",
55 "maximizevertical",
56 "maximizehorizontal", 53 "maximizehorizontal",
57 "resizevertical", 54 "maximizevertical",
58 "resizehorizontal", 55 "maximizewindow",
59 "moveright", 56 "minimize",
57 "minimizewindow",
58 "movedown",
60 "moveleft", 59 "moveleft",
60 "moveright",
61 "movetableft",
62 "movetabright",
61 "moveup", 63 "moveup",
62 "movedown", 64 "nextgroup",
65 "nexttab",
66 "nextwindow",
67 "nextworkspace",
68 "prevgroup",
69 "prevtab",
70 "prevwindow",
71 "prevworkspace",
72 "quit",
63 "raise", 73 "raise",
64 "lower", 74 "reconfigure",
65 "close", 75 "resizehorizontal",
76 "resizevertical",
77 "restart",
78 "rightworkspace",
79 "rootmenu",
80 "saverc",
81 "sendtoworkspace",
82 "setstyle",
83 "setworkspacename",
66 "shade", 84 "shade",
67 "shadewindow", 85 "shadewindow",
86 "showdesktop",
68 "stick", 87 "stick",
69 "stickwindow", 88 "stickwindow",
70 "toggledecor", 89 "toggledecor",
71 "sendtoworkspace",
72 "killwindow",
73 "nexttab",
74 "prevtab",
75 "movetableft",
76 "movetabright",
77 "detachclient",
78 "nextworkspace",
79 "rightworkspace",
80 "leftworkspace",
81 "prevworkspace",
82 "workspace", 90 "workspace",
83 "nextwindow", 91 "workspacemenu",
84 "prevwindow",
85 "nextgroup",
86 "prevgroup",
87 "showdesktop",
88 "arrangewindows",
89 "rootmenu",
90 "setworkspacename",
91 "" 92 ""
92 }; 93 };
93 94
@@ -196,6 +197,8 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
196 return new ShowDesktopCmd(); 197 return new ShowDesktopCmd();
197 else if (command == "rootmenu") 198 else if (command == "rootmenu")
198 return new ShowRootMenuCmd(); 199 return new ShowRootMenuCmd();
200 else if (command == "workspacemenu")
201 return new ShowWorkspaceMenuCmd();
199 else if (command == "setworkspacename") 202 else if (command == "setworkspacename")
200 return new SetWorkspaceNameCmd(); 203 return new SetWorkspaceNameCmd();
201 return 0; 204 return 0;