diff options
author | fluxgen <fluxgen> | 2002-01-05 11:06:01 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-01-05 11:06:01 (GMT) |
commit | 0b9a37f303b7c1a093e6bc5b8ff7a4015e93e780 (patch) | |
tree | 846aa7d2aea77704aa7974e97f20ad1050d7474a /src/Configmenu.cc | |
parent | 91d554e6e30bfea3ab2353ad7756f285926c9983 (diff) | |
download | fluxbox-0b9a37f303b7c1a093e6bc5b8ff7a4015e93e780.zip fluxbox-0b9a37f303b7c1a093e6bc5b8ff7a4015e93e780.tar.bz2 |
Added maximize over slit menuitem
Diffstat (limited to 'src/Configmenu.cc')
-rw-r--r-- | src/Configmenu.cc | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/Configmenu.cc b/src/Configmenu.cc index 4eba0d6..edb527a 100644 --- a/src/Configmenu.cc +++ b/src/Configmenu.cc | |||
@@ -34,10 +34,8 @@ | |||
34 | #include "Toolbar.hh" | 34 | #include "Toolbar.hh" |
35 | #include "Window.hh" | 35 | #include "Window.hh" |
36 | 36 | ||
37 | #define CMENU_USE_TABS 8 | 37 | enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, CMENU_TAB_ROTATE=21}; |
38 | #define CMENU_USE_ICONS 9 | 38 | |
39 | #define CMENU_SLOPPY_WIN_GROUP 10 | ||
40 | #define CMENU_TAB_ROTATE 21 | ||
41 | 39 | ||
42 | Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { | 40 | Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { |
43 | screen = scr; | 41 | screen = scr; |
@@ -114,6 +112,14 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { | |||
114 | 0, 0, | 112 | 0, 0, |
115 | #endif // NLS | 113 | #endif // NLS |
116 | "Focus Last Window on Workspace"), 5); | 114 | "Focus Last Window on Workspace"), 5); |
115 | insert(i18n->getMessage( | ||
116 | #ifdef NLS | ||
117 | ConfigmenuSet, ConfigmenuMaxOverSlit, | ||
118 | #else // !NLS | ||
119 | 0, 0, | ||
120 | #endif // NLS | ||
121 | "Maxmize Over Slit"), 6); | ||
122 | |||
117 | 123 | ||
118 | insert(i18n->getMessage( | 124 | insert(i18n->getMessage( |
119 | #ifdef NLS | 125 | #ifdef NLS |
@@ -138,6 +144,7 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { | |||
138 | "Sloppy Window Grouping"), CMENU_SLOPPY_WIN_GROUP); | 144 | "Sloppy Window Grouping"), CMENU_SLOPPY_WIN_GROUP); |
139 | 145 | ||
140 | update(); | 146 | update(); |
147 | setItemSelected(8, screen->doMaxOverSlit()); | ||
141 | 148 | ||
142 | setItemSelected(3, screen->getImageControl()->doDither()); | 149 | setItemSelected(3, screen->getImageControl()->doDither()); |
143 | setItemSelected(4, screen->doOpaqueMove()); | 150 | setItemSelected(4, screen->doOpaqueMove()); |
@@ -187,6 +194,12 @@ void Configmenu::itemSelected(int button, int index) { | |||
187 | case 4: // focus new windows | 194 | case 4: // focus new windows |
188 | screen->saveFocusNew((! screen->doFocusNew())); | 195 | screen->saveFocusNew((! screen->doFocusNew())); |
189 | 196 | ||
197 | |||
198 | case 6: // maximize over slit | ||
199 | screen->saveMaxOverSlit((! screen->doMaxOverSlit())); | ||
200 | setItemSelected(index, screen->doMaxOverSlit()); | ||
201 | break; | ||
202 | |||
190 | setItemSelected(index, screen->doFocusNew()); | 203 | setItemSelected(index, screen->doFocusNew()); |
191 | break; | 204 | break; |
192 | 205 | ||