Added maximize over slit menuitem

This commit is contained in:
fluxgen 2002-01-05 11:06:01 +00:00
parent 91d554e6e3
commit 0b9a37f303

View file

@ -34,10 +34,8 @@
#include "Toolbar.hh" #include "Toolbar.hh"
#include "Window.hh" #include "Window.hh"
#define CMENU_USE_TABS 8 enum {CMENU_USE_TABS=9, CMENU_USE_ICONS, CMENU_SLOPPY_WIN_GROUP, CMENU_TAB_ROTATE=21};
#define CMENU_USE_ICONS 9
#define CMENU_SLOPPY_WIN_GROUP 10
#define CMENU_TAB_ROTATE 21
Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) { Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) {
screen = scr; screen = scr;
@ -114,6 +112,14 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) {
0, 0, 0, 0,
#endif // NLS #endif // NLS
"Focus Last Window on Workspace"), 5); "Focus Last Window on Workspace"), 5);
insert(i18n->getMessage(
#ifdef NLS
ConfigmenuSet, ConfigmenuMaxOverSlit,
#else // !NLS
0, 0,
#endif // NLS
"Maxmize Over Slit"), 6);
insert(i18n->getMessage( insert(i18n->getMessage(
#ifdef NLS #ifdef NLS
@ -138,6 +144,7 @@ Configmenu::Configmenu(BScreen *scr) : Basemenu(scr) {
"Sloppy Window Grouping"), CMENU_SLOPPY_WIN_GROUP); "Sloppy Window Grouping"), CMENU_SLOPPY_WIN_GROUP);
update(); update();
setItemSelected(8, screen->doMaxOverSlit());
setItemSelected(3, screen->getImageControl()->doDither()); setItemSelected(3, screen->getImageControl()->doDither());
setItemSelected(4, screen->doOpaqueMove()); setItemSelected(4, screen->doOpaqueMove());
@ -187,6 +194,12 @@ void Configmenu::itemSelected(int button, int index) {
case 4: // focus new windows case 4: // focus new windows
screen->saveFocusNew((! screen->doFocusNew())); screen->saveFocusNew((! screen->doFocusNew()));
case 6: // maximize over slit
screen->saveMaxOverSlit((! screen->doMaxOverSlit()));
setItemSelected(index, screen->doMaxOverSlit());
break;
setItemSelected(index, screen->doFocusNew()); setItemSelected(index, screen->doFocusNew());
break; break;