Move the debug prefs to their own panel. Add Invalidate() flashing

debug pref for debuggin painting events.
This commit is contained in:
ramiro%netscape.com 1999-09-07 19:36:48 +00:00
Родитель 563928f869
Коммит 83ca30e0f7
20 изменённых файлов: 354 добавлений и 83 удалений

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

@ -109,38 +109,5 @@
</box>
</html:form>
<!-- Temporary hack to turn on gfx-rendered widgets -->
<html:form>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&widgetRendering.label;</html:div>
</html:legend>
<box align="horizontal">
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:0:int:nglayout.widget.mode" />
<html:label for="pref:0:int:nglayout.widget.mode" accesskey="n" tabindex="0">
&nativeWidgets.label;
</html:label>
</html:div>
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:1:int:nglayout.widget.mode" />
<html:label for="pref:1:int:nglayout.widget.mode" accesskey="n" tabindex="0">
&partialGfxWidgets.label;
</html:label>
</html:div>
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:2:int:nglayout.widget.mode" />
<html:label for="pref:2:int:nglayout.widget.mode" accesskey="g" tabindex="0">
&gfxWidgets.label;
</html:label>
</html:div>
</box>
</html:fieldset>
</box>
</html:form>
</html:div>
</window>

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

@ -0,0 +1,94 @@
<?xml version="1.0"?>
<!--
The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s):
-->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-debug.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="return StartUp('Debug');" align="horizontal" title="&window.title;">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<html:div flex="100%">
<box id="header" style="width:100%" align="horizontal">
<spring style="width:20px"/>
<html:div style="vertical-align: middle;">
<html:B>&lHeader;</html:B>
</html:div>
<spring flex="100%"/>
<html:div>&rHeader;</html:div>
<spring style="width:5px"/>
</box>
<!-- Temporary hack to turn on gfx-rendered widgets -->
<html:form>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&widgetRendering.label;</html:div>
</html:legend>
<box align="horizontal">
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:0:int:nglayout.widget.mode" />
<html:label for="pref:0:int:nglayout.widget.mode" accesskey="n" tabindex="0">
&nativeWidgets.label;
</html:label>
</html:div>
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:1:int:nglayout.widget.mode" />
<html:label for="pref:1:int:nglayout.widget.mode" accesskey="n" tabindex="0">
&partialGfxWidgets.label;
</html:label>
</html:div>
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:2:int:nglayout.widget.mode" />
<html:label for="pref:2:int:nglayout.widget.mode" accesskey="g" tabindex="0">
&gfxWidgets.label;
</html:label>
</html:div>
</box>
</html:fieldset>
</box>
</html:form>
<!-- Temporary hack to turn on invalidate area flashing -->
<html:form>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&widgetFlashing.label;</html:div>
</html:legend>
<box align="horizontal">
<html:input type="checkbox" id="pref:0:bool:nglayout.widget.flash_invalidate_areas" />
<html:label for="pref:0:bool:nglayout.widget.flash_invalidate_areas" accesskey="n" tabindex="0">
&widgetFlashing.label;
</html:label>
</box>
</html:fieldset>
</box>
</html:form>
</html:div>
</window>

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

@ -223,6 +223,13 @@
</treeitem>
</treechildren>
<treeitem open="true">
<treerow>
<treecell name="chrome://pref/content/pref-debug.xul"><treeindentation/>&debug.label;</treecell>
</treerow>
</treeitem>
</tree>
</html:div>

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

