im/content/engineManager.xul
author tbirdbld
Sat, 23 Apr 2016 03:05:08 -0700
changeset 22256 23315287d83f0de90d1d8f149b78a4a027b1466d
parent 18894 d2ea1083991b38ebbea2e9d33a8b998375fec692
permissions -rw-r--r--
No bug, Automated blocklist update from host bld-linux64-spot-361 - a=blocklist-update

<?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/"?>
<?xml-stylesheet href="chrome://instantbird/skin/engineManager.css"?>

<!DOCTYPE dialog SYSTEM "chrome://instantbird/locale/engineManager.dtd">

<dialog id="engineManager"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        buttons="accept,cancel,extra2"
        buttonlabelextra2="&restoreDefaults.label;"
        buttonaccesskeyextra2="&restoreDefaults.accesskey;"
        onload="gEngineManagerDialog.init();"
        ondialogaccept="gEngineManagerDialog.onOK();"
        ondialogcancel="gEngineManagerDialog.onCancel();"
        ondialogextra2="gEngineManagerDialog.onRestoreDefaults();"
        title="&engineManager.title;"
        style="&engineManager.style;"
        persist="screenX screenY"
        windowtype="Browser:SearchManager">

  <script type="application/x-javascript"
          src="chrome://instantbird/content/engineManager.js"/>
  <script type="application/x-javascript"
          src="chrome://global/content/nsDragAndDrop.js"/>

  <commandset id="engineManagerCommandSet">
    <command id="cmd_remove"
             oncommand="gEngineManagerDialog.remove();"
             disabled="true"/>
    <command id="cmd_moveup"
             oncommand="gEngineManagerDialog.bump(1);"
             disabled="true"/>
    <command id="cmd_movedown"
             oncommand="gEngineManagerDialog.bump(-1);"
             disabled="true"/>
    <command id="cmd_editkeyword"
             oncommand="gEngineManagerDialog.editKeyword();"
             disabled="true"/>
  </commandset>

  <keyset id="engineManagerKeyset">
    <key id="delete" keycode="VK_DELETE" command="cmd_remove"/>
  </keyset>

  <stringbundleset id="engineManagerBundleset">
    <stringbundle id="engineManagerBundle" src="chrome://instantbird/locale/engineManager.properties"/>
  </stringbundleset>

  <description>&engineManager.intro;</description>
  <separator class="thin"/>
  <hbox flex="1">
    <tree id="engineList" flex="1" rows="10" hidecolumnpicker="true"
          seltype="single" onselect="gEngineManagerDialog.onSelect();">
      <treechildren id="engineChildren" flex="1"
                    ondraggesture="nsDragAndDrop.startDrag(event, gDragObserver);"/>
      <treecols>
        <treecol id="engineName" flex="4" label="&columnLabel.name;"/>
        <treecol id="engineKeyword" flex="1" label="&columnLabel.keyword;"/>
      </treecols>
    </tree>
    <vbox>
      <spacer flex="1"/>
      <button id="edit"
              label="&edit.label;"
              accesskey="&edit.accesskey;"
              command="cmd_editkeyword"/>
      <button id="up"
              label="&up.label;"
              accesskey="&up.accesskey;"
              command="cmd_moveup"/>
      <button id="dn"
              label="&dn.label;"
              accesskey="&dn.accesskey;"
              command="cmd_movedown"/>
      <spacer flex="1"/>
      <button id="remove"
              label="&remove.label;"
              accesskey="&remove.accesskey;"
              command="cmd_remove"/>
    </vbox>
  </hbox>
  <hbox>
    <label id="addEngines" class="text-link" value="&addEngine.label;"
           onclick="if (event.button == 0) { gEngineManagerDialog.loadAddEngines(); }"/>
    <spacer flex="1"/>
  </hbox>
</dialog>