aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Screen.hh')
-rw-r--r--src/Screen.hh37
1 files changed, 11 insertions, 26 deletions
diff --git a/src/Screen.hh b/src/Screen.hh
index 9a16597..e1922eb 100644
--- a/src/Screen.hh
+++ b/src/Screen.hh
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.hh,v 1.106 2003/06/18 13:42:21 fluxgen Exp $ 25// $Id: Screen.hh,v 1.107 2003/06/20 01:28:16 fluxgen Exp $
26 26
27#ifndef SCREEN_HH 27#ifndef SCREEN_HH
28#define SCREEN_HH 28#define SCREEN_HH
@@ -31,7 +31,6 @@
31#include "Subject.hh" 31#include "Subject.hh"
32#include "MultLayers.hh" 32#include "MultLayers.hh"
33#include "ToolbarHandler.hh" 33#include "ToolbarHandler.hh"
34#include "Slit.hh"
35#include "FbRootWindow.hh" 34#include "FbRootWindow.hh"
36#include "NotCopyable.hh" 35#include "NotCopyable.hh"
37 36
@@ -53,6 +52,7 @@ class WinButtonTheme;
53class WinClient; 52class WinClient;
54class Workspace; 53class Workspace;
55class Strut; 54class Strut;
55class Slit;
56 56
57namespace FbTk { 57namespace FbTk {
58class MenuTheme; 58class MenuTheme;
@@ -88,7 +88,6 @@ public:
88 inline bool doAutoRaise() const { return *resource.auto_raise; } 88 inline bool doAutoRaise() const { return *resource.auto_raise; }
89 inline bool clickRaises() const { return *resource.click_raises; } 89 inline bool clickRaises() const { return *resource.click_raises; }
90 inline bool doImageDither() const { return *resource.image_dither; } 90 inline bool doImageDither() const { return *resource.image_dither; }
91 inline bool doMaxOverSlit() const { return *resource.max_over_slit; }
92 inline bool doOpaqueMove() const { return *resource.opaque_move; } 91 inline bool doOpaqueMove() const { return *resource.opaque_move; }
93 inline bool doFullMax() const { return *resource.full_max; } 92 inline bool doFullMax() const { return *resource.full_max; }
94 inline bool doFocusNew() const { return *resource.focus_new; } 93 inline bool doFocusNew() const { return *resource.focus_new; }
@@ -105,22 +104,9 @@ public:
105 inline const std::string &getRootCommand() const { return *resource.rootcommand; } 104 inline const std::string &getRootCommand() const { return *resource.rootcommand; }
106 inline Fluxbox::FocusModel getFocusModel() const { return *resource.focus_model; } 105 inline Fluxbox::FocusModel getFocusModel() const { return *resource.focus_model; }
107 106
108 inline bool &doSlitAutoHide() { return *resource.slit_auto_hide; }
109 inline const bool &doSlitAutoHide() const { return *resource.slit_auto_hide; }
110
111 inline Slit *slit() { return m_slit.get(); } 107 inline Slit *slit() { return m_slit.get(); }
112 inline const Slit *slit() const { return m_slit.get(); } 108 inline const Slit *slit() const { return m_slit.get(); }
113 109
114 inline Slit::Placement getSlitPlacement() const { return *resource.slit_placement; }
115 inline Slit::Direction getSlitDirection() const { return *resource.slit_direction; }
116 inline FbTk::Resource<int> &slitAlphaResource() { return resource.slit_alpha; }
117 inline void saveSlitPlacement(Slit::Placement p) { resource.slit_placement = p; }
118 inline void saveSlitDirection(Slit::Direction d) { resource.slit_direction = d; }
119 inline void saveSlitAutoHide(bool t) { resource.slit_auto_hide = t; }
120
121 inline int getSlitOnHead() const { return *resource.slit_on_head; }
122 inline void saveSlitOnHead(int h) { *resource.slit_on_head = h; }
123
124 inline const Toolbar *toolbar() const { return m_toolbarhandler->getToolbar(); } 110 inline const Toolbar *toolbar() const { return m_toolbarhandler->getToolbar(); }
125 inline Toolbar *toolbar() { return m_toolbarhandler->getToolbar(); } 111 inline Toolbar *toolbar() { return m_toolbarhandler->getToolbar(); }
126 112
@@ -188,7 +174,6 @@ public:
188 inline int getRowPlacementDirection() const { return resource.row_direction; } 174 inline int getRowPlacementDirection() const { return resource.row_direction; }
189 inline int getColPlacementDirection() const { return resource.col_direction; } 175 inline int getColPlacementDirection() const { return resource.col_direction; }
190 176
191 inline int getSlitLayerNum() const { return (*resource.slit_layernum).getNum(); }
192 inline int getToolbarLayerNum() const { return (*resource.toolbar_layernum).getNum(); } 177 inline int getToolbarLayerNum() const { return (*resource.toolbar_layernum).getNum(); }
193 178
194 179
@@ -203,14 +188,13 @@ public:
203 inline void saveToolbarPlacement(Toolbar::Placement place) { *resource.toolbar_placement = place; } 188 inline void saveToolbarPlacement(Toolbar::Placement place) { *resource.toolbar_placement = place; }
204 inline void saveToolbarOnHead(int head) { *resource.toolbar_on_head = head; } 189 inline void saveToolbarOnHead(int head) { *resource.toolbar_on_head = head; }
205 inline void saveToolbarLayer(Fluxbox::Layer layer) { *resource.toolbar_layernum = layer; } 190 inline void saveToolbarLayer(Fluxbox::Layer layer) { *resource.toolbar_layernum = layer; }
206 inline void saveSlitLayer(Fluxbox::Layer layer) { *resource.slit_layernum = layer; }
207 191
208 inline void savePlacementPolicy(int p) { resource.placement_policy = p; } 192 inline void savePlacementPolicy(int p) { resource.placement_policy = p; }
209 inline void saveRowPlacementDirection(int d) { resource.row_direction = d; } 193 inline void saveRowPlacementDirection(int d) { resource.row_direction = d; }
210 inline void saveColPlacementDirection(int d) { resource.col_direction = d; } 194 inline void saveColPlacementDirection(int d) { resource.col_direction = d; }
211 inline void saveEdgeSnapThreshold(int t) { resource.edge_snap_threshold = t; } 195 inline void saveEdgeSnapThreshold(int t) { resource.edge_snap_threshold = t; }
212 inline void saveImageDither(bool d) { resource.image_dither = d; } 196 inline void saveImageDither(bool d) { resource.image_dither = d; }
213 inline void saveMaxOverSlit(bool m) { resource.max_over_slit = m; } 197
214 inline void saveOpaqueMove(bool o) { resource.opaque_move = o; } 198 inline void saveOpaqueMove(bool o) { resource.opaque_move = o; }
215 inline void saveFullMax(bool f) { resource.full_max = f; } 199 inline void saveFullMax(bool f) { resource.full_max = f; }
216 inline void saveFocusNew(bool f) { resource.focus_new = f; } 200 inline void saveFocusNew(bool f) { resource.focus_new = f; }
@@ -240,7 +224,10 @@ public:
240 FluxboxWindow *getIcon(unsigned int index); 224 FluxboxWindow *getIcon(unsigned int index);
241 FbTk::MultLayers &layerManager() { return m_layermanager; } 225 FbTk::MultLayers &layerManager() { return m_layermanager; }
242 const FbTk::MultLayers &layerManager() const { return m_layermanager; } 226 const FbTk::MultLayers &layerManager() const { return m_layermanager; }
243 227 FbTk::ResourceManager &resourceManager() { return m_resource_manager; }
228 const FbTk::ResourceManager &resourceManager() const { return m_resource_manager; }
229 const std::string &name() const { return m_name; }
230 const std::string &altName() const { return m_altname; }
244 int addWorkspace(); 231 int addWorkspace();
245 int removeLastWorkspace(); 232 int removeLastWorkspace();
246 //scroll workspaces 233 //scroll workspaces
@@ -425,7 +412,6 @@ private:
425 412
426 FbTk::Resource<bool> toolbar_auto_hide, 413 FbTk::Resource<bool> toolbar_auto_hide,
427 image_dither, opaque_move, full_max, 414 image_dither, opaque_move, full_max,
428 max_over_slit,
429 sloppy_window_grouping, workspace_warping, 415 sloppy_window_grouping, workspace_warping,
430 desktop_wheeling, show_window_pos, 416 desktop_wheeling, show_window_pos,
431 focus_last, focus_new, 417 focus_last, focus_new,
@@ -435,16 +421,12 @@ private:
435 bool ordered_dither; 421 bool ordered_dither;
436 FbTk::Resource<int> workspaces, toolbar_width_percent, edge_snap_threshold, 422 FbTk::Resource<int> workspaces, toolbar_width_percent, edge_snap_threshold,
437 menu_alpha; 423 menu_alpha;
438 FbTk::Resource<Fluxbox::Layer> slit_layernum, toolbar_layernum; 424 FbTk::Resource<Fluxbox::Layer> toolbar_layernum;
439 int placement_policy, row_direction, col_direction; 425 int placement_policy, row_direction, col_direction;
440 426
441 FbTk::Resource<ToolbarHandler::ToolbarMode> toolbar_mode; 427 FbTk::Resource<ToolbarHandler::ToolbarMode> toolbar_mode;
442 FbTk::Resource<int> toolbar_on_head; 428 FbTk::Resource<int> toolbar_on_head;
443 FbTk::Resource<Toolbar::Placement> toolbar_placement; 429 FbTk::Resource<Toolbar::Placement> toolbar_placement;
444 FbTk::Resource<bool> slit_auto_hide;
445 FbTk::Resource<Slit::Placement> slit_placement;
446 FbTk::Resource<Slit::Direction> slit_direction;
447 FbTk::Resource<int> slit_alpha, slit_on_head;
448 430
449 std::string strftime_format; 431 std::string strftime_format;
450 432
@@ -454,6 +436,9 @@ private:
454 436
455 } resource; 437 } resource;
456 438
439 const std::string m_name, m_altname;
440 FbTk::ResourceManager &m_resource_manager;
441
457 std::auto_ptr<ToolbarHandler> m_toolbarhandler; 442 std::auto_ptr<ToolbarHandler> m_toolbarhandler;
458 443
459 bool m_xinerama_avail; 444 bool m_xinerama_avail;