File:  [mozdev] / calendarhelp / www / open.xul
Revision 1.10: download - view: text, annotated - select for diffs - revision graph
Mon May 23 11:45:22 2005 UTC (12 years, 5 months ago) by whiteley
Branches: MAIN
CVS tags: HEAD
online update 0.5+ (product switching)

<?xml version="1.0" encoding="UTF-8"?>
<!-- ==================================================
 CalendarHelp source code
 Copyright (C) 2004, 2005 Rod Whiteley
 Licensed under the Open Software License version 2.1
 OSI Certified Open Source Software
 http://calendarhelp.mozdev.org
 ====================================================== -->

<?xml-stylesheet href="open.css" type="text/css"?>
<?xml-stylesheet href="chrome://help/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://help/skin/sidebar.css" type="text/css"?>

<!DOCTYPE window >

<window id="calendarhelp"
	windowtype="calendar:help"
	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
	xmlns:html="http://www.w3.org/1999/xhtml"
	onload="init();">

<html:link rel="icon" href="page-icon.png" type="image/png"/>

<script type="application/x-javascript" src="open.js"/>


<broadcasterset id="locale-broadcaster" datasources="en-US/open.rdf" ref="urn:root">
	<template>
		<rule>
			<broadcaster uri="rdf:*"
				label="rdf:http://calendarhelp.mozdev.org/ns#name"
				accesskey="rdf:http://calendarhelp.mozdev.org/ns#key"/>
			</rule>
		</template>
	</broadcasterset>

<vbox flex="1">

	<hbox flex="1">
		<vbox id="helpsidebar-box" persist="width">

			<html:a id="project-link" href="http://calendarhelp.mozdev.org/">
				<hbox id="title-box" align="center">
					<image src="calhelp-small.png" width="48" height="48"/>
					<label id="calendarhelp-title"/>
					</hbox>
				</html:a>

			<groupbox id="settings-box">
				<caption label="Product"/>
				<radiogroup id="product-group" orient="horizontal" oncommand="productSelect(this);">
					<radio label="Calendar" accesskey="A" value="calendar" selected="true"/>
					<radio label="Sunbird" accesskey="U" value="sunbird"/>
					<radio label="Future" accesskey="F" value="future"/>
					</radiogroup>
				</groupbox>

			<!-- glossary panel -->
			<button id="help-glossary-btn"
				class="box-texttab texttab-sidebar"
				label="Glossary" accesskey="G"
				oncommand="showPanel('help-glossary')"/>
			<tree id="help-glossary-panel" flex="1" hidecolumnpicker="true"
					hidden="true" datasources="rdf:null"
					containment="http://home.netscape.com/NC-rdf#subheadings"
					ref="urn:root" flags="dont-build-content"
					onselect="panelSelect(this);" _selectDelay="500">
				<template>
					<rule>
						<conditions>
							<content uri="?uri"/>
							<triple subject="?uri"
								predicate="http://home.netscape.com/NC-rdf#subheadings"
								object="?subheadings"/>
							<member container="?subheadings"
								child="?subheading"/>
							</conditions>
						<bindings>
							<binding subject="?subheading"
								predicate="http://home.netscape.com/NC-rdf#name"
								object="?name"/>
							<binding subject="?subheading"
								predicate="http://home.netscape.com/NC-rdf#link"
								object="?link"/>
							</bindings>

						<action>
							<treechildren>
								<treeitem uri="?subheading" link="?link">
									<treerow>
										<treecell label="?name"/>
										<treecell label="?link"/>
										</treerow>
									</treeitem>
								</treechildren>
							</action>
						</rule>
					</template>
				<treecols>
					<treecol id="GlossaryNameColumn" flex="1" hideheader="true" primary="true"/>
					<treecol id="LinkColumn" hideheader="true" hidden="true"/>
					</treecols>
				</tree>

			<button id="help-index-btn" class="box-texttab texttab-sidebar"
				label="Index" accesskey="I"
				oncommand="showPanel('help-index');"/>

			<tree id="help-index-panel" flex="1" datasources="rdf:null"
					hidecolumnpicker="true" hidden="true"
					containment="http://home.netscape.com/NC-rdf#subheadings"
					ref="urn:root" flags="dont-build-content"
					onselect="panelSelect(this);" _selectDelay="500">
				<template>
					<rule>
						<conditions>
							<content uri="?uri"/>
							<triple subject="?uri"
								predicate="http://home.netscape.com/NC-rdf#subheadings"
								object="?subheadings"/>
							<member container="?subheadings"
								child="?subheading"/>
							</conditions>
						<bindings>
							<binding subject="?subheading"
								predicate="http://home.netscape.com/NC-rdf#name"
								object="?name"/>
							<binding subject="?subheading"
								predicate="http://home.netscape.com/NC-rdf#link"
								object="?link"/>
							</bindings>

						<action>
							<treechildren>
								<treeitem uri="?subheading" link="?link">
									<treerow>
										<treecell label="?name"/>
										<treecell label="?link"/>
										</treerow>
									</treeitem>
								</treechildren>
							</action>
						</rule>
					</template>
				<treecols>
					<treecol id="IndexNameColumn" flex="1" hideheader="true"
						primary="true" sortActive="true"
						sortDirection="ascending" sort="?name"/>
					<treecol id="LinkColumn" hideheader="true" hidden="true"/>
					</treecols>
				</tree>

			<button id="help-search-btn" class="box-texttab texttab-sidebar"
				label="Search" accesskey="S"
				oncommand="showPanel('help-search')"/>

			<vbox id="help-search-panel" hidden="true" flex="1">
				<hbox align="center">
					<textbox id="findText" flex="1" oninput="doEnabling();"
						onkeypress="if ((event.keyCode == KeyEvent.DOM_VK_ENTER)
								|| (event.keyCode	== KeyEvent.DOM_VK_RETURN))
							doFind();"/>
					<button id="findButton" default="true" disabled="true"
						label="Go" oncommand="doFind()"
						flex="0"/>
					</hbox>
				<listbox id="help-results-listbox" flex="1" onselect="resultSelect(this);" _selectDelay="500"/>
				</vbox>

			<button id="help-toc-btn" class="box-texttab texttab-sidebar"
				label="Contents" accesskey="C"
				oncommand="showPanel('help-toc')"/>
			<tree id="help-toc-panel" flex="1"  hidecolumnpicker="true"
					datasources="rdf:null" flags="dont-build-content"
					containment="http://home.netscape.com/NC-rdf#subheadings"
					ref="urn:root"
					onselect="panelSelect(this);" _selectDelay="500">
				<template>
					<rule>
						<conditions>
							<content uri="?uri"/>
							<triple subject="?uri"
								predicate="http://home.netscape.com/NC-rdf#subheadings"
								object="?subheadings"/>
							<member container="?subheadings"
								child="?subheading"/>
							</conditions>

						<bindings>
							<binding subject="?subheading"
								predicate="http://home.netscape.com/NC-rdf#name"
								object="?name"/>
							<binding subject="?subheading"
								predicate="http://home.netscape.com/NC-rdf#link"
								object="?link"/>
							</bindings>

						<action>
							<treechildren>
								<treeitem uri="?subheading" link="?link">
									<treerow>
										<treecell label="?name"/>
										<treecell label="?link"/>
										</treerow>
									</treeitem>
								</treechildren>
							</action>
						</rule>
					</template>
				<treecols>
					<treecol id="NameColumn" flex="1" hideheader="true" primary="true"/>
					<treecol id="LinkColumn" hideheader="true" hidden="true"/>
					</treecols>
				</tree>

			<vbox id="topic-box" hidden="true">
				<separator class="groove"/>
				<hbox align="center">
					<label id="topic-label" class="textbox-prompt" value="Topic:" accesskey="O" control="topic-text"/>
					<label id="not-found" hidden="true" value="Topic % not found"/>
					<textbox id="topic-text" flex="1" value=""
						onkeypress="if ((event.keyCode == KeyEvent.DOM_VK_ENTER)
							|| (event.keyCode	== KeyEvent.DOM_VK_RETURN)) goToTopic(this);"/>
					</hbox>
				</vbox>

			</vbox>

			<splitter id="helpsidebar-splitter" collapse="before"
					persist="state hidden" autostretch="never" state="open">
				</splitter>

			<vbox id="appcontent" flex="3">
				<hbox id="browser" flex="1">
					<iframe id="help-content" src="" flex="1"/>
					</hbox>
				</vbox>
			</hbox>
		</vbox>

