aboutsummaryrefslogtreecommitdiff
path: root/src/Tab.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-01-20 02:15:23 (GMT)
committerfluxgen <fluxgen>2002-01-20 02:15:23 (GMT)
commitaaa0c6d0780ceb021a3306e2f0c3ae965541eff6 (patch)
treed7b6127d71a1295f83533d25bebfefbbccdc441b /src/Tab.hh
parente1b1f375c6621ab5e51673216522526ad41b29fc (diff)
downloadfluxbox_pavel-aaa0c6d0780ceb021a3306e2f0c3ae965541eff6.zip
fluxbox_pavel-aaa0c6d0780ceb021a3306e2f0c3ae965541eff6.tar.bz2
Named enums
Diffstat (limited to 'src/Tab.hh')
-rw-r--r--src/Tab.hh20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/Tab.hh b/src/Tab.hh
index a0e3737..02f0dbe 100644
--- a/src/Tab.hh
+++ b/src/Tab.hh
@@ -19,7 +19,7 @@
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// $Id: Tab.hh,v 1.7 2002/01/18 18:28:17 pekdon Exp $ 22// $Id: Tab.hh,v 1.8 2002/01/20 02:15:23 fluxgen Exp $
23 23
24#ifndef _TAB_HH_ 24#ifndef _TAB_HH_
25#define _TAB_HH_ 25#define _TAB_HH_
@@ -27,9 +27,7 @@
27#ifndef _IMAGE_HH_ 27#ifndef _IMAGE_HH_
28#include "Image.hh" 28#include "Image.hh"
29#endif 29#endif
30#ifndef _SCREEN_HH_ 30
31#include "Screen.hh"
32#endif
33#ifndef _WINDOW_HH_ 31#ifndef _WINDOW_HH_
34#include "Window.hh" 32#include "Window.hh"
35#endif 33#endif
@@ -39,6 +37,9 @@
39 37
40class Tab { 38class Tab {
41public: 39public:
40 enum Placement{ PTOP = 0, PBOTTOM = 5, PLEFT = 10, PRIGHT = 15, PNONE = 20};
41 enum Alignment{ ALEFT = 0, ACENTER, ARIGHT, ARELATIVE, ANONE };
42
42 Tab(FluxboxWindow *win, Tab *prev=0, Tab *next=0); 43 Tab(FluxboxWindow *win, Tab *prev=0, Tab *next=0);
43 ~Tab(); 44 ~Tab();
44 void draw(bool pressed); 45 void draw(bool pressed);
@@ -70,14 +71,11 @@ public:
70 static Tab *getFirst(Tab *current); 71 static Tab *getFirst(Tab *current);
71 static Tab *getLast(Tab *current); 72 static Tab *getLast(Tab *current);
72 void disconnect(); 73 void disconnect();
73
74 enum { PTOP = 0, PBOTTOM = 5, PLEFT = 10, PRIGHT = 15, PNONE = 20};
75 enum { ALEFT = 0, ACENTER, ARIGHT, ARELATIVE, ANONE };
76 74
77 static const char *getTabPlacementString(int placement); 75 static const char *getTabPlacementString(Tab::Placement placement);
78 static int getTabPlacementNum(const char *string); 76 static Tab::Placement getTabPlacementNum(const char *string);
79 static const char *getTabAlignmentString(int placement); 77 static const char *getTabAlignmentString(Tab::Alignment alignment);
80 static int getTabAlignmentNum(const char *string); 78 static Tab::Alignment getTabAlignmentNum(const char *string);
81 //TODO: do these have to be public? 79 //TODO: do these have to be public?
82 void resizeGroup(void); // used when (un)shading windows 80 void resizeGroup(void); // used when (un)shading windows
83 void calcIncrease(void); 81 void calcIncrease(void);