1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/viewconfig/content/config.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,98 @@ 1.4 +<?xml version="1.0"?> 1.5 + 1.6 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.7 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.9 + 1.10 +<?xml-stylesheet href="chrome://global/skin/config.css" type="text/css"?> 1.11 + 1.12 +<!DOCTYPE window SYSTEM "chrome://global/locale/config.dtd"> 1.13 + 1.14 +<window id="config" 1.15 + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.16 + title="&window.title;" 1.17 + windowtype="Preferences:ConfigManager" 1.18 + role="application" 1.19 + aria-describedby="warningTitle warningText" 1.20 + width="750" 1.21 + height="500" 1.22 + disablefastfind="true" 1.23 + onunload="onConfigUnload();" 1.24 + onload="onConfigLoad();"> 1.25 + 1.26 +<script src="chrome://global/content/config.js"/> 1.27 + 1.28 +<stringbundle id="configBundle" src="chrome://global/locale/config.properties"/> 1.29 + 1.30 +<menupopup id="configContext" onpopupshowing="if (event.target == this) updateContextMenu();"> 1.31 + <menuitem id="toggleSelected" default="true" 1.32 + label="&toggle.label;" accesskey="&toggle.accesskey;" 1.33 + oncommand="ModifySelected();"/> 1.34 + <menuitem id="modifySelected" default="true" 1.35 + label="&modify.label;" accesskey="&modify.accesskey;" 1.36 + oncommand="ModifySelected();"/> 1.37 + <menuseparator/> 1.38 + <menuitem id="copyPref" label="©Pref.label;" accesskey="©Pref.accesskey;" oncommand="copyPref();"/> 1.39 + <menuitem id="copyName" label="©Name.label;" accesskey="©Name.accesskey;" oncommand="copyName();"/> 1.40 + <menuitem id="copyValue" label="©Value.label;" accesskey="©Value.accesskey;" oncommand="copyValue();"/> 1.41 + <menu label="&new.label;" accesskey="&new.accesskey;"> 1.42 + <menupopup> 1.43 + <menuitem label="&string.label;" accesskey="&string.accesskey;" oncommand="NewPref(nsIPrefBranch.PREF_STRING);"/> 1.44 + <menuitem label="&integer.label;" accesskey="&integer.accesskey;" oncommand="NewPref(nsIPrefBranch.PREF_INT);"/> 1.45 + <menuitem label="&boolean.label;" accesskey="&boolean.accesskey;" oncommand="NewPref(nsIPrefBranch.PREF_BOOL);"/> 1.46 + </menupopup> 1.47 + </menu> 1.48 + <menuitem id="resetSelected" label="&reset.label;" accesskey="&reset.accesskey;" oncommand="ResetSelected();"/> 1.49 +</menupopup> 1.50 + 1.51 +<keyset id="configTreeKeyset" disabled="true"> 1.52 + <key keycode="VK_RETURN" oncommand="ModifySelected();"/> 1.53 + <key key="&focusSearch.key;" modifiers="accel" oncommand="document.getElementById('textbox').focus();"/> 1.54 +</keyset> 1.55 +<deck id="configDeck" flex="1"> 1.56 + <vbox id="warningScreen" flex="1" align="center" style="overflow: auto;"> 1.57 + <spacer flex="1"/> 1.58 + <hbox id="warningBox" align="top"> 1.59 + <image id="exclam"/> 1.60 + <vbox id="warningInnerBox" flex="1"> 1.61 + <label id="warningTitle">&aboutWarningTitle.label;</label> 1.62 + <label id="warningText">&aboutWarningText.label;</label> 1.63 + <checkbox id="showWarningNextTime" label="&aboutWarningCheckbox.label;" checked="true"/> 1.64 + <hbox pack="center"> 1.65 + <button id="warningButton" oncommand="ShowPrefs();" label="&aboutWarningButton.label;"/> 1.66 + </hbox> 1.67 + </vbox> 1.68 + </hbox> 1.69 + <spacer flex="2"/> 1.70 + </vbox> 1.71 + <vbox flex="1"> 1.72 + <hbox id="filterRow" align="center"> 1.73 + <label value="&searchPrefs.label;" accesskey="&searchPrefs.accesskey;" control="textbox"/> 1.74 + <textbox id="textbox" flex="1" type="search" class="compact" 1.75 + aria-controls="configTree" 1.76 + oncommand="FilterPrefs();"/> 1.77 + </hbox> 1.78 + 1.79 + <tree id="configTree" flex="1" seltype="single" 1.80 + onselect="updateCommands('select');" 1.81 + enableColumnDrag="true" context="configContext"> 1.82 + <treecols> 1.83 + <treecol id="prefCol" label="&prefColumn.label;" flex="7" 1.84 + ignoreincolumnpicker="true" 1.85 + persist="hidden width ordinal sortDirection"/> 1.86 + <splitter class="tree-splitter" /> 1.87 + <treecol id="lockCol" label="&lockColumn.label;" flex="1" 1.88 + persist="hidden width ordinal sortDirection"/> 1.89 + <splitter class="tree-splitter" /> 1.90 + <treecol id="typeCol" label="&typeColumn.label;" flex="1" 1.91 + persist="hidden width ordinal sortDirection"/> 1.92 + <splitter class="tree-splitter" /> 1.93 + <treecol id="valueCol" label="&valueColumn.label;" flex="10" 1.94 + persist="hidden width ordinal sortDirection"/> 1.95 + </treecols> 1.96 + 1.97 + <treechildren id="configTreeBody" ondblclick="if (event.button == 0) ModifySelected();"/> 1.98 + </tree> 1.99 + </vbox> 1.100 +</deck> 1.101 +</window>