removed add/removeWorkspace and fixed indent
This commit is contained in:
parent
4921925c17
commit
34b2b9637b
2 changed files with 6 additions and 23 deletions
|
@ -86,18 +86,3 @@ void Workspacemenu::itemSelected(int button, int index) {
|
|||
}
|
||||
}
|
||||
|
||||
void Workspacemenu::removeWorkspace(unsigned int id) {
|
||||
if (id<getCount()) {
|
||||
remove(id+2); // + 2 is where workspaces starts
|
||||
#ifdef DEBUG
|
||||
using namespace std;
|
||||
cerr<<__FILE__<<"("<<__LINE__<<"): Removing "<<id<<endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
void Workspacemenu::addWorkspace(Workspace *wkspc) {
|
||||
assert(wkspc);
|
||||
insert(wkspc->getName(), wkspc->getMenu(),
|
||||
wkspc->getWorkspaceID() + 2);
|
||||
}
|
||||
|
|
|
@ -15,29 +15,27 @@
|
|||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// 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.
|
||||
|
||||
#ifndef WORKSPACEMENU_HH
|
||||
#define WORKSPACEMENU_HH
|
||||
#ifndef WORKSPACEMENU_HH
|
||||
#define WORKSPACEMENU_HH
|
||||
|
||||
#include "Basemenu.hh"
|
||||
class Workspace;
|
||||
|
||||
class Workspacemenu : public Basemenu {
|
||||
private:
|
||||
BScreen *screen;
|
||||
BScreen *screen;
|
||||
|
||||
protected:
|
||||
virtual void itemSelected(int, int);
|
||||
virtual void itemSelected(int, int);
|
||||
|
||||
public:
|
||||
Workspacemenu(BScreen *);
|
||||
void removeWorkspace(unsigned int id);
|
||||
void addWorkspace(Workspace *wkspc);
|
||||
Workspacemenu(BScreen *);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue