Fix for 80392, poor fit for pref panels. r=blake, sr=hewitt

This commit is contained in:
ben%netscape.com 2006-05-17 02:29:54 +00:00
Родитель f9b97793ae
Коммит 3fb58b147b
7 изменённых файлов: 97 добавлений и 112 удалений

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

@ -41,12 +41,12 @@
<box class="box-smallheader" title="&lHeader;"/>
<titledbox>
<titledbox flex="1">
<label value="&descript;"/>
<box orient="vertical" flex="1">
<text class="label" value="&fileTypes.label;"/>
<tree id="appTree" class="inset" flex="1"
<tree id="appTree" class="inset" flex="1" style="width: 0px; height: 0px;"
datasources="rdf:null" ref="urn:mimetypes"
onselect="selectApplication();">
<treecolgroup>

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

@ -41,8 +41,8 @@
<label value="&displayFonts;"/>
<box autostretch="never" valign="middle">
<text class="label" value="&language.label;" accesskey="&language.accesskey;" for="selectLangs"/>
<menulist id="selectLangs" oncommand="selectLanguage();">
<text class="label small-margin" value="&language.label;" accesskey="&language.accesskey;" for="selectLangs"/>
<menulist id="selectLangs" class="small-margin" oncommand="selectLanguage();">
<menupopup>
<menuitem value="x-western" label="&font.langGroup.latin1;"/>
<menuitem value="x-central-euro" label="&font.langGroup.latin2;"/>
@ -66,7 +66,7 @@
<text class="label" value="&variableFonts.label;"/>
<grid class="indent">
<grid>
<columns>
<column/>
<column flex="1"/>
@ -77,12 +77,12 @@
<rows>
<row autostretch="never" valign="middle">
<text class="label" value="&serif.label;" accesskey="&serif.accesskey;" for="serif"/>
<menulist id="serif">
<text class="label small-margin" value="&serif.label;" accesskey="&serif.accesskey;" for="serif"/>
<menulist id="serif" class="small-margin" flex="1" style="width: 0px;">
<menupopup/>
</menulist>
<text class="label" value="&size.label;" accesskey="&sizeVar.accesskey;" for="sizeVar"/>
<menulist id="sizeVar">
<text class="label small-margin" value="&size.label;" accesskey="&sizeVar.accesskey;" for="sizeVar"/>
<menulist id="sizeVar" class="small-margin">
<menupopup>
<menuitem value="8" label="8"/>
<menuitem value="9" label="9"/>
@ -110,8 +110,8 @@
<text class="label" value="&units.label;"/>
</row>
<row autostretch="never" valign="middle">
<text class="label" value="&sans-serif.label;" accesskey="&sans-serif.accesskey;" for="sans-serif"/>
<menulist id="sans-serif">
<text class="label small-margin" value="&sans-serif.label;" accesskey="&sans-serif.accesskey;" for="sans-serif"/>
<menulist id="sans-serif" class="small-margin" flex="1" style="width: 0px;">
<menupopup/>
</menulist>
<spring/>
@ -120,8 +120,8 @@
</row>
<!--
<row autostretch="never" valign="middle">
<text class="label" value="&cursive.label;" accesskey="&cursive.accesskey;" for="cursive"/>
<menulist id="cursive">
<text class="label small-margin" value="&cursive.label;" accesskey="&cursive.accesskey;" for="cursive"/>
<menulist id="cursive" class="small-margin">
<menupopup/>
</menulist>
<spring/>
@ -129,8 +129,8 @@
<spring/>
</row>
<row autostretch="never" valign="middle">
<text class="label" value="&fantasy.label;" accesskey="&fantasy.accesskey;" for="fantasy"/>
<menulist id="fantasy">
<text class="label small-margin" value="&fantasy.label;" accesskey="&fantasy.accesskey;" for="fantasy"/>
<menulist id="fantasy" class="small-margin">
<menupopup/>
</menulist>
<spring/>
@ -153,22 +153,13 @@
<text class="label" value="&fixedFonts.label;"/>
<grid class="indent">
<columns>
<column/>
<column flex="1"/>
<column/>
<column/>
<column/>
</columns>
<rows>
<row autostretch="never" valign="middle">
<text class="label" value="&monospace.label;" accesskey="&monospace.accesskey;" for="monospace"/>
<menulist id="monospace">
<hbox autostretch="never" valign="middle">
<text class="label small-margin" value="&monospace.label;" accesskey="&monospace.accesskey;" for="monospace"/>
<menulist id="monospace" class="small-margin" flex="1" style="width: 0px;" crop="right">
<menupopup/>
</menulist>
<text class="label" value="&size.label;" accesskey="&sizeMono.accesskey;" for="sizeMono"/>
<menulist id="sizeMono">
<text class="label small-margin" value="&size.label;" accesskey="&sizeMono.accesskey;" for="sizeMono"/>
<menulist id="sizeMono" class="small-margin">
<menupopup>
<menuitem value="8" label="8"/>
<menuitem value="9" label="9"/>
@ -194,18 +185,12 @@
</menupopup>
</menulist>
<text class="label" value="&units.label;"/>
</row>
</rows>
</grid>
</hbox>
<separator class="thin"/>
<box autostretch="never">
<!-- note that this removes the ability to select dynamic fonts -->
<checkbox id="browserUseDocumentFonts"
<checkbox id="browserUseDocumentFonts" class="small-margin"
label="&useDocumentFonts.label;" accesskey="&useDocumentFonts.accesskey;"
preftype="int" prefstring="browser.display.use_document_fonts"/>
</box>
</titledbox>

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

