aboutsummaryrefslogtreecommitdiff
path: root/src/Configmenu.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Configmenu.hh')
-rw-r--r--src/Configmenu.hh113
1 files changed, 59 insertions, 54 deletions
diff --git a/src/Configmenu.hh b/src/Configmenu.hh
index 4713634..2e25860 100644
--- a/src/Configmenu.hh
+++ b/src/Configmenu.hh
@@ -1,3 +1,6 @@
1// Configmenu.hh for Fluxbox Window Manager
2// Copyright (c) 2001 - 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
3//
1// Configmenu.hh for Blackbox - An X11 Window Manager 4// Configmenu.hh for Blackbox - An X11 Window Manager
2// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net) 5// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
3// 6//
@@ -19,8 +22,10 @@
19// 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
20// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
21 24
22#ifndef _CONFIGMENU_HH_ 25// $Id: Configmenu.hh,v 1.5 2002/04/28 16:58:36 fluxgen Exp $
23#define _CONFIGMENU_HH_ 26
27#ifndef CONFIGMENU_HH
28#define CONFIGMENU_HH
24 29
25// forward declaration 30// forward declaration
26class Configmenu; 31class Configmenu;
@@ -29,66 +34,66 @@ class Configmenu;
29#include "Screen.hh" 34#include "Screen.hh"
30#include "fluxbox.hh" 35#include "fluxbox.hh"
31 36
32
33class Configmenu : public Basemenu { 37class Configmenu : public Basemenu {
34private: 38private:
35 class Focusmenu : public Basemenu { 39 class Focusmenu : public Basemenu {
36 private: 40 public:
37 Configmenu *configmenu; 41 Focusmenu(Configmenu *);
38 42 protected:
39 protected: 43 virtual void itemSelected(int button, unsigned int index);
40 virtual void itemSelected(int, int); 44
41 45 private:
42 public: 46 Configmenu *configmenu;
43 Focusmenu(Configmenu *); 47
44 }; 48 };
45 49
46 class Placementmenu : public Basemenu { 50 class Placementmenu : public Basemenu {
47 private: 51 public:
48 Configmenu *configmenu; 52 Placementmenu(Configmenu *);
49 53
50 protected: 54 protected:
51 virtual void itemSelected(int, int); 55 virtual void itemSelected(int button, unsigned int index);
52 56
53 public: 57 private:
54 Placementmenu(Configmenu *); 58 Configmenu *configmenu;
55 }; 59 };
56 60
57 class Tabmenu : public Basemenu { 61 class Tabmenu : public Basemenu {
58 private: 62 public:
59 Configmenu *configmenu; 63 Tabmenu(Configmenu *);
60 void setSelected(void); 64 protected:
61 protected: 65 virtual void itemSelected(int button, unsigned int index);
62 virtual void itemSelected(int, int); 66 private:
63 67 Configmenu *configmenu;
64 public: 68 void setSelected();
65 Tabmenu(Configmenu *); 69 };
66 }; 70
67 71 BScreen *screen;
68// Fluxbox *fluxbox; 72 Focusmenu *focusmenu;
69 BScreen *screen; 73 Placementmenu *placementmenu;
70 Focusmenu *focusmenu; 74 Tabmenu *tabmenu;
71 Placementmenu *placementmenu; 75
72 Tabmenu *tabmenu; 76 friend class Focusmenu;
73 77 friend class Placementmenu;
74 friend class Focusmenu; 78 friend class Tabmenu;
75 friend class Placementmenu;
76 friend class Tabmenu;
77 79
78 80
79protected: 81protected:
80 virtual void itemSelected(int, int); 82 virtual void itemSelected(int button, unsigned int index);
81 83
82 84
83public: 85public:
84 Configmenu(BScreen *); 86 Configmenu(BScreen *);
85 virtual ~Configmenu(void); 87 virtual ~Configmenu();
86 88 inline Basemenu *getFocusmenu() { return focusmenu; }
87 inline Basemenu *getFocusmenu(void) { return focusmenu; } 89 inline Basemenu *getPlacementmenu() { return placementmenu; }
88 inline Basemenu *getPlacementmenu(void) { return placementmenu; } 90 inline Basemenu *getTabmenu() { return tabmenu; }
89 inline Basemenu *getTabmenu(void) { return tabmenu; } 91
90 92 inline const Basemenu *getFocusmenu() const { return focusmenu; }
91 void reconfigure(void); 93 inline const Basemenu *getPlacementmenu() const { return placementmenu; }
94 inline const Basemenu *getTabmenu() const { return tabmenu; }
95
96 void reconfigure();
92}; 97};
93 98
94 99