aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-12-07 17:49:07 (GMT)
committerfluxgen <fluxgen>2003-12-07 17:49:07 (GMT)
commite9be87766bd5e3353217d49037f971d43e548d3a (patch)
tree638e63acf8b56f81ec0f0bad24e90139d0d8b2c6 /src/Workspace.hh
parentb8c1d3e5ee0674bfe33d6af78cb6d3ff5cf1d85e (diff)
downloadfluxbox-e9be87766bd5e3353217d49037f971d43e548d3a.zip
fluxbox-e9be87766bd5e3353217d49037f971d43e548d3a.tar.bz2
observe title signal
Diffstat (limited to 'src/Workspace.hh')
-rw-r--r--src/Workspace.hh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Workspace.hh b/src/Workspace.hh
index a385963..d7ea28e 100644
--- a/src/Workspace.hh
+++ b/src/Workspace.hh
@@ -25,12 +25,13 @@
25#ifndef WORKSPACE_HH 25#ifndef WORKSPACE_HH
26#define WORKSPACE_HH 26#define WORKSPACE_HH
27 27
28#include "NotCopyable.hh" 28
29 29
30#include "FbMenu.hh" 30#include "FbMenu.hh"
31#include "MultLayers.hh"
32 31
33#include <X11/Xlib.h> 32#include "FbTk/MultLayers.hh"
33#include "FbTk/Observer.hh"
34#include "FbTk/NotCopyable.hh"
34 35
35#include <string> 36#include <string>
36#include <vector> 37#include <vector>
@@ -43,7 +44,7 @@ class WinClient;
43/** 44/**
44 Handles a single workspace 45 Handles a single workspace
45*/ 46*/
46class Workspace:private FbTk::NotCopyable { 47class Workspace:private FbTk::NotCopyable, private FbTk::Observer {
47public: 48public:
48 typedef std::vector<FluxboxWindow *> Windows; 49 typedef std::vector<FluxboxWindow *> Windows;
49 50
@@ -59,11 +60,9 @@ public:
59 void hideAll(); 60 void hideAll();
60 void removeAll(); 61 void removeAll();
61 void reconfigure(); 62 void reconfigure();
62 void update();
63 void shutdown(); 63 void shutdown();
64 void addWindow(FluxboxWindow &win, bool place = false); 64 void addWindow(FluxboxWindow &win, bool place = false);
65 int removeWindow(FluxboxWindow *win); 65 int removeWindow(FluxboxWindow *win);
66 void removeWindow(WinClient &client);
67 void updateClientmenu(); 66 void updateClientmenu();
68 67
69 BScreen &screen() { return m_screen; } 68 BScreen &screen() { return m_screen; }
@@ -90,6 +89,7 @@ public:
90 static bool loadGroups(const std::string &filename); 89 static bool loadGroups(const std::string &filename);
91 90
92private: 91private:
92 void update(FbTk::Subject *subj);
93 void placeWindow(FluxboxWindow &win); 93 void placeWindow(FluxboxWindow &win);
94 94
95 BScreen &m_screen; 95 BScreen &m_screen;