@ -0,0 +1,94 @@
<?xml version="1.0"?>
<!--
The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s):
-->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-debug.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="return StartUp('Debug');" align="horizontal" title="&window.title;">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<html:div flex="100%">
<box id="header" style="width:100%" align="horizontal">
<spring style="width:20px"/>
<html:div style="vertical-align: middle;">
<html:B>&lHeader;</html:B>
</html:div>
<spring flex="100%"/>
<html:div>&rHeader;</html:div>
<spring style="width:5px"/>
</box>
<!-- Temporary hack to turn on gfx-rendered widgets -->
<html:form>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&widgetRendering.label;</html:div>
</html:legend>
<box align="horizontal">
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:0:int:nglayout.widget.mode" />
<html:label for="pref:0:int:nglayout.widget.mode" accesskey="n" tabindex="0">
&nativeWidgets.label;
</html:label>
</html:div>
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:1:int:nglayout.widget.mode" />
<html:label for="pref:1:int:nglayout.widget.mode" accesskey="n" tabindex="0">
&partialGfxWidgets.label;
</html:label>
</html:div>
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:2:int:nglayout.widget.mode" />
<html:label for="pref:2:int:nglayout.widget.mode" accesskey="g" tabindex="0">
&gfxWidgets.label;
</html:label>
</html:div>
</box>
</html:fieldset>
</box>
</html:form>
<!-- Temporary hack to turn on invalidate area flashing -->
<html:form>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&widgetFlashing.label;</html:div>
</html:legend>
<box align="horizontal">
<html:input type="checkbox" id="pref:0:bool:nglayout.widget.flash_invalidate_areas" />
<html:label for="pref:0:bool:nglayout.widget.flash_invalidate_areas" accesskey="n" tabindex="0">
&widgetFlashing.label;
</html:label>
</box>
</html:fieldset>
</box>
</html:form>
</html:div>
</window>

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

@ -0,0 +1,15 @@
<!-- extracted from content/pref-debug.xul -->
<!ENTITY window.title "Debug">
<!ENTITY lHeader "Debug">
<!ENTITY rHeader "Layout and Rendering debugging preferences">
<!-- Debug: Turn on gfx-rendered widgets -->
<!ENTITY widgetRendering.label "Debug: Widget rendering">
<!ENTITY nativeWidgets.label "native">
<!ENTITY partialGfxWidgets.label "partial-gfx">
<!ENTITY gfxWidgets.label "gfx">
<!-- Debug: Flash Invalidate() areas -->
<!ENTITY widgetFlashing.label "Flash Invalidate() Areas">

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

@ -13,9 +13,3 @@
<!ENTITY picsNtextRadio.label "Pictures and Text">
<!ENTITY picsOnlyRadio.label "Pictures Only">
<!ENTITY textonlyRadio.label "Text Only">
<!-- Debug: Turn on gfx-rendered widgets -->
<!ENTITY widgetRendering.label "Debug: Widget rendering">
<!ENTITY nativeWidgets.label "native">
<!ENTITY partialGfxWidgets.label "partial-gfx">
<!ENTITY gfxWidgets.label "gfx">

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

@ -0,0 +1,15 @@
<!-- extracted from content/pref-debug.xul -->
<!ENTITY window.title "Debug">
<!ENTITY lHeader "Debug">
<!ENTITY rHeader "Layout and Rendering debugging preferences">
<!-- Debug: Turn on gfx-rendered widgets -->
<!ENTITY widgetRendering.label "Debug: Widget rendering">
<!ENTITY nativeWidgets.label "native">
<!ENTITY partialGfxWidgets.label "partial-gfx">
<!ENTITY gfxWidgets.label "gfx">
<!-- Debug: Flash Invalidate() areas -->
<!ENTITY widgetFlashing.label "Flash Invalidate() Areas">

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

@ -23,3 +23,4 @@
<!ENTITY cache.label "Cache">
<!ENTITY proxies.label "Proxies">
<!ENTITY smart.label "Smart Update">
<!ENTITY debug.label "Debug">

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

@ -4,6 +4,7 @@ pref-applications.xul
pref-cache.xul
pref-colors.xul
pref-composer.xul
pref-debug.xul
pref-download.xul
pref-fonts.xul
pref-languages.xul

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

