diff options
author | fluxgen <fluxgen> | 2001-12-11 20:47:02 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2001-12-11 20:47:02 (GMT) |
commit | 18830ac9add80cbd3bf7369307d7e35a519dca9b (patch) | |
tree | 4759a5434a34ba317fe77bbf8b0ed9bb57bb6018 /src/Configmenu.hh | |
parent | 1523b48bff07dead084af3064ad11c79a9b25df0 (diff) | |
download | fluxbox-18830ac9add80cbd3bf7369307d7e35a519dca9b.zip fluxbox-18830ac9add80cbd3bf7369307d7e35a519dca9b.tar.bz2 |
Initial revision
Diffstat (limited to 'src/Configmenu.hh')
-rw-r--r-- | src/Configmenu.hh | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/src/Configmenu.hh b/src/Configmenu.hh new file mode 100644 index 0000000..4713634 --- /dev/null +++ b/src/Configmenu.hh | |||
@@ -0,0 +1,95 @@ | |||
1 | // Configmenu.hh for Blackbox - An X11 Window Manager | ||
2 | // Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net) | ||
3 | // | ||
4 | // Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | // copy of this software and associated documentation files (the "Software"), | ||
6 | // to deal in the Software without restriction, including without limitation | ||
7 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | // and/or sell copies of the Software, and to permit persons to whom the | ||
9 | // Software is furnished to do so, subject to the following conditions: | ||
10 | // | ||
11 | // The above copyright notice and this permission notice shall be included in | ||
12 | // all copies or substantial portions of the Software. | ||
13 | // | ||
14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
17 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
20 | // DEALINGS IN THE SOFTWARE. | ||
21 | |||
22 | #ifndef _CONFIGMENU_HH_ | ||
23 | #define _CONFIGMENU_HH_ | ||
24 | |||
25 | // forward declaration | ||
26 | class Configmenu; | ||
27 | |||
28 | #include "Basemenu.hh" | ||
29 | #include "Screen.hh" | ||
30 | #include "fluxbox.hh" | ||
31 | |||
32 | |||
33 | class Configmenu : public Basemenu { | ||
34 | private: | ||
35 | class Focusmenu : public Basemenu { | ||
36 | private: | ||
37 | Configmenu *configmenu; | ||
38 | |||
39 | protected: | ||
40 | virtual void itemSelected(int, int); | ||
41 | |||
42 | public: | ||
43 | Focusmenu(Configmenu *); | ||
44 | }; | ||
45 | |||
46 | class Placementmenu : public Basemenu { | ||
47 | private: | ||
48 | Configmenu *configmenu; | ||
49 | |||
50 | protected: | ||
51 | virtual void itemSelected(int, int); | ||
52 | |||
53 | public: | ||
54 | Placementmenu(Configmenu *); | ||
55 | }; | ||
56 | |||
57 | class Tabmenu : public Basemenu { | ||
58 | private: | ||
59 | Configmenu *configmenu; | ||
60 | void setSelected(void); | ||
61 | protected: | ||
62 | virtual void itemSelected(int, int); | ||
63 | |||
64 | public: | ||
65 | Tabmenu(Configmenu *); | ||
66 | }; | ||
67 | |||
68 | // Fluxbox *fluxbox; | ||
69 | BScreen *screen; | ||
70 | Focusmenu *focusmenu; | ||
71 | Placementmenu *placementmenu; | ||
72 | Tabmenu *tabmenu; | ||
73 | |||
74 | friend class Focusmenu; | ||
75 | friend class Placementmenu; | ||
76 | friend class Tabmenu; | ||
77 | |||
78 | |||
79 | protected: | ||
80 | virtual void itemSelected(int, int); | ||
81 | |||
82 | |||
83 | public: | ||
84 | Configmenu(BScreen *); | ||
85 | virtual ~Configmenu(void); | ||
86 | |||
87 | inline Basemenu *getFocusmenu(void) { return focusmenu; } | ||
88 | inline Basemenu *getPlacementmenu(void) { return placementmenu; } | ||
89 | inline Basemenu *getTabmenu(void) { return tabmenu; } | ||
90 | |||
91 | void reconfigure(void); | ||
92 | }; | ||
93 | |||
94 | |||
95 | #endif // _CONFIGMENU_HH_ | ||