summaryrefslogtreecommitdiffstats
path: root/toolkit/components/viewconfig/content/config.xhtml
blob: 5a5faf5ddf2b0320fe21aaea5a8e558a336830fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0"?>

<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
<?xml-stylesheet href="chrome://global/skin/in-content/info-pages.css" type="text/css"?>
<?xml-stylesheet href="chrome://global/skin/config.css" type="text/css"?>

<window id="config"
        csp="default-src chrome:; object-src 'none'"
        data-l10n-id="config-window"
        aria-describedby="warningTitle warningText"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:html="http://www.w3.org/1999/xhtml"
        windowtype="Preferences:ConfigManager"
        role="application"
        width="750"
        height="500">

<linkset>
  <html:link rel="localization" href="toolkit/about/aboutConfig.ftl"/>
</linkset>

<script src="chrome://global/content/config.js"/>
<script src="chrome://global/content/editMenuOverlay.js"/>
<script src="chrome://global/content/globalOverlay.js"/>

<menupopup id="configContext">
  <menuitem id="toggleSelected" data-l10n-id="config-toggle" default="true"/>
  <menuitem id="modifySelected" data-l10n-id="config-modify" default="true"/>
  <menuseparator/>
  <menuitem id="copyPref" data-l10n-id="config-copy-pref"/>
  <menuitem id="copyName" data-l10n-id="config-copy-name"/>
  <menuitem id="copyValue" data-l10n-id="config-copy-value"/>
  <menu data-l10n-id="config-new">
    <menupopup>
      <menuitem id="configString" data-l10n-id="config-string"/>
      <menuitem id="configInt" data-l10n-id="config-integer"/>
      <menuitem id="configBool" data-l10n-id="config-boolean"/>
    </menupopup>
  </menu>
  <menuitem id="resetSelected" data-l10n-id="config-reset"/>
</menupopup>

<keyset id="configTreeKeyset" disabled="true">
  <key id="keyVKReturn" keycode="VK_RETURN"/>
  <key id="configFocuSearch" modifiers="accel" data-l10n-id="config-focus-search"/>
  <key id="configFocuSearch2" modifiers="accel" data-l10n-id="config-focus-search-2"/>
</keyset>
<deck id="configDeck" flex="1">
  <vbox id="warningScreen" flex="1" align="center" style="overflow: auto;">
    <spacer flex="1"/>
    <vbox id="warningBox" class="container">
      <hbox class="title" flex="1">
        <label id="warningTitle" data-l10n-id="config-about-warning-title" class="title-text" flex="1"></label>
      </hbox>
      <vbox class="description" flex="1">
        <label id="warningText" data-l10n-id="config-about-warning-text"></label>
        <checkbox id="showWarningNextTime" data-l10n-id="config-about-warning-checkbox" checked="true"/>
        <hbox class="button-container">
          <button id="warningButton" data-l10n-id="config-about-warning-button" class="primary"/>
        </hbox>
      </vbox>
    </vbox>
    <spacer flex="2"/>
  </vbox>
  <vbox flex="1">
    <hbox id="filterRow" align="center">
      <label data-l10n-id="config-search-prefs" control="textbox"/>
      <search-textbox id="textbox" flex="1"
                      aria-controls="configTree"/>
    </hbox>
    <tree id="configTree" flex="1" seltype="single"
          enableColumnDrag="true" context="configContext">
      <treecols>
        <!--
          The below code may suggest that 'ordinal' is still a supported XUL
          attribute. It is not. This is a crutch so that we can continue
          persisting the CSS -moz-box-ordinal-group attribute, which is the
          appropriate replacement for the ordinal attribute but cannot yet
          be easily persisted. The code that synchronizes the attribute with
          the CSS lives in toolkit/content/widget/tree.js and is specific to
          tree elements.
        -->
        <treecol id="prefCol" data-l10n-id="config-pref-column" flex="7"
            ignoreincolumnpicker="true"
            persist="hidden width ordinal sortDirection"/>
        <splitter class="tree-splitter" />
        <treecol id="lockCol" data-l10n-id="config-lock-column" flex="1"
            persist="hidden width ordinal sortDirection"/>
        <splitter class="tree-splitter" />
        <treecol id="typeCol" data-l10n-id="config-type-column" flex="1"
            persist="hidden width ordinal sortDirection"/>
        <splitter class="tree-splitter" />
        <treecol id="valueCol" data-l10n-id="config-value-column" flex="10"
            persist="hidden width ordinal sortDirection"/>
      </treecols>

      <treechildren id="configTreeBody"/>
    </tree>
  </vbox>
</deck>
</window>