@ -56,7 +56,7 @@
<html>&languages.customize.active.label;</html>
<box flex="1">
<tree class="inset" id="active_languages" flex="1"
<tree class="inset" id="active_languages" flex="1" style="width: 0px; height: 0px;"
datasources="rdf:null" multiple="true" onselect="SelectLanguage();">
<treecolgroup>
<treecol flex="1"/>
@ -90,7 +90,6 @@
</titledbox>
<titledbox orient="vertical" autostretch="never">
<label value="&languages.customize.Charset.grouplabel;"/>
<box autostretch="never">
<text class="label" value="&languages.customize.DefaultCharset.label;" for="DefaultCharsetList"/>
<menulist id="DefaultCharsetList" ref="NC:DecodersRoot" datasources="rdf:charset-menu"
pref="true" preftype="string" prefstring="intl.charset.default"
@ -101,6 +100,5 @@
</menupopup>
</template>
</menulist>
</box>
</titledbox>
</window>

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

@ -41,7 +41,7 @@
<box class="box-smallheader" id="OfflineHeader" title="&boxHeader;"/>
<titledbox orient="vertical">
<titledbox orient="vertical" class="small-margin">
<label value="&rHeader;"/>
<html> &descipt1;</html>
@ -49,31 +49,31 @@
<radiogroup id="offlineStartupstate" orient="vertical" autostretch="never"
pref="true" preftype="int" prefstring="offline.startup_state"
prefattribute="value">
<radio group="offlineStartupstate" value="0" label="&prevRadio;"/>
<radio group="offlineStartupstate" value="1" label="&askOfflineRadio;"/>
<radio class="small-margin" group="offlineStartupstate" value="0" label="&prevRadio;"/>
<radio class="small-margin" group="offlineStartupstate" value="1" label="&askOfflineRadio;"/>
</radiogroup>
</titledbox>
<titledbox orient="vertical">
<titledbox orient="vertical" class="small-margin">
<label value="&header2;"/>
<radiogroup id="whengoingOnlinestate" orient="vertical" autostretch="never"
pref="true" preftype="int" prefstring="offline.send.unsent_messages"
prefattribute="value">
<radio group="whengoingOnlinestate" value="0" label="&unsentAskRadio;"/>
<radio group="whengoingOnlinestate" value="1" label="&unsentAutoRadio;"/>
<radio group="whengoingOnlinestate" value="2" label="&unsentDoNotRadio;"/>
<radio class="small-margin" group="whengoingOnlinestate" value="0" label="&unsentAskRadio;"/>
<radio class="small-margin" group="whengoingOnlinestate" value="1" label="&unsentAutoRadio;"/>
<radio class="small-margin" group="whengoingOnlinestate" value="2" label="&unsentDoNotRadio;"/>
</radiogroup>
</titledbox>
<titledbox orient="vertical">
<titledbox orient="vertical" class="small-margin">
<label value="&header3;"/>
<radiogroup id="whengoingOfflinestate" orient="vertical" autostretch="never"
pref="true" preftype="int" prefstring="offline.download.download_messages"
prefattribute="value">
<radio group="whengoingOfflinestate" value="0" label="&unsentAskDownloadRadio;"/>
<radio group="whengoingOfflinestate" value="1" label="&unsentAutoDownloadRadio;"/>
<radio group="whengoingOfflinestate" value="2" label="&unsentDoNotDownloadRadio;"/>
<radio class="small-margin" group="whengoingOfflinestate" value="0" label="&unsentAskDownloadRadio;"/>
<radio class="small-margin" group="whengoingOfflinestate" value="1" label="&unsentAutoDownloadRadio;"/>
<radio class="small-margin" group="whengoingOfflinestate" value="2" label="&unsentDoNotDownloadRadio;"/>
</radiogroup>
</titledbox>

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

