aboutsummaryrefslogtreecommitdiff
path: root/src/Slit.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-04-19 22:42:26 (GMT)
committerfluxgen <fluxgen>2004-04-19 22:42:26 (GMT)
commitabda1490d862606989664355d35d391eecbe8ffa (patch)
tree458282f4703760bf8db6074e49820292002057f5 /src/Slit.hh
parent09c0d67fadb098f06c47f925de2308202cb57a92 (diff)
downloadfluxbox-abda1490d862606989664355d35d391eecbe8ffa.zip
fluxbox-abda1490d862606989664355d35d391eecbe8ffa.tar.bz2
kde dockapp in systray
Diffstat (limited to 'src/Slit.hh')
-rw-r--r--src/Slit.hh11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Slit.hh b/src/Slit.hh
index 4209501..70c2ae5 100644
--- a/src/Slit.hh
+++ b/src/Slit.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: Slit.hh,v 1.38 2003/08/29 10:30:46 fluxgen Exp $ 25/// $Id: Slit.hh,v 1.39 2004/04/19 22:42:26 fluxgen Exp $
26 26
27#ifndef SLIT_HH 27#ifndef SLIT_HH
28#define SLIT_HH 28#define SLIT_HH
@@ -49,7 +49,7 @@ class Strut;
49/// Handles dock apps 49/// Handles dock apps
50class Slit: public FbTk::EventHandler, public FbTk::Observer { 50class Slit: public FbTk::EventHandler, public FbTk::Observer {
51public: 51public:
52 52 typedef std::list<SlitClient *> SlitClients;
53 /** 53 /**
54 Client alignment 54 Client alignment
55 */ 55 */
@@ -63,6 +63,8 @@ public:
63 Slit(BScreen &screen, FbTk::XLayer &layer, const char *filename = 0); 63 Slit(BScreen &screen, FbTk::XLayer &layer, const char *filename = 0);
64 virtual ~Slit(); 64 virtual ~Slit();
65 65
66 void show() { frame.window.show(); }
67 void hide() { frame.window.hide(); }
66 void setDirection(Direction dir); 68 void setDirection(Direction dir);
67 void setPlacement(Placement place); 69 void setPlacement(Placement place);
68 void setAutoHide(bool val); 70 void setAutoHide(bool val);
@@ -115,7 +117,8 @@ public:
115 117
116 inline unsigned int width() const { return frame.width; } 118 inline unsigned int width() const { return frame.width; }
117 inline unsigned int height() const { return frame.height; } 119 inline unsigned int height() const { return frame.height; }
118 120 const SlitClients &clients() const { return m_client_list; }
121 SlitClients &clients() { return m_client_list; }
119private: 122private:
120 void clearWindow(); 123 void clearWindow();
121 void setupMenu(); 124 void setupMenu();
@@ -131,8 +134,6 @@ private:
131 BScreen &m_screen; 134 BScreen &m_screen;
132 FbTk::Timer m_timer; 135 FbTk::Timer m_timer;
133 136
134 typedef std::list<SlitClient *> SlitClients;
135
136 SlitClients m_client_list; 137 SlitClients m_client_list;
137 FbMenu m_slitmenu, m_placement_menu, m_clientlist_menu; 138 FbMenu m_slitmenu, m_placement_menu, m_clientlist_menu;
138 std::auto_ptr<LayerMenu<Slit> > m_layermenu; 139 std::auto_ptr<LayerMenu<Slit> > m_layermenu;