@ -27,12 +27,16 @@ include $(topsrcdir)/config/config.mk
include $(topsrcdir)/config/rules.mk
EXPORT_RESOURCE_CONTENT = \
$(srcdir)/PrefsWindow.html \
$(srcdir)/PrefsWindow.js \
$(srcdir)/PrefsWindow.xul \
$(srcdir)/pref-advanced.xul \
$(srcdir)/pref-appearance.xul \
$(srcdir)/pref-applications.xul \
$(srcdir)/pref-cache.xul \
$(srcdir)/pref-colors.xul \
$(srcdir)/pref-composer.xul \
$(srcdir)/pref-debug.xul \
$(srcdir)/pref-download.xul \
$(srcdir)/pref-fonts.xul \
$(srcdir)/pref-languages.xul \
@ -43,9 +47,6 @@ EXPORT_RESOURCE_CONTENT = \
$(srcdir)/pref-select.html \
$(srcdir)/pref-smart_browsing.xul \
$(srcdir)/pref-smartupdate.xul \
$(srcdir)/PrefsWindow.html \
$(srcdir)/PrefsWindow.js \
$(srcdir)/PrefsWindow.xul \
$(srcdir)/preftree.xul \
$(NULL)

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

@ -26,6 +26,7 @@ install::
$(MAKE_INSTALL) pref-cache.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-colors.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-composer.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-debug.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-download.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-fonts.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-languages.xul $(DIST)\bin\chrome\pref\content\default

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

@ -109,38 +109,5 @@
</box>
</html:form>
<!-- Temporary hack to turn on gfx-rendered widgets -->
<html:form>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&widgetRendering.label;</html:div>
</html:legend>
<box align="horizontal">
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:0:int:nglayout.widget.mode" />
<html:label for="pref:0:int:nglayout.widget.mode" accesskey="n" tabindex="0">
&nativeWidgets.label;
</html:label>
</html:div>
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:1:int:nglayout.widget.mode" />
<html:label for="pref:1:int:nglayout.widget.mode" accesskey="n" tabindex="0">
&partialGfxWidgets.label;
</html:label>
</html:div>
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:2:int:nglayout.widget.mode" />
<html:label for="pref:2:int:nglayout.widget.mode" accesskey="g" tabindex="0">
&gfxWidgets.label;
</html:label>
</html:div>
</box>
</html:fieldset>
</box>
</html:form>
</html:div>
</window>

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

@ -0,0 +1,94 @@
<?xml version="1.0"?>
<!--
The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s):
-->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-debug.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="return StartUp('Debug');" align="horizontal" title="&window.title;">
<html:script language="javascript" src="chrome://pref/content/PrefsWindow.js"/>
<html:div flex="100%">
<box id="header" style="width:100%" align="horizontal">
<spring style="width:20px"/>
<html:div style="vertical-align: middle;">
<html:B>&lHeader;</html:B>
</html:div>
<spring flex="100%"/>
<html:div>&rHeader;</html:div>
<spring style="width:5px"/>
</box>
<!-- Temporary hack to turn on gfx-rendered widgets -->
<html:form>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&widgetRendering.label;</html:div>
</html:legend>
<box align="horizontal">
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:0:int:nglayout.widget.mode" />
<html:label for="pref:0:int:nglayout.widget.mode" accesskey="n" tabindex="0">
&nativeWidgets.label;
</html:label>
</html:div>
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:1:int:nglayout.widget.mode" />
<html:label for="pref:1:int:nglayout.widget.mode" accesskey="n" tabindex="0">
&partialGfxWidgets.label;
</html:label>
</html:div>
<html:div>
<html:input name="widgetRendering" type="radio" id="pref:2:int:nglayout.widget.mode" />
<html:label for="pref:2:int:nglayout.widget.mode" accesskey="g" tabindex="0">
&gfxWidgets.label;
</html:label>
</html:div>
</box>
</html:fieldset>
</box>
</html:form>
<!-- Temporary hack to turn on invalidate area flashing -->
<html:form>
<box align="vertical" style="width: 100%;">
<html:fieldset style="width: 100%;">
<html:legend align="left">
<html:div>&widgetFlashing.label;</html:div>
</html:legend>
<box align="horizontal">
<html:input type="checkbox" id="pref:0:bool:nglayout.widget.flash_invalidate_areas" />
<html:label for="pref:0:bool:nglayout.widget.flash_invalidate_areas" accesskey="n" tabindex="0">
&widgetFlashing.label;
</html:label>
</box>
</html:fieldset>
</box>
</html:form>
</html:div>
</window>

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