@ -58,11 +58,13 @@
<titledbox orient="vertical">
<label value="&searchResults.label;"/>
<box autostretch="never">
<!-- XXX - unfortunately we can't have an autostretch never box here
because it causes the text not to wrap and the panel content
to go offscreen. We need to come up with a better solution
to allow wrapping and even focusrings - ben@netscape.com -->
<checkbox id="openSidebarPanel" label="&openSidebarSearchPanel.label;" accesskey="&openSidebarSearchPanel.accesskey;"
pref="true" preftype="bool" prefstring="browser.search.opensidebarsearchpanel"
prefattribute="checked"/>
</box>
</titledbox>
</window>

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

@ -184,34 +184,34 @@
<box class="box-smallheader" title="&lHeader;"/>
<titledbox orient="vertical">
<titledbox orient="vertical" flex="1">
<label value="&whatsRelated.label;"/>
<html id="doNotAcceptText">&doNotDecp.label;</html>
<html class="small-margin" id="doNotAcceptText">&doNotDecp.label;</html>
<grid flex="1">
<columns>
<column flex="1"/>
<column/>
<column flex="4"/>
<column flex="3"/>
</columns>
<rows>
<row>
<tree class="inset" id="disabledDomains" multiple="true" onkeyup="treeHandleEvent(event)" style="height: 65px;" flex="1">
<row flex="1">
<tree class="inset" id="disabledDomains" multiple="true" onkeyup="treeHandleEvent(event)" style="height: 0px; width: 0px;" flex="1">
<treecolgroup>
<treecol flex="1"/>
</treecolgroup>
<treechildren id="disabledKids" flex="1"/>
</tree>
<box autostretch="never" valign="top">
<vbox>
<button class="dialog" id="removeDomain" label="&removeDomain.label;" accesskey="&removeDomain.accesskey;"
oncommand="removeDomain();" pref="true" preftype="bool"
prefstring="pref.browser.smartbrowsing.disable_button.remove" prefattribute="disabled"/>
</box>
</vbox>
</row>
<row>
<box autostretch="never">
<text class="label" id="domainText" value="&domain.label;" accesskey="&domain.accesskey;" for="addDomain"/>
<textbox id="addDomain" flex="1" oninput="doButtonEnabling();"
<text class="label small-margin" id="domainText" value="&domain.label;" accesskey="&domain.accesskey;" for="addDomain"/>
<textbox class="small-margin" id="addDomain" flex="1" oninput="doButtonEnabling();"
prefstring="pref.browser.smartbrowsing.disable_textbox.add" prefattribute="disabled"/>
</box>
<button disabled="true" class="dialog" id="addDomainButton" label="&addDomain.label;" accesskey="&addDomain.accesskey;"
@ -229,14 +229,14 @@
<titledbox orient="vertical">
<label value="&internetKeywordsHeader.label;"/>
<html>&internetKeywordsDescription.label;</html>
<html class="small-margin">&internetKeywordsDescription.label;</html>
<box autostretch="never">
<checkbox id="browserGoBrowsingEnabled" label="&keywordsEnabled.label;" accesskey="&keywordsEnabled.accesskey;"
<checkbox class="small-margin" id="browserGoBrowsingEnabled" label="&keywordsEnabled.label;" accesskey="&keywordsEnabled.accesskey;"
pref="true" preftype="bool" prefstring="keyword.enabled"
prefattribute="checked"/>
<spring flex="1"/>
<button class="dialog" label="&moreInformation.label;" accesskey="&moreInformation.accesskey;" oncommand="moreInfo();"
<button class="small-margin" label="&moreInformation.label;" accesskey="&moreInformation.accesskey;" oncommand="moreInfo();"
id="moreInformationButton" pref="true" preftype="bool"
prefstring="pref.browser.smartbrowsing.disable_button.more_info" prefattribute="disabled"/>
</box>
@ -245,9 +245,9 @@
<titledbox orient="vertical">
<label value="&autoCompleteHeader.label;"/>
<html>&autoCompleteDescription.label;</html>
<html class="small-margin">&autoCompleteDescription.label;</html>
<box autostretch="never">
<checkbox id="browserAutoCompleteEnabled" label="&autoCompleteEnabled.label;" accesskey="&autoCompleteEnabled.accesskey;"
<checkbox class="small-margin" id="browserAutoCompleteEnabled" label="&autoCompleteEnabled.label;" accesskey="&autoCompleteEnabled.accesskey;"
pref="true" preftype="bool" prefstring="browser.urlbar.autocomplete.enabled"
prefattribute="checked"/>
<spring flex="1"/>

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

@ -16,7 +16,7 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&prefWindow.title;"
orient="vertical" class="dialog"
style="width: 51em; height: 40em;"
style="width: 52em; height: 41em;"
onload="Startup();"
persist="screenX screenY">