<?xml version="1.0"?>
<!-- 
  The contents of this file are subject to the Netscape Public
  License Version 1.1 (the "License"); you may not use this file
  except in compliance with the License. You may obtain a copy of
  the License at http://www.mozilla.org/NPL/
  
  Software distributed under the License is distributed on an "AS
  IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  implied. See the License for the specific language governing
  rights and limitations under the License.
  
  The Original Code is Mozilla Communicator client code, released
  March 31, 1998.
  
  The Initial Developer of the Original Code is Netscape
  Communications Corporation. Portions created by Netscape are
  Copyright (C) 1998-1999 Netscape Communications Corporation. All
  Rights Reserved.
  
  Contributor(s):
-->

<!-- CHANGE THIS WHEN MOVING FILES -->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?> 
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>

<!-- CHANGE THIS WHEN MOVING FILES -->
<!DOCTYPE window SYSTEM "chrome://communicator/locale/wallet/WalletEditor.dtd" >

<window id="walleteditor"
        class="dialog"
        title="&windowtitle.label;"
        xmlns:html="http://www.w3.org/TR/REC-html40"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        align="vertical"
        onload="Startup()">

  <html:script src="chrome://communicator/content/wallet/WalletEditor.js"/>
  <html:script language="javascript" src="chrome://global/content/strres.js" />

  <keyset id="keyset"/>
           
    <box id="system" flex="100%" align="vertical">
      <spring style="height: 7px;"/>
      <text class="label" value="&div.walletdataonsystem.label;"/>
      <separator orient="horizontal" class="groove"/>
      <spring style="height: 10px;"/>
      <box id="system1" flex="100%" align="horizontal">
        <spring style="width: 7px;"/>
        <div style="width: 195px;">
          <text class="label" value="&treehead.schemaname.label;"/>
          <tree multiple="true" id="schematree" class="inset"
             style="height: 250px; width: 195px;" align="vertical" onclick="ViewEntries();">
            <treecol width="100%"/>
            <treechildren id="schemalist"/>
          </tree>
          <spring flex="5%"/>
          <spring style="height: 7px;"/>
          <box align="horizontal">
            <button id="removeSchema" class="dialog push" disabled="true" value="&button.remove.label;" onclick="DeleteSchema();"/>
            <button id="addSchema" class="dialog push" disabled="false" value="&button.add.label;" onclick="AddSchema();"/>
          </box>
        </div>
        <spring style="width: 7px;"/>
        <div style="width: 195px;">
          <text class="label" value="&treehead.entries.label;"/>
          <tree multiple="true" id="entrytree" class="inset"
            style="height: 113px; width: 195px;" align="vertical" onclick="ViewSynonyms();">
            <treecol width="100%"/>
            <treechildren id="entrieslist"/>
          </tree>
          <spring style="height: 7px;"/>
          <text class="label" value="&treehead.synonyms.label;"/>
          <tree multiple="true" id="synonymtree" class="inset"
            style="height: 113px; width: 195px;" align="vertical" onclick="SynonymSelected();">
            <treecol width="100%"/>
            <treechildren id="synonymslist"/>
          </tree>
        </div>
        <spring style="width: 7px;"/>
        <div>
          <box align="vertical">
            <spring style="height: 12px;"/>
            <button id="removeEntry" class="dialog push" disabled="true" value="&button.remove.label;" onclick="DeleteEntry();"/>
            <button id="addEntry" class="dialog push" disabled="false" value="&button.add.label;" onclick="AddEntry();"/>
            <spring style="height: 88px;"/>
            <button id="removeSynonym" class="dialog push" disabled="true" value="&button.remove.label;" onclick="DeleteSynonym();"/>
            <button id="addSynonym" class="dialog push" disabled="false" value="&button.add.label;" onclick="AddSynonym();"/>
          </box>
        </div>
        <spring style="width: 7px;"/>
      </box>
    </box>
    <separator orient="horizontal" class="groove"/>

  <!-- from dialogOverlay.xul -->
  <spring style="height: 5px;"/>
  <box align="horizontal">
    <spring flex="100%"/>
    <box id="okCancelButtons"/>
  </box>
  <spring style="height: 5px;"/>

</window>
