rjc%netscape.com bc37c75bec Small XUL changes (flex on boxes) to get things visible again.
git-svn-id: svn://10.0.0.236/trunk@68003 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 01:38:16 +00:00

160 lines
6.0 KiB
XML

<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
<!--
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.org 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.
Original Author(s):
Robert John Churchill <rjc@netscape.com>
Contributor(s):
-->
<?xml-stylesheet href="chrome://communicator/skin/search/search.css" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/search/search-editor.css" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://communicator/locale/search/search-editor.dtd">
<window title="&window.title.label;" id="search-editor-window"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:web="http://home.netscape.com/WEB-rdf#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width="540" height="340" x="20" y="20" persist="width height x y" align="vertical"
windowtype="internetsearch:editor" class="dialog"
onload="doLoad()" onunload="doUnload()"
>
<html:script language="Javascript" src="chrome://global/content/strres.js"/>
<html:script language="Javascript" src="chrome://communicator/content/search/search-editor.js" />
<titledbox orient="vertical" flex="100%" >
<box align="horizontal" autostretch="never">
<text value="&category.label;" />
<menulist id="categoryList" ref="NC:SearchCategoryRoot" datasources="rdf:null" >
<template>
<menupopup>
<menuitem uri="rdf:*" oncommand="return chooseCategory(this);"
data="rdf:http://home.netscape.com/NC-rdf#category"
value="rdf:http://home.netscape.com/NC-rdf#title" />
</menupopup>
</template>
<menupopup id="categoryPopup" />
</menulist>
<spring align="horizontal" flex="100%" />
</box>
<box align="horizontal" flex="100%">
<tree multiple="true" flex="100%" class="inset" id="engineList" datasources="rdf:internetsearch">
<template>
<treechildren>
<treeitem uri="...">
<treerow>
<treecell>
<titledbutton class="iconic" flex="100%" crop="right" align="left"
src="rdf:http://home.netscape.com/NC-rdf#Icon"
value="rdf:http://home.netscape.com/NC-rdf#Name" />
</treecell>
</treerow>
</treeitem>
</treechildren>
</template>
<treecol id="EngineColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name" />
<treehead>
<treerow>
<treecell observes="EngineColumn" align="center" value="&engine.column.label;" resource="http://home.netscape.com/NC-rdf#Name" flex="100%"/>
</treerow>
</treehead>
</tree>
<box align="vertical" flex="50%" class="button-group" >
<spring align="vertical" flex="100%" />
<box align="horizontal">
<spring align="horizontal" flex="100%" />
<titledbutton id="add-button" onclick="return AddEngine()" value="&add.label;" class="dialog toolbar-non-iconic" />
<spring align="horizontal" flex="100%" />
</box>
<box align="horizontal">
<spring align="horizontal" flex="100%" />
<titledbutton id="remove-button" onclick="return RemoveEngine()" value="&remove.label;" class="dialog toolbar-non-iconic" />
<spring align="horizontal" flex="100%" />
</box>
<spring align="vertical" flex="100%" />
<!-- The 'reorder' buttons -->
<box id="reorder" align="vertical" autostretch="never">
<spring flex="100%"/>
<titledbutton oncommand="MoveUp();" id="up" class="up small dialog toolbar-non-iconic" />
<titledbutton oncommand="MoveDown();" id="down" class="down small dialog toolbar-non-iconic" />
<spring flex="100%"/>
</box>
<spring align="vertical" flex="100%" />
</box>
<tree multiple="true" flex="100%" class="inset" id="allengines" ref="NC:SearchEngineRoot" datasources="rdf:internetsearch">
<template>
<treechildren>
<treeitem uri="..." loading="rdf:http://home.netscape.com/NC-rdf#loading">
<treerow>
<treecell>
<titledbutton class="iconic" flex="100%" crop="right" align="left"
src="rdf:http://home.netscape.com/NC-rdf#Icon"
value="rdf:http://home.netscape.com/NC-rdf#Name" />
</treecell>
</treerow>
</treeitem>
</treechildren>
</template>
<treecol id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name" sortActive="true" sortDirection="ascending" />
<treehead>
<treerow>
<treecell observes="NameColumn" align="center" value="&allengines.label;" resource="http://home.netscape.com/NC-rdf#Name" onclick="return doSort('NameColumn', null);" sortActive="true" sortDirection="ascending" flex="100%"/>
</treerow>
</treehead>
</tree>
</box>
<box align="horizontal" class="button-group">
<titledbutton id="new-category-button" onclick="NewCategory()" value="&new.category.label;" class="dialog toolbar-non-iconic" />
<titledbutton id="rename-category-button" onclick="RenameCategory()" value="&rename.category.label;" class="dialog toolbar-non-iconic" />
<titledbutton id="remove-category.buttom" onclick="RemoveCategory()" value="&remove.category.label;" class="dialog toolbar-non-iconic" />
<spring align="horizontal" flex="100%" />
</box>
</titledbox>
<box autostretch="never">
<spring flex="100%"/>
<titledbutton id="done.button" onclick="Commit()" value="&done.label;" class="dialog toolbar-non-iconic" />
</box>
</window>