aboutsummaryrefslogtreecommitdiff
path: root/src/Slit.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Slit.hh')
-rw-r--r--src/Slit.hh20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/Slit.hh b/src/Slit.hh
index cce1d97..2c29af6 100644
--- a/src/Slit.hh
+++ b/src/Slit.hh
@@ -19,8 +19,8 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22#ifndef _SLIT_HH_ 22#ifndef SLIT_HH
23#define _SLIT_HH_ 23#define SLIT_HH
24 24
25#include <X11/Xlib.h> 25#include <X11/Xlib.h>
26#include <X11/Xutil.h> 26#include <X11/Xutil.h>
@@ -30,8 +30,8 @@ class Slit;
30class Slitmenu; 30class Slitmenu;
31 31
32#include "Basemenu.hh" 32#include "Basemenu.hh"
33#include "LinkedList.hh"
34 33
34#include <list>
35 35
36class Slitmenu : public Basemenu { 36class Slitmenu : public Basemenu {
37private: 37private:
@@ -100,7 +100,9 @@ private:
100 BScreen *screen; 100 BScreen *screen;
101 BTimer *timer; 101 BTimer *timer;
102 102
103 LinkedList<SlitClient> *clientList; 103 typedef std::list<SlitClient *> SlitClients;
104
105 SlitClients clientList;
104 Slitmenu *slitmenu; 106 Slitmenu *slitmenu;
105 107
106 struct frame { 108 struct frame {
@@ -137,8 +139,8 @@ public:
137 inline const unsigned int &getHeight(void) const { return frame.height; } 139 inline const unsigned int &getHeight(void) const { return frame.height; }
138 140
139 void addClient(Window); 141 void addClient(Window);
140 void removeClient(SlitClient *, Bool = True); 142 void removeClient(SlitClient *, bool = true);
141 void removeClient(Window, Bool = True); 143 void removeClient(Window, bool = true);
142 void reconfigure(void); 144 void reconfigure(void);
143 void reposition(void); 145 void reposition(void);
144 void shutdown(void); 146 void shutdown(void);
@@ -150,9 +152,9 @@ public:
150 152
151 virtual void timeout(void); 153 virtual void timeout(void);
152 154
153 enum { Vertical = 1, Horizontal }; 155 enum { VERTICAL = 1, HORIZONTAL };
154 enum { TopLeft = 1, CenterLeft, BottomLeft, TopCenter, BottomCenter, 156 enum { TOPLEFT = 1, CENTERLEFT, BOTTOMLEFT, TOPCENTER, BOTTOMCENTER,
155 TopRight, CenterRight, BottomRight }; 157 TOPRIGHT, CENTERRIGHT, BOTTOMRIGHT };
156}; 158};
157 159
158 160