From bdb0d00f2fb667f252defdc94b7701e89819f91a Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 26 Feb 2002 08:56:50 +0000 Subject: indentation --- src/Workspace.hh | 90 ++++++++++++++++++++++++++------------------------------ 1 file changed, 42 insertions(+), 48 deletions(-) diff --git a/src/Workspace.hh b/src/Workspace.hh index 9ca8326..dd41281 100644 --- a/src/Workspace.hh +++ b/src/Workspace.hh @@ -19,8 +19,10 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -#ifndef WORKSPACE_HH -#define WORKSPACE_HH +#ifndef WORKSPACE_HH +#define WORKSPACE_HH + +#include "Window.hh" #include #include @@ -30,66 +32,58 @@ class BScreen; class Clientmenu; class Workspace; -class FluxboxWindow; + class Workspace { public: - typedef std::vector Windows; - - Workspace(BScreen *, int = 0); - ~Workspace(void); - - inline BScreen *getScreen(void) { return screen; } - - inline FluxboxWindow *getLastFocusedWindow(void) { return lastfocus; } - - inline Clientmenu *getMenu(void) { return clientmenu; } - - inline const char *getName(void) const { return name.c_str(); } - - inline const int &getWorkspaceID(void) const { return id; } - - inline void setLastFocusedWindow(FluxboxWindow *w) { lastfocus = w; } - - FluxboxWindow *getWindow(int); - inline Windows &getWindowList() { return windowList; } - - bool isCurrent(void); - bool isLastWindow(FluxboxWindow *); - - const int addWindow(FluxboxWindow *, Bool = False); - const int removeWindow(FluxboxWindow *); - const int getCount(void); + typedef std::vector Windows; + + Workspace(BScreen *, int = 0); + ~Workspace(void); + + inline BScreen *getScreen(void) { return screen; } + inline FluxboxWindow *getLastFocusedWindow(void) { return lastfocus; } + inline Clientmenu *getMenu(void) { return clientmenu; } + inline const char *getName(void) const { return name.c_str(); } + inline const int &getWorkspaceID(void) const { return id; } + inline void setLastFocusedWindow(FluxboxWindow *w) { lastfocus = w; } + FluxboxWindow *getWindow(int); + inline Windows &getWindowList() { return windowList; } + bool isCurrent(void); + bool isLastWindow(FluxboxWindow *); + const int addWindow(FluxboxWindow *, Bool = False); + const int removeWindow(FluxboxWindow *); + const int getCount(void); - void showAll(void); - void hideAll(void); - void removeAll(void); - void raiseWindow(FluxboxWindow *); - void lowerWindow(FluxboxWindow *); - void reconfigure(); - void update(); - void setCurrent(void); - void setName(char *); - void shutdown(void); + void showAll(void); + void hideAll(void); + void removeAll(void); + void raiseWindow(FluxboxWindow *); + void lowerWindow(FluxboxWindow *); + void reconfigure(); + void update(); + void setCurrent(void); + void setName(char *); + void shutdown(void); private: - BScreen *screen; - FluxboxWindow *lastfocus; - Clientmenu *clientmenu; + BScreen *screen; + FluxboxWindow *lastfocus; + Clientmenu *clientmenu; - typedef std::list WindowStack; + typedef std::list WindowStack; - WindowStack stackingList; - Windows windowList; + WindowStack stackingList; + Windows windowList; - std::string name; - int id, cascade_x, cascade_y; + std::string name; + int id, cascade_x, cascade_y; protected: - void placeWindow(FluxboxWindow *); + void placeWindow(FluxboxWindow *); -- cgit v0.11.2