<!-- hidden for searching -->

<vbox id="hidden-glos" flex="1"  hidecolumnpicker="true" hidden="true"
	datasources="rdf:null"
	containment="http://home.netscape.com/NC-rdf#subheadings"
	ref="urn:root">
	<template>
		<rule>
			<conditions>
				<content uri="?uri"/>
				<triple subject="?uri"
					predicate="http://home.netscape.com/NC-rdf#subheadings" object="?items"/>
				<member container="?items" child="?item"/>
				</conditions>
			<bindings>
				<binding subject="?item" predicate="http://home.netscape.com/NC-rdf#name" object="?name"/>
				<binding subject="?item" predicate="http://home.netscape.com/NC-rdf#link" object="?link"/>
				</bindings>
			<action>
				<hbox uri="?item">
					<label value="?name" link="?link"/>
					</hbox>
				</action>
			</rule>
		</template>
	</vbox>

<vbox id="hidden-index" flex="1"  hidecolumnpicker="true" hidden="true"
	datasources="rdf:null"
	containment="http://home.netscape.com/NC-rdf#subheadings"
	ref="urn:root">
	<template>
		<rule>
			<conditions>
				<content uri="?uri"/>
				<triple subject="?uri" predicate="http://home.netscape.com/NC-rdf#subheadings" object="?items"/>
				<member container="?items" child="?item"/>
				</conditions>
			<bindings>
				<binding subject="?item" predicate="http://home.netscape.com/NC-rdf#name" object="?name"/> 
				<binding subject="?item" predicate="http://home.netscape.com/NC-rdf#link" object="?link"/> 
				</bindings>
			<action>
				<hbox uri="?item">
					<label value="?name" link="?link"/>
					</hbox>
				</action>
			</rule>

		</template>
	</vbox>

<vbox id="hidden-toc" flex="1"  hidecolumnpicker="true" hidden="true"
	datasources="rdf:null"
	containment="http://home.netscape.com/NC-rdf#subheadings"
	ref="urn:root">
	<template>
		<rule>
			<conditions>
				<content uri="?uri"/>
				<triple subject="?uri"
					predicate="http://home.netscape.com/NC-rdf#subheadings" object="?items"/>
				<member container="?items" child="?item"/>
				</conditions>
			<bindings>
				<binding subject="?item" predicate="http://home.netscape.com/NC-rdf#name" object="?name"/>
				<binding subject="?item" predicate="http://home.netscape.com/NC-rdf#link" object="?link"/>
				</bindings>
			<action>
				<hbox uri="?item">
					<label value="?name" link="?link"/>
					</hbox>
				</action>
			</rule>
		</template>
	</vbox>

</window>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>