toolkit/components/viewconfig/content/config.xul

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 <?xml version="1.0"?>
michael@0 2
michael@0 3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 - License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
michael@0 6
michael@0 7 <?xml-stylesheet href="chrome://global/skin/config.css" type="text/css"?>
michael@0 8
michael@0 9 <!DOCTYPE window SYSTEM "chrome://global/locale/config.dtd">
michael@0 10
michael@0 11 <window id="config"
michael@0 12 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 13 title="&window.title;"
michael@0 14 windowtype="Preferences:ConfigManager"
michael@0 15 role="application"
michael@0 16 aria-describedby="warningTitle warningText"
michael@0 17 width="750"
michael@0 18 height="500"
michael@0 19 disablefastfind="true"
michael@0 20 onunload="onConfigUnload();"
michael@0 21 onload="onConfigLoad();">
michael@0 22
michael@0 23 <script src="chrome://global/content/config.js"/>
michael@0 24
michael@0 25 <stringbundle id="configBundle" src="chrome://global/locale/config.properties"/>
michael@0 26
michael@0 27 <menupopup id="configContext" onpopupshowing="if (event.target == this) updateContextMenu();">
michael@0 28 <menuitem id="toggleSelected" default="true"
michael@0 29 label="&toggle.label;" accesskey="&toggle.accesskey;"
michael@0 30 oncommand="ModifySelected();"/>
michael@0 31 <menuitem id="modifySelected" default="true"
michael@0 32 label="&modify.label;" accesskey="&modify.accesskey;"
michael@0 33 oncommand="ModifySelected();"/>
michael@0 34 <menuseparator/>
michael@0 35 <menuitem id="copyPref" label="&copyPref.label;" accesskey="&copyPref.accesskey;" oncommand="copyPref();"/>
michael@0 36 <menuitem id="copyName" label="&copyName.label;" accesskey="&copyName.accesskey;" oncommand="copyName();"/>
michael@0 37 <menuitem id="copyValue" label="&copyValue.label;" accesskey="&copyValue.accesskey;" oncommand="copyValue();"/>
michael@0 38 <menu label="&new.label;" accesskey="&new.accesskey;">
michael@0 39 <menupopup>
michael@0 40 <menuitem label="&string.label;" accesskey="&string.accesskey;" oncommand="NewPref(nsIPrefBranch.PREF_STRING);"/>
michael@0 41 <menuitem label="&integer.label;" accesskey="&integer.accesskey;" oncommand="NewPref(nsIPrefBranch.PREF_INT);"/>
michael@0 42 <menuitem label="&boolean.label;" accesskey="&boolean.accesskey;" oncommand="NewPref(nsIPrefBranch.PREF_BOOL);"/>
michael@0 43 </menupopup>
michael@0 44 </menu>
michael@0 45 <menuitem id="resetSelected" label="&reset.label;" accesskey="&reset.accesskey;" oncommand="ResetSelected();"/>
michael@0 46 </menupopup>
michael@0 47
michael@0 48 <keyset id="configTreeKeyset" disabled="true">
michael@0 49 <key keycode="VK_RETURN" oncommand="ModifySelected();"/>
michael@0 50 <key key="&focusSearch.key;" modifiers="accel" oncommand="document.getElementById('textbox').focus();"/>
michael@0 51 </keyset>
michael@0 52 <deck id="configDeck" flex="1">
michael@0 53 <vbox id="warningScreen" flex="1" align="center" style="overflow: auto;">
michael@0 54 <spacer flex="1"/>
michael@0 55 <hbox id="warningBox" align="top">
michael@0 56 <image id="exclam"/>
michael@0 57 <vbox id="warningInnerBox" flex="1">
michael@0 58 <label id="warningTitle">&aboutWarningTitle.label;</label>
michael@0 59 <label id="warningText">&aboutWarningText.label;</label>
michael@0 60 <checkbox id="showWarningNextTime" label="&aboutWarningCheckbox.label;" checked="true"/>
michael@0 61 <hbox pack="center">
michael@0 62 <button id="warningButton" oncommand="ShowPrefs();" label="&aboutWarningButton.label;"/>
michael@0 63 </hbox>
michael@0 64 </vbox>
michael@0 65 </hbox>
michael@0 66 <spacer flex="2"/>
michael@0 67 </vbox>
michael@0 68 <vbox flex="1">
michael@0 69 <hbox id="filterRow" align="center">
michael@0 70 <label value="&searchPrefs.label;" accesskey="&searchPrefs.accesskey;" control="textbox"/>
michael@0 71 <textbox id="textbox" flex="1" type="search" class="compact"
michael@0 72 aria-controls="configTree"
michael@0 73 oncommand="FilterPrefs();"/>
michael@0 74 </hbox>
michael@0 75
michael@0 76 <tree id="configTree" flex="1" seltype="single"
michael@0 77 onselect="updateCommands('select');"
michael@0 78 enableColumnDrag="true" context="configContext">
michael@0 79 <treecols>
michael@0 80 <treecol id="prefCol" label="&prefColumn.label;" flex="7"
michael@0 81 ignoreincolumnpicker="true"
michael@0 82 persist="hidden width ordinal sortDirection"/>
michael@0 83 <splitter class="tree-splitter" />
michael@0 84 <treecol id="lockCol" label="&lockColumn.label;" flex="1"
michael@0 85 persist="hidden width ordinal sortDirection"/>
michael@0 86 <splitter class="tree-splitter" />
michael@0 87 <treecol id="typeCol" label="&typeColumn.label;" flex="1"
michael@0 88 persist="hidden width ordinal sortDirection"/>
michael@0 89 <splitter class="tree-splitter" />
michael@0 90 <treecol id="valueCol" label="&valueColumn.label;" flex="10"
michael@0 91 persist="hidden width ordinal sortDirection"/>
michael@0 92 </treecols>
michael@0 93
michael@0 94 <treechildren id="configTreeBody" ondblclick="if (event.button == 0) ModifySelected();"/>
michael@0 95 </tree>
michael@0 96 </vbox>
michael@0 97 </deck>
michael@0 98 </window>

mercurial