summaryrefslogtreecommitdiffstats
path: root/mailnews/base/content/virtualFolderProperties.xul
blob: 99c140e82c061ac79bd5e3d02d6f41dd92cac9c6 (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
<?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://messenger/skin/dialogs.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/searchDialog.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/messenger.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderMenus.css" type="text/css"?>

<?xul-overlay href="chrome://messenger/content/searchTermOverlay.xul"?>

<!DOCTYPE dialog [
<!ENTITY % folderDTD SYSTEM "chrome://messenger/locale/virtualFolderProperties.dtd">
  %folderDTD;
]>

<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        id="virtualFolderPropertiesDialog"
        title="&virtualFolderProperties.title;"
        onload="onLoad();"
        buttons="accept,cancel"
        newFolderAcceptButtonLabel="&newFolderButton.label;"
        newFolderAcceptButtonAccessKey="&newFolderButton.accesskey;"
        editFolderAcceptButtonLabel="&editFolderButton.label;"
        editFolderAcceptButtonAccessKey="&editFolderButton.accesskey;"
        style="width: 50em; height: 28em;"
        windowtype="mailnews:virtualFolderProperties"
        ondialogaccept="return onOK();">

  <stringbundleset id="stringbundleset">
    <stringbundle id="bundle_search"    src="chrome://messenger/locale/search.properties"/>
    <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
    <stringbundle id="bundle_folder"    src="chrome://messenger/locale/folderWidgets.properties"/>
  </stringbundleset>

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

  <grid>
    <columns>
      <column/>
      <column flex="1"/>
      <column flex="2"/>
    </columns>

    <rows>
      <row align="center">
        <label value="&name.label;" accesskey="&name.accesskey;" control="name"/>
        <textbox id="name" hidden="true"
                 oninput="doEnabling();"/>
        <filefield id="existingName" class="folderMenuItem"
                   hidden="true" tabindex="0"
                   SpecialFolder="Virtual"/>
        <spring/>
      </row>

      <row align="center"  id="chooseFolderLocationRow">
        <label value="&description.label;" accesskey="&description.accesskey;"
               control="msgNewFolderPicker"/>
        <menulist id="msgNewFolderPicker" class="folderMenuItem" flex="1"
                  displayformat="verbose">
          <menupopup id="msgNewFolderPopup"
                     class="menulist-menupopup"
                     type="folder"
                     mode="newFolder"
                     showFileHereLabel="true"
                     oncommand="onFolderPick(event);"/>
        </menulist>
        <spring/>
      </row>

      <row align="center">
        <label value="&folderSelectionCaption.label;"/>
        <hbox align="center">
          <label id="chosenFoldersCount"/>
          <spacer flex="1"/>
          <button label="&chooseFoldersButton.label;"
                  accesskey="&chooseFoldersButton.accesskey;"
                  oncommand="chooseFoldersToSearch();"/>
        </hbox>
      </row>
    </rows>
  </grid>

  <hbox flex="1">
    <checkbox id="searchOnline" label="&searchOnline.label;"
              accesskey="&searchOnline.accesskey;"/>
  </hbox>

  <separator class="thin"/>

  <vbox flex="2">
    <label value="&searchTermCaption.label;"/>
    <hbox flex="1">
      <vbox id="searchTermListBox" flex="2"/>
    </hbox>
  </vbox>

</dialog>