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 >
Extensible Markup Language  |  2003-06-08  |  6KB  |  176 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: HTML; indent-tabs-mode: nil; -*- -->
  2. <!--
  3.  
  4.   The contents of this file are subject to the Netscape Public License
  5.   Version 1.1 (the "NPL"); you may not use this file except in
  6.   compliance with the NPL.  You may obtain a copy of the NPL at
  7.   http://www.mozilla.org/NPL/
  8.  
  9.   Software distributed under the NPL is distributed on an "AS IS" basis,
  10.   WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  11.   for the specific language governing rights and limitations under the
  12.   NPL.
  13.  
  14.   The Initial Developer of this code under the NPL is Netscape
  15.   Communications Corporation.  Portions created by Netscape are
  16.   Copyright (C) 1999 Netscape Communications Corporation.  All Rights
  17.   Reserved.
  18.  
  19. -->
  20.  
  21.  
  22. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  23. <?xml-stylesheet href="chrome://communicator/skin/sidebar/customize.css"
  24.   type="text/css"?>
  25.  
  26. <!DOCTYPE dialog [
  27. <!ENTITY % customizeDTD SYSTEM "chrome://communicator/locale/sidebar/customize.dtd" >
  28. %customizeDTD;
  29. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  30. %brandDTD;
  31. ]>
  32.  
  33. <dialog
  34.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  35.   id="main-window"
  36.   title="&sidebar.customize.title.label;"
  37.   windowtype="sidebar:customize"
  38.   width="450" height="400"
  39.   persist="screenX screenY width height"
  40.   ondialogaccept="return Save();">
  41.  
  42.   <script type="application/x-javascript"
  43.     src="chrome://communicator/content/sidebar/customize.js"/>
  44.  
  45.   <hbox flex="1">
  46.     <vbox flex="1">
  47.       <label value="&sidebar.customize.additional.label;" crop="right"/>
  48.  
  49.       <tree id="other-panels" flex="1" seltype="multiple"
  50.         datasources="rdf:null" hidecolumnpicker="true"
  51.         containment="http://home.netscape.com/NC-rdf#panel-list"
  52.         onselect="SelectChangeForOtherPanels(event, event.target.parentNode.parentNode);"
  53.         onclick="if (event.detail == 2) { AddPanel(); } ClickOnOtherPanels(event);">
  54.  
  55.         <template>
  56.           <rule>
  57.             <conditions>
  58.               <content uri="?uri"/>
  59.               <triple subject="?uri" object="?panel-list"
  60.                 predicate="http://home.netscape.com/NC-rdf#panel-list"/>
  61.               <member container="?panel-list" child="?panel"/>
  62.             </conditions>
  63.             
  64.             <bindings>
  65.               <binding subject="?panel" object="?title" 
  66.                 predicate="http://home.netscape.com/NC-rdf#title"/>
  67.               <binding subject="?panel" object="?link" 
  68.                 predicate="http://home.netscape.com/NC-rdf#link"/>
  69.             </bindings>
  70.             
  71.             <action>
  72.               <treechildren>
  73.                 <treeitem uri="?panel" link="?link">
  74.                   <treerow>
  75.                     <treecell label="?title"/>
  76.                   </treerow>
  77.                 </treeitem>
  78.               </treechildren>
  79.             </action>
  80.           </rule>
  81.         </template>
  82.         
  83.         <treecols>
  84.           <treecol id="AvailNameCol" flex="1" primary="true" hideheader="true"/>
  85.         </treecols>
  86.       </tree>
  87.  
  88.       <!-- xxxslamm Need to add descriptive panel text here -->
  89.       <hbox class="button-group">
  90.         <button id="add_button" oncommand="AddPanel()"
  91.           label="&sidebar.customize.add.label;"
  92.           disabled="true"/>
  93.  
  94.         <button id="preview_button" oncommand="PreviewPanel()"
  95.           label="&sidebar.customize.preview.label;"
  96.           disabled="true"/>
  97.       </hbox>
  98.     </vbox> 
  99.     
  100.     <separator orient="vertical"/>    
  101.  
  102.     <!-- The panels that the user currently has chosen -->
  103.     <vbox flex="1">
  104.       <label value="&sidebar.customize.current.label;"
  105.         crop="right"/>
  106.       <tree id="current-panels" flex="1" seltype="multiple"
  107.             datasources="rdf:null" hidecolumnpicker="true"
  108.             onclick="SelectChangeForCurrentPanels();">
  109.         <template>
  110.           <rule>
  111.             <conditions>
  112.               <content uri="?uri"/>
  113.               <triple subject="?uri" object="?panel-list"
  114.                 predicate="http://home.netscape.com/NC-rdf#panel-list"/>
  115.               <member container="?panel-list" child="?panel"/>
  116.             </conditions>
  117.             
  118.             <bindings>
  119.               <binding subject="?panel" object="?title"
  120.                 predicate="http://home.netscape.com/NC-rdf#title"/>
  121.               <binding subject="?panel" object="?customize"
  122.                 predicate="http://home.netscape.com/NC-rdf#customize"/>
  123.             </bindings>
  124.             
  125.             <action>
  126.               <treechildren>
  127.                 <treeitem uri="?panel" customize="?customize">
  128.                   <treerow>
  129.                     <treecell label="?title"/>
  130.                   </treerow>
  131.                 </treeitem>
  132.               </treechildren>
  133.             </action>
  134.           </rule>
  135.         </template>
  136.         
  137.         <treecols>
  138.           <treecol id="CurrentNameCol" flex="1" hideheader="true"/>
  139.         </treecols>
  140.       </tree>
  141.       
  142.       <hbox class="button-group">
  143.         <button id="customize-button"
  144.           oncommand="CustomizePanel();" 
  145.           label="&sidebar.customize.customize.label;" />
  146.         <button id="remove-button" onclick="RemovePanel()"
  147.           label="&sidebar.customize.remove.label;" />
  148.       </hbox>      
  149.     </vbox>
  150.  
  151.     <separator orient="vertical" class="thin"/>
  152.  
  153.     <!-- The 'reorder' buttons -->
  154.     <vbox id="reorder">
  155.       <spacer flex="1"/>
  156.       <button oncommand="MoveUp();" id="up"
  157.         label="&sidebar.customize.up.label;"/>
  158.       <button oncommand="MoveDown();" id="down"
  159.         label="&sidebar.customize.down.label;"/>
  160.       <spacer flex="1"/>
  161.     </vbox> 
  162.  
  163.   </hbox>
  164.  
  165.   <separator/>
  166.   
  167.   <hbox>
  168.     <button id="more-panels-link" label="&sidebar.more.label;" oncommand="BrowseMorePanels()"/>
  169.     <spacer flex="1"/>
  170.     <button dlgtype="accept"/>
  171.     <button dlgtype="cancel"/>
  172.   </hbox>
  173.  
  174. </dialog>
  175.  
  176.