diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-06 00:11:55 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-06 00:11:55 (GMT) |
commit | 2df84f6687dfd16aec55206cc672ac0715c7cd68 (patch) | |
tree | 4bda9f9a393f4a3e609b6ce8ad7d5a3571c64aff /src/Slit.hh | |
parent | 22aa93c56de131b80dfb161615650c4fb6cf6832 (diff) | |
download | fluxbox-2df84f6687dfd16aec55206cc672ac0715c7cd68.zip fluxbox-2df84f6687dfd16aec55206cc672ac0715c7cd68.tar.bz2 |
use the same options in Slit and Toolbar placement menus
Diffstat (limited to 'src/Slit.hh')
-rw-r--r-- | src/Slit.hh | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/Slit.hh b/src/Slit.hh index a7f8e40..19e4698 100644 --- a/src/Slit.hh +++ b/src/Slit.hh | |||
@@ -55,21 +55,22 @@ class Slit: public FbTk::EventHandler, public FbTk::Observer, public LayerObject | |||
55 | public: | 55 | public: |
56 | typedef std::list<SlitClient *> SlitClients; | 56 | typedef std::list<SlitClient *> SlitClients; |
57 | /** | 57 | /** |
58 | Client alignment | ||
59 | */ | ||
60 | enum Direction { VERTICAL = 1, HORIZONTAL }; | ||
61 | /** | ||
62 | Placement on screen | 58 | Placement on screen |
63 | */ | 59 | */ |
64 | enum Placement { TOPLEFT = 1, LEFTCENTER, BOTTOMLEFT, TOPCENTER, BOTTOMCENTER, | 60 | enum Placement { |
65 | TOPRIGHT, RIGHTCENTER, BOTTOMRIGHT }; | 61 | // top and bottom placement |
62 | TOPLEFT = 1, TOPCENTER, TOPRIGHT, | ||
63 | BOTTOMLEFT, BOTTOMCENTER, BOTTOMRIGHT, | ||
64 | // left and right placement | ||
65 | LEFTBOTTOM, LEFTCENTER, LEFTTOP, | ||
66 | RIGHTBOTTOM, RIGHTCENTER, RIGHTTOP | ||
67 | }; | ||
66 | 68 | ||
67 | Slit(BScreen &screen, FbTk::XLayer &layer, const char *filename = 0); | 69 | Slit(BScreen &screen, FbTk::XLayer &layer, const char *filename = 0); |
68 | virtual ~Slit(); | 70 | virtual ~Slit(); |
69 | 71 | ||
70 | void show() { frame.window.show(); m_visible = true; } | 72 | void show() { frame.window.show(); m_visible = true; } |
71 | void hide() { frame.window.hide(); m_visible = false; } | 73 | void hide() { frame.window.hide(); m_visible = false; } |
72 | void setDirection(Direction dir); | ||
73 | void setPlacement(Placement place); | 74 | void setPlacement(Placement place); |
74 | void addClient(Window clientwin); | 75 | void addClient(Window clientwin); |
75 | void removeClient(Window clientwin, bool remap = true); | 76 | void removeClient(Window clientwin, bool remap = true); |
@@ -113,7 +114,6 @@ public: | |||
113 | bool isHidden() const { return m_hidden; } | 114 | bool isHidden() const { return m_hidden; } |
114 | bool acceptKdeDockapp() const { return *m_rc_kde_dockapp; } | 115 | bool acceptKdeDockapp() const { return *m_rc_kde_dockapp; } |
115 | bool doAutoHide() const { return *m_rc_auto_hide; } | 116 | bool doAutoHide() const { return *m_rc_auto_hide; } |
116 | Direction direction() const { return *m_rc_direction; } | ||
117 | Placement placement() const { return *m_rc_placement; } | 117 | Placement placement() const { return *m_rc_placement; } |
118 | int getOnHead() const { return *m_rc_on_head; } | 118 | int getOnHead() const { return *m_rc_on_head; } |
119 | void saveOnHead(int head); | 119 | void saveOnHead(int head); |
@@ -178,7 +178,6 @@ private: | |||
178 | 178 | ||
179 | FbTk::Resource<bool> m_rc_kde_dockapp, m_rc_auto_hide, m_rc_maximize_over; | 179 | FbTk::Resource<bool> m_rc_kde_dockapp, m_rc_auto_hide, m_rc_maximize_over; |
180 | FbTk::Resource<Slit::Placement> m_rc_placement; | 180 | FbTk::Resource<Slit::Placement> m_rc_placement; |
181 | FbTk::Resource<Slit::Direction> m_rc_direction; | ||
182 | FbTk::Resource<int> m_rc_alpha, m_rc_on_head; | 181 | FbTk::Resource<int> m_rc_alpha, m_rc_on_head; |
183 | FbTk::Resource<class Layer> m_rc_layernum; | 182 | FbTk::Resource<class Layer> m_rc_layernum; |
184 | }; | 183 | }; |