added a menu item for turning on GfxListboxes and GfxComboboxes and the the setting prefs

r=dcone b=18895
This commit is contained in:
rods%netscape.com 2000-03-24 15:52:21 +00:00
Родитель b96d5f84ab
Коммит 10f4c1107f
3 изменённых файлов: 30 добавлений и 0 удалений

Просмотреть файл

@ -923,6 +923,22 @@ nsBrowserWindow::DispatchMenuItem(PRInt32 aID)
}
break;
case VIEWER_GFX_LISTBOX_ON:
SetBoolPref("nglayout.widget.gfxlistbox", PR_TRUE);
break;
case VIEWER_GFX_LISTBOX_OFF:
SetBoolPref("nglayout.widget.gfxlistbox", PR_FALSE);
break;
case VIEWER_GFX_COMBOBOX_ON:
SetBoolPref("nglayout.widget.gfxcombobox", PR_TRUE);
break;
case VIEWER_GFX_COMBOBOX_OFF:
SetBoolPref("nglayout.widget.gfxcombobox", PR_FALSE);
break;
#ifdef PURIFY
case VIEWER_PURIFY_SHOW_NEW_LEAKS:
case VIEWER_PURIFY_SHOW_ALL_LEAKS:

Просмотреть файл

@ -82,6 +82,10 @@
#define VIEWER_USE_DTD_MODE 40079
#define VIEWER_STANDARD_MODE 40080
#define VIEWER_NAV_QUIRKS_MODE 40081
#define VIEWER_GFX_LISTBOX_ON 40082
#define VIEWER_GFX_LISTBOX_OFF 40083
#define VIEWER_GFX_COMBOBOX_ON 40084
#define VIEWER_GFX_COMBOBOX_OFF 40085
#define VIEWER_TOGGLE_PAINT_FLASHING 40200
#define VIEWER_TOGGLE_PAINT_DUMPING 40210

Просмотреть файл

@ -140,6 +140,16 @@ VIEWER MENU DISCARDABLE
MENUITEM "Gfx Off", VIEWER_GFX_SCROLLBARS_OFF
MENUITEM "Gfx On", VIEWER_GFX_SCROLLBARS_ON
}
POPUP "&Gfx Comboxbox Mode Pref"
{
MENUITEM "Gfx Off", VIEWER_GFX_COMBOBOX_OFF
MENUITEM "Gfx On", VIEWER_GFX_COMBOBOX_ON
}
POPUP "&Gfx Listbox Mode Pref"
{
MENUITEM "Gfx Off", VIEWER_GFX_LISTBOX_OFF
MENUITEM "Gfx On", VIEWER_GFX_LISTBOX_ON
}
}
POPUP "&URLs"
{