summaryrefslogtreecommitdiffstats
path: root/mailnews/base/search/content/CustomHeaders.xul
blob: c13a8dba82ae3575ed12b1055484da4105062fc9 (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
<?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://communicator/skin/" type="text/css"?>

<!DOCTYPE dialog SYSTEM "chrome://messenger/locale/CustomHeaders.dtd">
<dialog id="customHeadersDialog"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="onLoad();"
        ondialogaccept="return onOk();"
        ondialogextra1="onAddHeader();"
        ondialogextra2="onRemoveHeader();"
        style="width: 30em; height: 25em;"
        persist="width height screenX screenY"
        title="&window.title;"
        buttons="accept,cancel,extra1,extra2">

  <stringbundleset id="stringbundleset">
  <stringbundle id="bundle_filter" src="chrome://messenger/locale/filter.properties"/>
  <stringbundle id="bundle_custom" src="chrome://messenger/locale/custom.properties"/>
  </stringbundleset>

  <script type="application/javascript" src="chrome://messenger/content/CustomHeaders.js"/>

  <grid flex="1">
    <columns>
      <column flex="1"/>
      <column/>
    </columns>
    <rows>
      <row>
        <label accesskey="&newMsgHeader.accesskey;" control="headerInput" value="&newMsgHeader.label;"/>
      </row>
      <row>
        <textbox id="headerInput" onfocus="this.select();" oninput="onTextInput();"/>
      </row>

      <row flex="1">
        <vbox>
          <listbox id="headerList" flex="1" onselect="updateRemoveButton();" />
        </vbox>

        <vbox>
          <button id="addButton"
                  label="&addButton.label;"
                  accesskey="&addButton.accesskey;"
                  dlgtype="extra1"/>
          <button id="removeButton"
                  label="&removeButton.label;"
                  accesskey="&removeButton.accesskey;"
                  dlgtype="extra2"/>
        </vbox>
      </row>
    </rows>
  </grid>
</dialog>