@ -223,6 +223,13 @@
</treeitem>
</treechildren>
<treeitem open="true">
<treerow>
<treecell name="chrome://pref/content/pref-debug.xul"><treeindentation/>&debug.label;</treecell>
</treerow>
</treeitem>
</tree>
</html:div>

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

@ -4,6 +4,7 @@ pref-applications.dtd
pref-cache.dtd
pref-colors.dtd
pref-composer.dtd
pref-debug.dtd
pref-download.dtd
pref-fonts.dtd
pref-languages.dtd

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

@ -27,12 +27,14 @@ include $(topsrcdir)/config/config.mk
include $(topsrcdir)/config/rules.mk
EXPORT_RESOURCE_CONTENT = \
$(srcdir)/PrefsWindow.dtd \
$(srcdir)/pref-advanced.dtd \
$(srcdir)/pref-appearance.dtd \
$(srcdir)/pref-applications.dtd \
$(srcdir)/pref-cache.dtd \
$(srcdir)/pref-colors.dtd \
$(srcdir)/pref-composer.dtd \
$(srcdir)/pref-debug.dtd \
$(srcdir)/pref-download.dtd \
$(srcdir)/pref-fonts.dtd \
$(srcdir)/pref-languages.dtd \
@ -41,8 +43,7 @@ EXPORT_RESOURCE_CONTENT = \
$(srcdir)/pref-proxies.dtd \
$(srcdir)/pref-publish.dtd \
$(srcdir)/pref-smart_browsing.dtd \
$(srcdir)/pref-smartupdate.dtd \
$(srcdir)/PrefsWindow.dtd \
$(srcdir)/pref-smartupdate.dtd \
$(srcdir)/preftree.dtd \
$(NULL)

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

@ -27,6 +27,7 @@ install::
$(MAKE_INSTALL) pref-colors.dtd $(DIST)\bin\chrome\pref\locale\en-US
$(MAKE_INSTALL) pref-composer.dtd $(DIST)\bin\chrome\pref\locale\en-US
$(MAKE_INSTALL) pref-download.dtd $(DIST)\bin\chrome\pref\locale\en-US
$(MAKE_INSTALL) pref-debug.dtd $(DIST)\bin\chrome\pref\locale\en-US
$(MAKE_INSTALL) pref-fonts.dtd $(DIST)\bin\chrome\pref\locale\en-US
$(MAKE_INSTALL) pref-languages.dtd $(DIST)\bin\chrome\pref\locale\en-US
$(MAKE_INSTALL) pref-navigator.dtd $(DIST)\bin\chrome\pref\locale\en-US

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

@ -13,9 +13,3 @@
<!ENTITY picsNtextRadio.label "Pictures and Text">
<!ENTITY picsOnlyRadio.label "Pictures Only">
<!ENTITY textonlyRadio.label "Text Only">
<!-- Debug: Turn on gfx-rendered widgets -->
<!ENTITY widgetRendering.label "Debug: Widget rendering">
<!ENTITY nativeWidgets.label "native">
<!ENTITY partialGfxWidgets.label "partial-gfx">
<!ENTITY gfxWidgets.label "gfx">

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

@ -0,0 +1,15 @@
<!-- extracted from content/pref-debug.xul -->
<!ENTITY window.title "Debug">
<!ENTITY lHeader "Debug">
<!ENTITY rHeader "Layout and Rendering debugging preferences">
<!-- Debug: Turn on gfx-rendered widgets -->
<!ENTITY widgetRendering.label "Debug: Widget rendering">
<!ENTITY nativeWidgets.label "native">
<!ENTITY partialGfxWidgets.label "partial-gfx">
<!ENTITY gfxWidgets.label "gfx">
<!-- Debug: Flash Invalidate() areas -->
<!ENTITY widgetFlashing.label "Flash Invalidate() Areas">

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

@ -23,3 +23,4 @@
<!ENTITY cache.label "Cache">
<!ENTITY proxies.label "Proxies">
<!ENTITY smart.label "Smart Update">
<!ENTITY debug.label "Debug">