aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-04-09 23:18:12 (GMT)
committerfluxgen <fluxgen>2002-04-09 23:18:12 (GMT)
commitbd7951bcdad7e1c4dd6b5ff267cb85fc8cbf6d7e (patch)
tree054a577207b64aa174213afd6024ab039cb3a4be /src/Workspace.hh
parent8afd178252147739025779bc8db906cabea488fe (diff)
downloadfluxbox_pavel-bd7951bcdad7e1c4dd6b5ff267cb85fc8cbf6d7e.zip
fluxbox_pavel-bd7951bcdad7e1c4dd6b5ff267cb85fc8cbf6d7e.tar.bz2
clean up
Diffstat (limited to 'src/Workspace.hh')
-rw-r--r--src/Workspace.hh32
1 files changed, 14 insertions, 18 deletions
diff --git a/src/Workspace.hh b/src/Workspace.hh
index f004fc5..5e4507b 100644
--- a/src/Workspace.hh
+++ b/src/Workspace.hh
@@ -42,23 +42,23 @@ class Workspace {
42public: 42public:
43 typedef std::vector<FluxboxWindow *> Windows; 43 typedef std::vector<FluxboxWindow *> Windows;
44 44
45 Workspace(BScreen *, unsigned int = 0); 45 Workspace(BScreen *screen, unsigned int workspaceid= 0);
46 ~Workspace(void); 46 ~Workspace(void);
47 47
48 inline BScreen *getScreen(void) { return screen; } 48 inline BScreen *getScreen(void) const { return screen; }
49 inline FluxboxWindow *getLastFocusedWindow(void) { return lastfocus; } 49 inline FluxboxWindow *getLastFocusedWindow(void) const { return lastfocus; }
50 inline Clientmenu *getMenu(void) { return clientmenu; } 50 inline Clientmenu *menu(void) const { return clientmenu; }
51 inline const char *getName(void) const { return name.c_str(); } 51 inline const std::string &name(void) const { return m_name; }
52 inline const unsigned int getWorkspaceID(void) const { return id; } 52 inline const unsigned int workspaceID(void) const { return m_id; }
53 inline void setLastFocusedWindow(FluxboxWindow *w) { lastfocus = w; } 53 inline void setLastFocusedWindow(FluxboxWindow *w) { lastfocus = w; }
54 FluxboxWindow *getWindow(unsigned int id); 54 FluxboxWindow *getWindow(unsigned int id) const;
55 inline Windows &getWindowList() { return windowList; } 55 inline Windows &getWindowList() { return windowList; }
56 bool isCurrent(void); 56 bool isCurrent(void) const;
57 bool isLastWindow(FluxboxWindow *); 57 bool isLastWindow(FluxboxWindow *window) const;
58 const int addWindow(FluxboxWindow *, bool = False); 58 const int addWindow(FluxboxWindow *window, bool place = false);
59 const int removeWindow(FluxboxWindow *); 59 const int removeWindow(FluxboxWindow *);
60 const int getCount(void); 60 const int getCount(void) const;
61 61 void setName(const char *name);
62 void showAll(void); 62 void showAll(void);
63 void hideAll(void); 63 void hideAll(void);
64 void removeAll(void); 64 void removeAll(void);
@@ -67,7 +67,6 @@ public:
67 void reconfigure(); 67 void reconfigure();
68 void update(); 68 void update();
69 void setCurrent(void); 69 void setCurrent(void);
70 void setName(char *);
71 void shutdown(void); 70 void shutdown(void);
72 71
73private: 72private:
@@ -81,16 +80,13 @@ private:
81 WindowStack stackingList; 80 WindowStack stackingList;
82 Windows windowList; 81 Windows windowList;
83 82
84 std::string name; 83 std::string m_name;
85 unsigned int id; 84 unsigned int m_id;
86 int cascade_x, cascade_y; 85 int cascade_x, cascade_y;
87 86
88 87
89protected: 88protected:
90 void placeWindow(FluxboxWindow *); 89 void placeWindow(FluxboxWindow *);
91
92
93
94}; 90};
95 91
96 92