home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.swcp.com
/
ftp.swcp.com.zip
/
ftp.swcp.com
/
mac
/
mozilla-macos9-1.3.1.sea.bin
/
Mozilla1.3.1
/
Chrome
/
comm.jar
/
content
/
communicator
/
sidebar
/
customize.xul
< prev
next >
Wrap
Extensible Markup Language
|
2003-06-08
|
6KB
|
176 lines
<?xml version="1.0"?> <!-- -*- Mode: HTML; indent-tabs-mode: nil; -*- -->
<!--
The contents of this file are subject to the Netscape Public License
Version 1.1 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1999 Netscape Communications Corporation. All Rights
Reserved.
-->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/sidebar/customize.css"
type="text/css"?>
<!DOCTYPE dialog [
<!ENTITY % customizeDTD SYSTEM "chrome://communicator/locale/sidebar/customize.dtd" >
%customizeDTD;
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
]>
<dialog
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="main-window"
title="&sidebar.customize.title.label;"
windowtype="sidebar:customize"
width="450" height="400"
persist="screenX screenY width height"
ondialogaccept="return Save();">
<script type="application/x-javascript"
src="chrome://communicator/content/sidebar/customize.js"/>
<hbox flex="1">
<vbox flex="1">
<label value="&sidebar.customize.additional.label;" crop="right"/>
<tree id="other-panels" flex="1" seltype="multiple"
datasources="rdf:null" hidecolumnpicker="true"
containment="http://home.netscape.com/NC-rdf#panel-list"
onselect="SelectChangeForOtherPanels(event, event.target.parentNode.parentNode);"
onclick="if (event.detail == 2) { AddPanel(); } ClickOnOtherPanels(event);">
<template>
<rule>
<conditions>
<content uri="?uri"/>
<triple subject="?uri" object="?panel-list"
predicate="http://home.netscape.com/NC-rdf#panel-list"/>
<member container="?panel-list" child="?panel"/>
</conditions>
<bindings>
<binding subject="?panel" object="?title"
predicate="http://home.netscape.com/NC-rdf#title"/>
<binding subject="?panel" object="?link"
predicate="http://home.netscape.com/NC-rdf#link"/>
</bindings>
<action>
<treechildren>
<treeitem uri="?panel" link="?link">
<treerow>
<treecell label="?title"/>
</treerow>
</treeitem>
</treechildren>
</action>
</rule>
</template>
<treecols>
<treecol id="AvailNameCol" flex="1" primary="true" hideheader="true"/>
</treecols>
</tree>
<!-- xxxslamm Need to add descriptive panel text here -->
<hbox class="button-group">
<button id="add_button" oncommand="AddPanel()"
label="&sidebar.customize.add.label;"
disabled="true"/>
<button id="preview_button" oncommand="PreviewPanel()"
label="&sidebar.customize.preview.label;"
disabled="true"/>
</hbox>
</vbox>
<separator orient="vertical"/>
<!-- The panels that the user currently has chosen -->
<vbox flex="1">
<label value="&sidebar.customize.current.label;"
crop="right"/>
<tree id="current-panels" flex="1" seltype="multiple"
datasources="rdf:null" hidecolumnpicker="true"
onclick="SelectChangeForCurrentPanels();">
<template>
<rule>
<conditions>
<content uri="?uri"/>
<triple subject="?uri" object="?panel-list"
predicate="http://home.netscape.com/NC-rdf#panel-list"/>
<member container="?panel-list" child="?panel"/>
</conditions>
<bindings>
<binding subject="?panel" object="?title"
predicate="http://home.netscape.com/NC-rdf#title"/>
<binding subject="?panel" object="?customize"
predicate="http://home.netscape.com/NC-rdf#customize"/>
</bindings>
<action>
<treechildren>
<treeitem uri="?panel" customize="?customize">
<treerow>
<treecell label="?title"/>
</treerow>
</treeitem>
</treechildren>
</action>
</rule>
</template>
<treecols>
<treecol id="CurrentNameCol" flex="1" hideheader="true"/>
</treecols>
</tree>
<hbox class="button-group">
<button id="customize-button"
oncommand="CustomizePanel();"
label="&sidebar.customize.customize.label;" />
<button id="remove-button" onclick="RemovePanel()"
label="&sidebar.customize.remove.label;" />
</hbox>
</vbox>
<separator orient="vertical" class="thin"/>
<!-- The 'reorder' buttons -->
<vbox id="reorder">
<spacer flex="1"/>
<button oncommand="MoveUp();" id="up"
label="&sidebar.customize.up.label;"/>
<button oncommand="MoveDown();" id="down"
label="&sidebar.customize.down.label;"/>
<spacer flex="1"/>
</vbox>
</hbox>
<separator/>
<hbox>
<button id="more-panels-link" label="&sidebar.more.label;" oncommand="BrowseMorePanels()"/>
<spacer flex="1"/>
<button dlgtype="accept"/>
<button dlgtype="cancel"/>
</hbox>
</dialog>