RetroZilla/xpfe/components/search/resources/search-panel.xul

200 lines
9.0 KiB
Plaintext
Raw Normal View History

2015-10-21 05:03:22 +02:00
<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
<!--
***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla 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/MPL/
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 the Initial Developer are Copyright (C) 1998
the Initial Developer. All Rights Reserved.
Contributor(s):
Blake Ross <blakeross@telocity.com>
Alternatively, the contents of this file may be used under the terms of
either of the GNU General Public License Version 2 or later (the "GPL"),
or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.
***** END LICENSE BLOCK ***** -->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/search/search.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://communicator/locale/search/search-panel.dtd" >
<window id="searchPanel"
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" onload="SearchPanelStartup();"
onunload="SearchPanelShutdown();" elementtofocus="sidebar-search-text">
<script type="application/x-javascript" src="chrome://global/content/nsUserSettings.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
<script type="application/x-javascript" src="chrome://communicator/content/search/search-panel.js"/>
<script type="application/x-javascript" src="chrome://communicator/content/search/shared.js"/>
<stringbundle id="searchBundle" src="chrome://communicator/locale/search/search-panel.properties"/>
<stringbundle id="regionalBundle" src="chrome://communicator-region/locale/region.properties"/>
<popupset>
<popup id="contextual" onpopupshowing="return fillContextMenu('contextual', 'resultList');" >
<menu />
</popup>
</popupset>
<popupset id="descTooltipSet">
<tooltip id="descTooltip" noautohide="true" onpopupshowing="return FillInDescTooltip(document.tooltipNode)">
<vbox id="tipTextBox" flex="1">
<label id="titleText" />
<label id="urlText" />
</vbox>
</tooltip>
</popupset>
<vbox flex="1">
<vbox class="box-padded outset-top-bottom">
<hbox align="center">
<textbox id="sidebar-search-text" flex="1"
onkeypress="if (event.keyCode == 13) doSearch();"
oninput="doEnabling();" />
<button id="searchButton" label="&search.button.label;"
disabled="true" oncommand="doSearch();"/>
</hbox>
<vbox align="start">
<vbox id="basicBox">
<hbox align="center">
<label value="&using.label;" />
<menulist id="basicEngineMenu"
ref="NC:SearchEngineRoot"
datasources="rdf:internetsearch"
sortResource="http://home.netscape.com/NC-rdf#Name"
sortDirection="ascending">
<template>
<menupopup id="basicPopup"
oncommand="if (event.originalTarget.localName == 'menuitem') AskChangeDefaultEngine(event.target);">
<menuitem value="..." uri="..."
desc="rdf:http://home.netscape.com/NC-rdf#Description"
ver="rdf:http://home.netscape.com/NC-rdf#Version"
src="rdf:http://home.netscape.com/NC-rdf#Icon"
label="rdf:http://home.netscape.com/NC-rdf#Name"/>
</menupopup>
</template>
</menulist>
</hbox>
</vbox>
<vbox id="categoryBox" align="start">
<hbox align="center">
<label value="&within.label;" />
<menulist id="categoryList" ref="NC:SearchCategoryRoot"
datasources="rdf:null" oncommand="switchTab(1);" >
<template>
<menupopup>
<menuitem id="chooseCat" uri="rdf:*" oncommand="chooseCategory(this);"
value="rdf:http://home.netscape.com/NC-rdf#category"
label="rdf:http://home.netscape.com/NC-rdf#title"/>
</menupopup>
</template>
<menupopup id="categoryPopup">
<menuitem value="NC:SearchEngineRoot" label="&allengines.label;"
oncommand="chooseCategory(this);"/>
<menuseparator />
<menuitem label="&customize.menuitem.label;" value="NC:SearchEngineRoot"
oncommand="chooseCategory(this); doCustomize();"/>
<menuseparator />
</menupopup>
</menulist>
</hbox>
<separator class="thin"/>
<description flex="1">&choose.label;</description>
</vbox>
</vbox>
</vbox>
<deck class="outset-right" id="advancedDeck" flex="1">
<vbox class="searchpanel-outerbox" flex="1">
<listbox id="resultList" ref="NC:LastSearchRoot" class="plain"
resource="http://home.netscape.com/NC-rdf#PageRank"
resource2="http://home.netscape.com/NC-rdf#Name"
flex="1" datasources="rdf:internetsearch"
onclick="if (event.button == 0 &amp;&amp; event.target.localName == 'listitem') sidebarOpenURL(event.target);"
ondraggesture="if (event.target.localName == 'listitem') HandleResultDragGesture(event);"
style="-moz-user-focus:ignore !important;">
<listhead>
<listheader id="SortNameColumn" label="&results.label;"
sortable="true" resource="http://home.netscape.com/NC-rdf#Name"
onclick="return doSort('SortNameColumn', 'http://home.netscape.com/NC-rdf#PageRank');" />
</listhead>
<template>
<rule>
<listitem uri="..." class="listitem-iconic searchresult-item text-link"
context="contextual" flexlabel="0"
loading="rdf:http://home.netscape.com/NC-rdf#loading"
searchtype="rdf:http://home.netscape.com/NC-rdf#SearchType"
image="rdf:http://home.netscape.com/NC-rdf#Icon"
label="rdf:http://home.netscape.com/NC-rdf#Name"
tooltip="descTooltip"/>
</rule>
</template>
</listbox>
<hbox>
<button id="prev-results" label="&previous.button.label;"
tooltiptext="&previous.button.tooltip;"
oncommand="return showMoreResults(-1);" disabled="true"/>
<spacer flex="1"/>
<button id="next-results" label="&next.button.label;"
tooltiptext="&next.button.tooltip;"
oncommand="return showMoreResults(1);" disabled="true"/>
</hbox>
</vbox>
<vbox class="searchpanel-outerbox" flex="1">
<listbox id="searchengines" flex="1" class="plain"
datasources="rdf:internetsearch">
<listhead>
<listheader id="EngineColumn" label="&engine.column.label;"
sortable="true" resource="http://home.netscape.com/NC-rdf#Name"
onclick="return doSort('EngineColumn', null);"/>
</listhead>
<template>
<rule>
<listitem uri="..." type="checkbox" class="listitem-iconic"
loading="rdf:http://home.netscape.com/NC-rdf#loading"
image="rdf:http://home.netscape.com/NC-rdf#Icon"
label="rdf:http://home.netscape.com/NC-rdf#Name"/>
</rule>
</template>
</listbox>
</vbox>
</deck>
</vbox>
</window>