added SetWorkspaceNameCmd

This commit is contained in:
fluxgen 2003-08-26 23:52:09 +00:00
parent e984c66191
commit 64387c8706
2 changed files with 18 additions and 2 deletions

View file

@ -19,13 +19,14 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // 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 "FbCommands.hh"
#include "fluxbox.hh" #include "fluxbox.hh"
#include "FbTk/Theme.hh" #include "FbTk/Theme.hh"
#include "Screen.hh" #include "Screen.hh"
#include "Menu.hh" #include "Menu.hh"
#include "SetWorkspaceName.hh"
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
@ -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 }; // end namespace FbCommands

View file

@ -19,7 +19,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // 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 // \file contains basic commands to restart, reconfigure, execute command and exit fluxbox
@ -83,6 +83,11 @@ public:
void execute(); void execute();
}; };
class SetWorkspaceNameCmd: public FbTk::Command {
public:
void execute();
};
}; // end namespace FbCommands }; // end namespace FbCommands
#endif // FBCOMMANDS_HH #endif // FBCOMMANDS_HH