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

<?xml-stylesheet href="chrome://messenger/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>

<!DOCTYPE window SYSTEM "chrome://messenger/locale/FilterListDialog.dtd" >
<window class="dialog"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  orient="vertical"
  title="&window.title;">

<script language="JavaScript" src="chrome://messenger/content/FilterListDialog.js"/>

  <box orient="horizontal">
    <text value="Filters for:"/>
    <menulist>
      <menupopup rdf:datasources="rdf:msgaccountmanager"
                 rdf:containment="http://home.netscape.com/NC-rdf#child"
                 ref="msgaccounts:/">
        <template>
          <menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
        </template>
      </menupopup>
    </menulist>
  </box>
  <box orient="horizontal" >
    <box orient="vertical" style="width:100%;" >
    <text value="&filterHeader.label;"/>
    <box orient="horizontal">
    <tree id="filterTree" class="inset" style="width: 35em">

      <treecol style="width: 85%" rdf:resource="http://home.netscape.com/NC-rdf#Name" id="nameColumn"/>
      <treecol style="width: 15%" id="activeColumn"/>

      <treehead>
        <treerow>
           <treecell persist="hidden width" value="&nameColumn.label;"/>
           <treecell persist="hidden width" value="&activeColumn.label;"/>
        </treerow>
      </treehead>
      <treechildren>
        <treeitem>
          <treerow indent="true">
            <treecell value="People from work"/>
            <treecell><checkbox/></treecell>
          </treerow>
        </treeitem>
        <treeitem>
          <treerow indent="true">
            <treecell value="People from work"/>
            <treecell><checkbox/></treecell>
	    </treerow>
      </treeitem>
      <treeitem>
        <treerow indent="true">
          <treecell value="People from college"/>
          <treecell><checkbox/></treecell>
		</treerow>
      </treeitem>
      <treeitem>
		<treerow indent="true">
          <treecell value="SPAM"/>
          <treecell><checkbox/></treecell>
	    </treerow>
      </treeitem>
    </treechildren>

    </tree>
    <box orient="vertical">
      <scrollbarbutton type="increment">
        <image src="chrome://global/skin/scroll-up.gif"/>
      </scrollbarbutton>
      <scrollbarbutton type="decrement">
        <image src="chrome://global/skin/scroll-down.gif"/>
      </scrollbarbutton>
    </box>
    </box>
    </box>
    <box orient="vertical">
      <button value="&newButton.label;" onclick="NewFilter();"/>
      <button value="&editButton.label;" onclick="EditFilter();"/>
      <button value="&deleteButton.label;" onclick="DeleteFilter();"/>
    </box>
  </box>
  <box orient="horizontal">
    <button value="&runFiltersNow.label;" width="0em"/>
    <spring flex="100%"/>
  </box>
  <separator class="groove"/>
  <box id="okCancelButtons"/>

</window>
