diff options
author | fluxgen <fluxgen> | 2003-08-19 23:37:31 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-19 23:37:31 (GMT) |
commit | 5749014fa76f6019d0507776bcadec12bae54635 (patch) | |
tree | 5c846471ba97eec7822cd08dfc11ab7c840dddc9 /src/FbCommandFactory.cc | |
parent | 6d1ac53b5f99c098b149e472143d46df68378347 (diff) | |
download | fluxbox-5749014fa76f6019d0507776bcadec12bae54635.zip fluxbox-5749014fa76f6019d0507776bcadec12bae54635.tar.bz2 |
added resizehorizontal and resizevertical, patch from Mathias Gumz
Diffstat (limited to 'src/FbCommandFactory.cc')
-rw-r--r-- | src/FbCommandFactory.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc index 237442a..168aa22 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.11 2003/07/28 12:05:27 fluxgen Exp $ | 23 | // $Id: FbCommandFactory.cc,v 1.12 2003/08/19 23:37:31 fluxgen Exp $ |
24 | 24 | ||
25 | #include "FbCommandFactory.hh" | 25 | #include "FbCommandFactory.hh" |
26 | 26 | ||
@@ -38,7 +38,7 @@ FbCommandFactory FbCommandFactory::s_autoreg; | |||
38 | 38 | ||
39 | FbCommandFactory::FbCommandFactory() { | 39 | FbCommandFactory::FbCommandFactory() { |
40 | // setup commands that we can handle | 40 | // setup commands that we can handle |
41 | const char commands[][30] = { | 41 | const char commands[][32] = { |
42 | "setstyle", | 42 | "setstyle", |
43 | "saverc", | 43 | "saverc", |
44 | "reconfigure", | 44 | "reconfigure", |
@@ -54,6 +54,8 @@ FbCommandFactory::FbCommandFactory() { | |||
54 | "maximize", | 54 | "maximize", |
55 | "maximizevertical", | 55 | "maximizevertical", |
56 | "maximizehorizontal", | 56 | "maximizehorizontal", |
57 | "resizevertical", | ||
58 | "resizehorizontal", | ||
57 | "moveright", | 59 | "moveright", |
58 | "moveleft", | 60 | "moveleft", |
59 | "moveup", | 61 | "moveup", |
@@ -125,6 +127,10 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command, | |||
125 | return new CurrentWindowCmd(&FluxboxWindow::maximizeVertical); | 127 | return new CurrentWindowCmd(&FluxboxWindow::maximizeVertical); |
126 | else if (command == "maximizehorizontal") | 128 | else if (command == "maximizehorizontal") |
127 | return new CurrentWindowCmd(&FluxboxWindow::maximizeHorizontal); | 129 | return new CurrentWindowCmd(&FluxboxWindow::maximizeHorizontal); |
130 | else if (command == "resizehorizontal") | ||
131 | return new ResizeHorizontalCmd(atoi(arguments.c_str())); | ||
132 | else if (command == "resizevertical") | ||
133 | return new ResizeVerticalCmd(atoi(arguments.c_str())); | ||
128 | else if (command == "moveright") | 134 | else if (command == "moveright") |
129 | return new MoveRightCmd(atoi(arguments.c_str())); | 135 | return new MoveRightCmd(atoi(arguments.c_str())); |
130 | else if (command == "moveleft") | 136 | else if (command == "moveleft") |