mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
155 lines
6.0 KiB
XML
155 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/" type="text/css"?>
|
|
<?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" orient="vertical"
|
|
windowtype="internetsearch:editor" class="dialog"
|
|
onload="doLoad()" onunload="doUnload()">
|
|
|
|
<script language="Javascript" src="chrome://global/content/strres.js"></script>
|
|
<script language="Javascript" src="chrome://communicator/content/search/search-editor.js"></script>
|
|
|
|
<keyset id="keyset"/>
|
|
|
|
<box flex="1">
|
|
|
|
<tree multiple="true" flex="5" 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 class="treecell-indent" crop="right"
|
|
src="rdf:http://home.netscape.com/NC-rdf#Icon"
|
|
value="rdf:http://home.netscape.com/NC-rdf#Name" />
|
|
</treerow>
|
|
</treeitem>
|
|
</treechildren>
|
|
</template>
|
|
|
|
<treecol id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name" sortActive="true" sortDirection="ascending" />
|
|
|
|
<treehead>
|
|
<treerow>
|
|
<treecell class="treecell-header sortDirectionIndicator outset" observes="NameColumn"
|
|
value="&allengines.label;" resource="http://home.netscape.com/NC-rdf#Name"
|
|
sortActive="true" sortDirection="ascending"
|
|
onclick="return doSort('NameColumn', null);" />
|
|
</treerow>
|
|
</treehead>
|
|
</tree>
|
|
<box orient="vertical">
|
|
<spring flex="1"/>
|
|
<button class="dialog right" id="add-button" oncommand="return AddEngine()" value="&add.label;" />
|
|
<button class="dialog left" id="remove-button" oncommand="return RemoveEngine()" value="&remove.label;" />
|
|
<spring flex="1"/>
|
|
</box>
|
|
<box orient="vertical" flex="1">
|
|
<box flex="1">
|
|
<tree class="inset" multiple="true" flex="1" id="engineList" datasources="rdf:internetsearch">
|
|
<template>
|
|
<treechildren>
|
|
<treeitem uri="...">
|
|
<treerow>
|
|
<treecell class="treecell-iconic" crop="right"
|
|
src="rdf:http://home.netscape.com/NC-rdf#Icon"
|
|
value="rdf:http://home.netscape.com/NC-rdf#Name" />
|
|
</treerow>
|
|
</treeitem>
|
|
</treechildren>
|
|
</template>
|
|
|
|
<treecol id="EngineColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name" />
|
|
|
|
<treehead>
|
|
<treerow>
|
|
<treecell class="treecell-header sortDirectionIndicator outset" observes="EngineColumn"
|
|
value="&engine.column.label;"
|
|
resource="http://home.netscape.com/NC-rdf#Name" />
|
|
</treerow>
|
|
</treehead>
|
|
</tree>
|
|
<box orient="vertical">
|
|
<spring flex="1"/>
|
|
<button class="up" oncommand="MoveUp();" id="up"/>
|
|
<button class="down" oncommand="MoveDown();" id="down"/>
|
|
<spring flex="1"/>
|
|
</box>
|
|
</box>
|
|
<titledbox orient="vertical">
|
|
<grid>
|
|
<columns>
|
|
<column/>
|
|
<column flex="1"/>
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<text class="label" 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>
|
|
</row>
|
|
<row>
|
|
<spring/>
|
|
<box>
|
|
<button class="dialog" id="new-category-button" oncommand="NewCategory()" value="&new.category.label;"/>
|
|
<button class="dialog" id="rename-category-button" oncommand="RenameCategory()" value="&rename.category.label;"/>
|
|
<button class="dialog" id="remove-category.buttom" oncommand="RemoveCategory()" value="&remove.category.label;"/>
|
|
</box>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
</titledbox>
|
|
</box>
|
|
|
|
|
|
</box>
|
|
|
|
<separator class="groove"/>
|
|
|
|
<box id="okCancelButtonsRight"/>
|
|
|
|
</window>
|