diff options
author | fluxgen <fluxgen> | 2002-08-11 22:35:40 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-08-11 22:35:40 (GMT) |
commit | b32511f4118e678c82d32801f9f1776f213188a3 (patch) | |
tree | afd0076f1adaab964e6b8d831abbf85ab13ab5e4 /src/Workspace.hh | |
parent | 9f3f5720ff0bea8210b2f9102f18770dd465d78e (diff) | |
download | fluxbox-b32511f4118e678c82d32801f9f1776f213188a3.zip fluxbox-b32511f4118e678c82d32801f9f1776f213188a3.tar.bz2 |
added autogrouping functions
Diffstat (limited to 'src/Workspace.hh')
-rw-r--r-- | src/Workspace.hh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/Workspace.hh b/src/Workspace.hh index dc640ac..e461bd5 100644 --- a/src/Workspace.hh +++ b/src/Workspace.hh | |||
@@ -50,7 +50,7 @@ public: | |||
50 | /** | 50 | /** |
51 | Set workspace name | 51 | Set workspace name |
52 | */ | 52 | */ |
53 | void setName(const char *name); | 53 | void setName(const std::string &name); |
54 | void showAll(); | 54 | void showAll(); |
55 | void hideAll(); | 55 | void hideAll(); |
56 | void removeAll(); | 56 | void removeAll(); |
@@ -86,21 +86,29 @@ public: | |||
86 | */ | 86 | */ |
87 | FluxboxWindow *getWindow(unsigned int id); | 87 | FluxboxWindow *getWindow(unsigned int id); |
88 | const FluxboxWindow *getWindow(unsigned int id) const; | 88 | const FluxboxWindow *getWindow(unsigned int id) const; |
89 | inline const Windows &getWindowList() const { return windowList; } | 89 | const Windows &getWindowList() const { return windowList; } |
90 | Windows &getWindowList() { return windowList; } | ||
91 | |||
90 | bool isCurrent() const; | 92 | bool isCurrent() const; |
91 | bool isLastWindow(FluxboxWindow *window) const; | 93 | bool isLastWindow(FluxboxWindow *window) const; |
92 | int getCount() const; | 94 | int getCount() const; |
93 | 95 | void checkGrouping(FluxboxWindow &win); | |
96 | static bool loadGroups(const std::string &filename); | ||
94 | protected: | 97 | protected: |
95 | void placeWindow(FluxboxWindow *win); | 98 | void placeWindow(FluxboxWindow *win); |
96 | 99 | ||
97 | private: | 100 | private: |
101 | |||
102 | |||
98 | BScreen *screen; | 103 | BScreen *screen; |
99 | FluxboxWindow *lastfocus; | 104 | FluxboxWindow *lastfocus; |
100 | Clientmenu m_clientmenu; | 105 | Clientmenu m_clientmenu; |
101 | 106 | ||
102 | typedef std::list<FluxboxWindow *> WindowStack; | 107 | typedef std::list<FluxboxWindow *> WindowStack; |
103 | 108 | typedef std::vector<std::string> Group; | |
109 | typedef std::vector<Group> GroupList; | ||
110 | |||
111 | static GroupList m_groups; ///< handle auto groupings | ||
104 | 112 | ||
105 | WindowStack stackingList; | 113 | WindowStack stackingList; |
106 | Windows windowList; | 114 | Windows windowList; |