aboutsummaryrefslogtreecommitdiff
path: root/src/Slit.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Slit.hh')
-rw-r--r--src/Slit.hh17
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
55public: 55public:
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};