From 64387c87065127bbddfebe170823295df78865c5 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 26 Aug 2003 23:52:09 +0000 Subject: added SetWorkspaceNameCmd --- src/FbCommands.cc | 13 ++++++++++++- src/FbCommands.hh | 7 ++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/FbCommands.cc b/src/FbCommands.cc index f8df2da..61e22e7 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc @@ -19,13 +19,14 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.cc,v 1.13 2003/08/11 14:52:10 fluxgen Exp $ +// $Id: FbCommands.cc,v 1.14 2003/08/26 23:52:09 fluxgen Exp $ #include "FbCommands.hh" #include "fluxbox.hh" #include "FbTk/Theme.hh" #include "Screen.hh" #include "Menu.hh" +#include "SetWorkspaceName.hh" #include #include @@ -113,4 +114,14 @@ void ShowRootMenuCmd::execute() { } } +void SetWorkspaceNameCmd::execute() { + + BScreen *screen = Fluxbox::instance()->mouseScreen(); + if (screen == 0) + return; + + SetWorkspaceName *win = new SetWorkspaceName(*screen); + win->show(); +} + }; // end namespace FbCommands diff --git a/src/FbCommands.hh b/src/FbCommands.hh index 04fb9e8..53482f3 100644 --- a/src/FbCommands.hh +++ b/src/FbCommands.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.hh,v 1.8 2003/07/01 20:24:19 fluxgen Exp $ +// $Id: FbCommands.hh,v 1.9 2003/08/26 23:51:16 fluxgen Exp $ // \file contains basic commands to restart, reconfigure, execute command and exit fluxbox @@ -83,6 +83,11 @@ public: void execute(); }; +class SetWorkspaceNameCmd: public FbTk::Command { +public: + void execute(); +}; + }; // end namespace FbCommands #endif // FBCOMMANDS_HH -- cgit v0.11.2