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

 The Initial Developer of the Original Code is Netscape Communications
 Corporation.  Portions created by Netscape are
 Copyright (C) 1998 Netscape Communications Corporation. All
 Rights Reserved.

 Contributor(s):
 Alec Flett <alecf@netscape.com>
-->

<!DOCTYPE window SYSTEM "chrome://messenger/locale/searchTermOverlay.dtd" >

<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="chrome://messenger/content/searchTermOverlay.js"/>

  <titledbox orient="vertical" id="searchTermListBox">
    <title>
      <text value="&conditions.label;"/>
    </title>
    <text value="&conditionDesc.label;"/>
    <radiogroup id="booleanAndGroup" selectedItem="or" oncommand="booleanChanged(event);">
      <radio group="booleanAndGroup" data="and" value="&matchAll.label;"/>
      <radio group="booleanAndGroup" checked="true" data="or" value="&matchAny.label;"/>
    </radiogroup>

    <spring class="spacer"/>
    <box>
    <box id="searchterms"/>
    <tree rows="5" class="inset" flex="1" id="searchTermTree">
      <treecolgroup>
        <treecol flex="1"/>
        <treecol flex="4"/>
        <treecol flex="0"/>
        <treecol flex="4"/>
        <treecol flex="0"/>
        <treecol flex="4"/>
        <treecol flex="0"/>
      </treecolgroup>

      <treechildren flex="1" id="searchTermList">

<!-- this is what the treerows will look like:
        <treeitem id="searchListItem">
          <treerow>
            <treecell id="preSearchAttr"/>
            <treecell allowevents="true">
              <searchattribute id="searchAttr" for="searchOp,searchValue" flex="1"/>
            </treecell>
            <treecell id="preSearchOp"/>
            <treecell allowevents="true">
              <searchoperator id="searchOp" flex="1"/>
            </treecell>
            <treecell id="preSearchValue"/>
            <treecell allowevents="true" >
              <searchvalue id="searchValue" flex="1"/>
            </treecell>
            <treecell id="postSearchValue"/>
          </treerow>
        </treeitem>
        <treeitem>
          <treerow>
            <treecell value="the.."/>
            <treecell value="contains.."/>
            <treecell value="text here"/>
          </treerow>
        </treeitem>
-->
       </treechildren>
      
    </tree>
  </box>
  <box>
    <button id="more" value="&more.label;" onclick="onMore(event);"/>
    <button id="less" value="&less.label;" disabled="true" onclick="onLess(event);"/>
  </box>
  </titledbox>
</overlay>
