2004-05-02 20:51:36 +00:00
|
|
|
// WorkspaceMenu.hh for Fluxbox
|
2006-02-16 06:53:05 +00:00
|
|
|
// Copyright (c) 2004 - 2006 Henrik Kinnunen (fluxgen at fluxbox dot org)
|
2004-05-02 20:51:36 +00:00
|
|
|
//
|
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
// copy of this software and associated documentation files (the "Software"),
|
|
|
|
// to deal in the Software without restriction, including without limitation
|
|
|
|
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
// and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
// Software is furnished to do so, subject to the following conditions:
|
|
|
|
//
|
|
|
|
// The above copyright notice and this permission notice shall be included in
|
|
|
|
// all copies or substantial portions of the Software.
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
// 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
|
|
|
|
|
|
|
|
#include "FbMenu.hh"
|
2008-09-18 20:27:16 +00:00
|
|
|
#include "FbTk/Signal.hh"
|
2004-05-02 20:51:36 +00:00
|
|
|
|
|
|
|
class BScreen;
|
|
|
|
|
2007-10-13 21:51:37 +00:00
|
|
|
/**
|
|
|
|
* A menu specific for workspace.
|
|
|
|
* Contains some simple workspace commands
|
|
|
|
* such as new/delete workspace and edit
|
|
|
|
* workspace name.
|
|
|
|
* It also contains client menus for all clients.
|
|
|
|
*/
|
2008-09-18 20:27:16 +00:00
|
|
|
class WorkspaceMenu: public FbMenu, private FbTk::SignalTracker {
|
2004-05-02 20:51:36 +00:00
|
|
|
public:
|
|
|
|
explicit WorkspaceMenu(BScreen &screen);
|
|
|
|
virtual ~WorkspaceMenu() { }
|
2008-09-21 13:25:47 +00:00
|
|
|
|
2004-05-02 20:51:36 +00:00
|
|
|
private:
|
2007-10-13 21:51:37 +00:00
|
|
|
/// initialize menu for the screen
|
2004-05-02 20:51:36 +00:00
|
|
|
void init(BScreen &screen);
|
2008-09-18 20:27:16 +00:00
|
|
|
/// Called when workspace info was changed
|
|
|
|
/// ( number of workspace, workspace names etc )
|
2008-09-21 11:44:48 +00:00
|
|
|
void workspaceInfoChanged(BScreen& screen);
|
|
|
|
/// Called when workspace was switched.
|
|
|
|
void workspaceChanged(BScreen& screen);
|
2004-05-02 20:51:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // WORKSPACEMENU_HH
|