From 188d53a879f1c61c95f0c281c3100b08e57df2f4 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 27 Feb 2002 23:43:41 +0000 Subject: added remove/add workspace --- src/Workspacemenu.cc | 21 ++++++++++++++++++++- src/Workspacemenu.hh | 12 +++++------- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/Workspacemenu.cc b/src/Workspacemenu.cc index 29033fa..dace287 100644 --- a/src/Workspacemenu.cc +++ b/src/Workspacemenu.cc @@ -1,3 +1,5 @@ +// Workspacemenu.cc for Fluxbox +// Copyright (c) 2002 Henrik Kinnunen (fluxgen@linuxmail.org) // Workspacemenu.cc for Blackbox - an X11 Window manager // Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net) // @@ -35,7 +37,8 @@ #include "Toolbar.hh" #include "Workspacemenu.hh" #include "Workspace.hh" - +#include +#include Workspacemenu::Workspacemenu(BScreen *scrn) : Basemenu(scrn) { screen = scrn; @@ -82,3 +85,19 @@ void Workspacemenu::itemSelected(int button, int index) { hide(); } } + +void Workspacemenu::removeWorkspace(unsigned int id) { + if (idgetName(), wkspc->getMenu(), + wkspc->getWorkspaceID() + 2); +} diff --git a/src/Workspacemenu.hh b/src/Workspacemenu.hh index fc18654..80732b2 100644 --- a/src/Workspacemenu.hh +++ b/src/Workspacemenu.hh @@ -1,3 +1,5 @@ +// Workspacemenu.hh for Fluxbox +// Copyright (c) 2002 Henrik Kinnunen (fluxgen@linuxmail.org) // WorkspaceMenu.hh for Blackbox - an X11 Window manager // Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net) // @@ -22,24 +24,20 @@ #ifndef WORKSPACEMENU_HH #define WORKSPACEMENU_HH -// forward declaration -class Workspacemenu; -class Toolbar; - #include "Basemenu.hh" - +class Workspace; class Workspacemenu : public Basemenu { private: BScreen *screen; - protected: virtual void itemSelected(int, int); - public: Workspacemenu(BScreen *); + void removeWorkspace(unsigned int id); + void addWorkspace(Workspace *wkspc); }; -- cgit v0.11.2