mailnews/base/search/content/FilterEditor.xul
author Richard Marti <richard.marti@gmail.com>
Sun, 25 Nov 2018 13:15:02 +0100
changeset 33778 b75abd6ba2b3388ef37fc54725c02cb4eff93571
parent 33775 57b3ea524f1df2ba4ed65b55a17413fbec194d07
child 33830 6e49a3ec00cd10eb0bddad465f5f6a7254e8bc6c
permissions -rw-r--r--
Bug 1508611 - Set orient="vertical" on splitter in filter editor to show it immediately. r=jorgk

<?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/. -->

#ifndef MOZ_SUITE
<?xml-stylesheet href="chrome://messenger/content/bindings.css" type="text/css"?>
#endif
<?xml-stylesheet href="chrome://messenger/skin/filterDialog.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderPane.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderMenus.css" type="text/css"?>

<!DOCTYPE dialog [
  <!ENTITY % filterEditorDTD SYSTEM "chrome://messenger/locale/FilterEditor.dtd">
  %filterEditorDTD;
  <!ENTITY % searchTermDTD SYSTEM "chrome://messenger/locale/searchTermOverlay.dtd">
  %searchTermDTD;
]>

<dialog id="FilterEditor"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  title="&window.title;"
  style="&filterEditorDialog.dimensions;"
  windowtype="mailnews:filtereditor"
  persist="width height screenX screenY"
  buttons="accept,cancel"
  onload="filterEditorOnLoad();"
  onunload="filterEditorOnUnload();"
  ondialogaccept="return onAccept();">

  <dummy class="usesMailWidgets"/>
  <stringbundleset id="stringbundleset">
    <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
    <stringbundle id="bundle_filter" src="chrome://messenger/locale/filter.properties"/>
    <stringbundle id="bundle_search" src="chrome://messenger/locale/search.properties"/>
  </stringbundleset>

  <script type="application/javascript" src="chrome://messenger/content/mailWindowOverlay.js"/>
  <script type="application/javascript" src="chrome://messenger/content/mailCommands.js"/>
  <script type="application/javascript" src="chrome://messenger/content/FilterEditor.js"/>
#ifndef MOZ_THUNDERBIRD
  <script type="application/javascript" src="chrome://messenger/content/searchTermOverlay.js"/>
#else
  <script type="application/javascript" src="chrome://messenger/content/searchTerm.js"/>
#endif
  <script type="application/javascript" src="chrome://messenger/content/dateFormat.js"/>

  <commandset>
    <command id="cmd_updateFilterType" oncommand="updateFilterType();"/>
    <command id="cmd_updateClassificationMenu" oncommand="gFilterTypeSelector.updateClassificationMenu();"/>
  </commandset>

  <vbox>
    <hbox align="center">
      <label value="&filterName.label;" accesskey="&filterName.accesskey;" control="filterName"/>
      <textbox flex="1" id="filterName"/>
      <spacer flex="1"/>
    </hbox>
  </vbox>

  <separator class="thin"/>

  <vbox flex="1">
    <groupbox>
      <caption>&contextDesc.label;</caption>
      <grid>
        <columns>
          <column/>
          <column/>
        </columns>
        <rows>
          <row>
            <checkbox id="runManual"
                      label="&contextManual.label;"
                      accesskey="&contextManual.accesskey;"
                      command="cmd_updateFilterType"/>
          </row>
          <row>
            <checkbox id="runIncoming"
                      label="&contextIncomingMail.label;"
                      accesskey="&contextIncomingMail.accesskey;"
                      command="cmd_updateClassificationMenu"/>
            <menulist id="pluginsRunOrder"
                      command="cmd_updateFilterType">
              <menupopup>
                <menuitem id="runBeforePlugins"
                          label="&contextBeforeCls.label;"/>
                <menuitem id="runAfterPlugins"
                          label="&contextAfterCls.label;"/>
              </menupopup>
            </menulist>
          </row>
          <row>
            <checkbox id="runArchive"
                      label="&contextArchive.label;"
                      accesskey="&contextArchive.accesskey;"
                      command="cmd_updateFilterType"/>
          </row>
          <row>
            <checkbox id="runOutgoing"
                      label="&contextOutgoing.label;"
                      accesskey="&contextOutgoing.accesskey;"
                      command="cmd_updateFilterType"/>
          </row>
        </rows>
      </grid>
    </groupbox>

    <vbox id="searchTermListBox" flex="1">
#include searchTerm.inc
  </vbox>

  <splitter id="gray_horizontal_splitter" persist="state" orient="vertical"/>

  <vbox flex="1">
    <label value="&filterActionDesc.label;"
           accesskey="&filterActionDesc.accesskey;"
           control="filterActionList"/>
    <richlistbox id="filterActionList"
                 flex="1"
                 style="min-height: 100px;"
                 onfocus="setLastActionFocus();"
                 focusedAction="0">
      <treecols hidden="true">
        <treecol flex="&filterActionTypeFlexValue;"/>
        <treecol flex="&filterActionTargetFlexValue;"/>
        <treecol/>
      </treecols>
    </richlistbox>
  </vbox>

  <vbox id="statusbar" style="visibility: hidden;">
    <hbox align="center">
      <label>
        &filterActionOrderWarning.label;
      </label>
      <label class="text-link" onclick="showActionsOrder();">&filterActionOrder.label;</label>
    </hbox>
  </vbox>
</dialog>