all repos — fluxbox @ fbceff651a4e93638e7d44ab6a35ee3622793ff4

custom fork of the fluxbox windowmanager

new actions, CommandDialog and SetWorkspaceNameDialog
fluxgen fluxgen
commit

fbceff651a4e93638e7d44ab6a35ee3622793ff4

parent

1ad9f53d1076596540865d70c5a815385d2823de

1 files changed, 13 insertions(+), 3 deletions(-)

jump to
M src/FbCommandFactory.ccsrc/FbCommandFactory.cc

@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommandFactory.cc,v 1.21 2003/12/03 22:13:21 fluxgen Exp $ +// $Id: FbCommandFactory.cc,v 1.22 2003/12/19 03:55:10 fluxgen Exp $ #include "FbCommandFactory.hh"

@@ -62,6 +62,7 @@ // setup commands that we can handle

const char* commands[] = { "arrangewindows", "close", + "commanddialog", "detachclient", "exec", "execcommand",

@@ -108,6 +109,7 @@ "saverc",

"sendtoworkspace", "setstyle", "setworkspacename", + "setworkspacenamedialog", "shade", "shadewindow", "showdesktop",

@@ -147,6 +149,8 @@ else if (command == "execcommand" || command == "execute" || command == "exec")

return new ExecuteCmd(arguments); // execute command on key screen else if (command == "quit") return new FbTk::SimpleCommand<Fluxbox>(*Fluxbox::instance(), &Fluxbox::shutdown); + else if (command == "commanddialog") // run specified fluxbox command + return new CommandDialogCmd(); // // Current focused window commands //

@@ -252,8 +256,14 @@ else if (command == "rootmenu")

return new ShowRootMenuCmd(); else if (command == "workspacemenu") return new ShowWorkspaceMenuCmd(); - else if (command == "setworkspacename") - return new SetWorkspaceNameCmd(); + else if (command == "setworkspacename") { + if (arguments.empty()) + return new SetWorkspaceNameCmd("empty"); + else + return new SetWorkspaceNameCmd(arguments); + } + else if (command == "setworkspacenamedialog") + return new WorkspaceNameDialogCmd(); // // special commands //