home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / Programy / nsb-install-8-0.exe / chrome / browser.jar / content / browser / sidebar / sidebarOverlay.xul < prev   
Encoding:
Extensible Markup Language  |  2005-07-29  |  11.4 KB  |  253 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://browser/skin/sidebar/sidebarOverlay.css" type="text/css"?> 
  23. <?xml-stylesheet href="chrome://global/skin/modern/global/splitter.css" type="text/css"?>
  24. <!--<?xml-stylesheet href="chrome://global/skin/button.css" type="text/css"?>-->
  25. <?xul-overlay href="chrome://browser/content/navExtraOverlay.xul"?>
  26.  
  27. <!DOCTYPE overlay [
  28. <!ENTITY % sidebarOverlayDTD SYSTEM "chrome://browser/locale/sidebar/sidebarOverlay.dtd" >
  29. %sidebarOverlayDTD;
  30. ]>
  31.  
  32. <overlay id="sidebarOverlay"
  33.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  34.  
  35.   <!-- Command -->
  36.   <commandset id="mainCommandSet">
  37.     <command id="toggleSidebar" oncommand="TrackData(this);SidebarShowHide();"/>
  38.     <!-- MERC -->
  39.     <command id="revealHistory" oncommand="TrackData(this);RevealPanel('urn:sidebar:panel:history');"/>
  40.     <command id="revealBookmarks" oncommand="TrackData(this);RevealPanel('urn:sidebar:panel:bookmarks');"/>
  41.     <!-- /MERC -->
  42.   </commandset>
  43.   <!-- Broadcaster -->
  44.   <broadcasterset id="mainBroadcasterSet">
  45.     <broadcaster id="viewMySidebar" autoCheck="false" label="&sidebar.panels.label;"
  46.                  type="checkbox" command="toggleSidebar"/>
  47.   </broadcasterset>
  48.   <!-- Accelerator -->
  49.   <keyset id="mainKeyset">
  50.     <key id="showHideSidebar" keycode="VK_F9" command="toggleSidebar"/>
  51.     <!-- MERC -->
  52.     <key id="historyShortcut" modifiers="accel" key="&sidebar.history.commandkey;" command="revealHistory"/>
  53.     <key id="bookmarksShortcut" modifiers="accel" key="&sidebar.bookmarks.commandkey;" command="revealBookmarks"/>
  54.     <!-- /MERC -->
  55.   </keyset>
  56.   <!-- Main menu item -->
  57.   <menupopup id="menu_viewPopup">
  58.     <menuitem id="sidebar-menu" insertbefore="toggle_taskbar" 
  59.               accesskey="&sidebarCmd.accesskey;"
  60.               key="showHideSidebar" observes="viewMySidebar"/>
  61.   </menupopup>
  62.   <!-- Popup menu -->
  63.   <popupset id="mainPopupSet">
  64.     <popup id="sidebarPopup" 
  65.            onpopupshowing="SidebarInitContextMenu(this, document.popupNode);">
  66.       <menuitem id="switch-ctx-item" label="&sidebar.switch.label;" 
  67.                 accesskey="&sidebar.switch.accesskey;" default="true" 
  68.                 oncommand="SidebarSelectPanel(document.popupNode,false,false);"/>
  69.       <menuitem id="reload-ctx-item" label="&sidebar.reload.label;" 
  70.                 accesskey="&sidebar.reload.accesskey;" disabled="true"
  71.                 oncommand="SidebarReloadPanel(document.popupNode);"/>
  72.       <menuitem id="stop-ctx-item" label="&sidebar.loading.stop.label;"
  73.                 accesskey="&sidebar.loading.stop.accesskey;" disabled="true"
  74.                 oncommand="SidebarStopPanelLoad(document.popupNode);"/>
  75.       <menuseparator/>
  76.       <menuitem id="hide-ctx-item" label="&sidebar.hide.label;" 
  77.                 accesskey="&sidebar.hide.accesskey;"
  78.                 oncommand="SidebarTogglePanel(document.popupNode);"/>
  79.       <menuseparator/>
  80.       <menuitem id="customize-ctx-item" label="&sidebar.customize.label;" 
  81.                 accesskey="&sidebar.customize.accesskey;"
  82.                 oncommand="SidebarCustomize();"/>
  83.     </popup>
  84.   </popupset>
  85.  
  86.   <!-- Toolbar button
  87.   <toolbarpalette id="BrowserToolbarPalette">
  88.     <toolbarbutton id="sidebar-button"
  89.                    command="toggleSidebar"/>
  90.   </toolbarpalette>
  91.   -->
  92.  
  93.   <!-- Overlay the sidebar panels -->
  94.   <vbox id="sidebar-box" persist="hidden width collapsed" hidden="true">
  95.     <splitter id="sidebar-panels-splitter" collapse="after" persist="state"
  96.               onmouseup="PersistHeight();" hidden="true">
  97.       <grippy/>
  98.     </splitter>
  99.     <vbox id="sidebar-panels-splitter-box" flex="1" 
  100.           persist="collapsed">
  101.       <sidebarheader id="sidebar-title-box" class="sidebarheader-main"
  102.                      label="&sidebar.panels.label;" persist="hidden" type="box"
  103.                      collapse="after" onmouseup="PersistHeight();" prefixhidden="true"
  104.                      tooltipopen="&sidebar.open.tooltip;" 
  105.                      tooltipclose="&sidebar.close.tooltip;">
  106.         <toolbarbutton type="menu" id="sidebar-panel-picker" menubuttontype="sidebar-panels"
  107.                        onpopupshowing="SidebarBuildPickerPopup();"
  108.                        label="&sidebar.picker.label;" >
  109.           <menupopup id="sidebar-panel-picker-popup" popupanchor="bottomleft"
  110.                      datasources="rdf:null"
  111.                      ref="urn:sidebar:current-panel-list"
  112.                      oncommand="SidebarTogglePanel(event.target);" >
  113.             <template>
  114.               <rule>
  115.                 <conditions>
  116.                   <content uri="?uri"/>
  117.                   <triple subject="?uri"
  118.                           predicate="http://home.netscape.com/NC-rdf#panel-list"
  119.                           object="?panel-list"/>
  120.                   <member container="?panel-list" child="?panel"/>
  121.                   <triple subject="?panel"
  122.                           predicate="http://home.netscape.com/NC-rdf#title"
  123.                           object="?title" />
  124.                 </conditions>
  125.                 <bindings>
  126.                   <binding subject="?panel"
  127.                            predicate="http://home.netscape.com/NC-rdf#exclude"
  128.                            object="?exclude"/>
  129.                   <binding subject="?panel"
  130.                            predicate="http://home.netscape.com/NC-rdf#prereq"
  131.                            object="?prereq"/>
  132.                 </bindings>
  133.                 <action>
  134.                   <menuitem uri="?panel" type="checkbox"
  135.                             label="?title" exclude="?exclude" prereq="?prereq"/>
  136.                 </action>
  137.               </rule>
  138.             </template>
  139.             <menuitem label="&sidebar.customize.label;" accesskey="&sidebar.customize.accesskey;"
  140.                       oncommand="SidebarCustomize();" />
  141.             <menuitem id="sidebar.sbDirectory"
  142.                       label="&sidebar.sbDirectory.label;"
  143.                       oncommand="BrowseMorePanels();" />
  144.             <menuseparator />
  145.           </menupopup>
  146.         </toolbarbutton>
  147.       </sidebarheader>
  148.   
  149.       <vbox id="sidebar-panels"
  150.             datasources="rdf:null"
  151.             ref="urn:sidebar:current-panel-list"
  152.             persist="last-selected-panel height collapsed" flex="1"
  153.             onclick="return contentAreaClick(event);"
  154.             ondraggesture="nsDragAndDrop.startDrag(event, contentAreaDNDObserver);">
  155.         <template id="sidebar-template">
  156.           <rule>
  157.             <conditions>
  158.               <content uri="?uri"/>
  159.               <triple subject="?uri" object="?panel-list"
  160.                       predicate="http://home.netscape.com/NC-rdf#panel-list" />
  161.               <member container="?panel-list" child="?panel"/>
  162.               <triple subject="?panel" object="?title"
  163.                       predicate="http://home.netscape.com/NC-rdf#title" />
  164.               <triple subject="?panel" object="?content"
  165.                       predicate="http://home.netscape.com/NC-rdf#content" />
  166.             </conditions>
  167.             <bindings>
  168.               <binding subject="?panel" object="?exclude"
  169.                        predicate="http://home.netscape.com/NC-rdf#exclude" />
  170.               <binding subject="?panel" object="?prereq"
  171.                        predicate="http://home.netscape.com/NC-rdf#prereq" />
  172.             </bindings>
  173.             <action>
  174.               <hbox uri="?panel" class="box-texttab texttab-sidebar"
  175.                     oncommand="SidebarSelectPanel(this,false,false)"
  176.                     hidden="true" label="?title" exclude="?exclude" 
  177.                     prereq="?prereq" context="sidebarPopup"/>
  178.               <vbox uri="?panel" flex="1" hidden="true"
  179.                     loadstate="never loaded">
  180.                 <vbox flex="1" class="iframe-panel loadarea">
  181.                   <hbox flex="1" align="center">
  182.                     <image class="image-panel-loading"/>
  183.                     <label class="text-panel-loading"
  184.                            value="&sidebar.loading.label;"/>
  185.                     <label class="text-panel-loading" hidden="true" 
  186.                            loading="false"
  187.                            value="&sidebar.loadstopped.label;"/>
  188.                     <button type="stop" label="&sidebar.loading.stop.label;"
  189.                             oncommand="SidebarStopPanelLoad(this.parentNode.parentNode.parentNode.previousSibling);"/>
  190.                     <button label="&sidebar.reload.label;" hidden="true"
  191.                             oncommand="SidebarReload();"/>
  192.                   </hbox>
  193.                   <spacer flex="100%"/>
  194.                 </vbox>
  195.                 <browser flex="1" class="browser-sidebar" src="about:blank"
  196.                          hidden="true" collapsed="true" content="?content"/>
  197.                 <browser flex="1" class="browser-sidebar" src="about:blank"
  198.                          hidden="true" collapsed="true" content="?content"
  199.                          type="content" tooltip="aHTMLTooltip"/>
  200.               </vbox>
  201.             </action>
  202.           </rule>
  203.         </template>
  204.         <vbox id="sidebar-iframe-no-panels" class="iframe-panel" flex="1"
  205.               hidden="true">
  206.           <description>&sidebar.no-panels.state;</description>
  207.           <description>&sidebar.no-panels.add;</description>
  208.           <description>&sidebar.no-panels.hide;</description>
  209.         </vbox>
  210.       </vbox>
  211.       <hbox id="nav-buttons-box" hidden="true">
  212.         <toolbarbutton flex="1" pack="center" 
  213.                        class="sidebar-nav-button tab-fwd" onclick="SidebarNavigate(-1);"/>
  214.         <toolbarbutton flex="1" pack="center" 
  215.                        class="sidebar-nav-button tab-back" onclick="SidebarNavigate(1);"/>
  216.       </hbox>
  217.     </vbox>
  218.     <popupset id="contentAreaContextSet"/>
  219.   </vbox>
  220.  
  221.   <!-- Splitter on the right of sidebar -->
  222.   <splitter id="sidebar-splitter" collapse="before" persist="state hidden"
  223.             class="chromeclass-extrachrome sidebar-splitter" align="center"
  224.             onmouseup="SidebarFinishClick();" hidden="true">
  225.     <grippy class="sidebar-splitter-grippy"
  226.             onclick="SidebarCleanUpExpandCollapse();"/>
  227.   </splitter>
  228.  
  229.   <!-- View->Sidebar toggle -->
  230.   <menupopup id="menu_View_Popup">
  231.     <menu id="menu_Toolbars">
  232.       <menupopup id="view_toolbars_popup">
  233.         <menuseparator/>
  234.         <menuitem id="sidebar-menu" type="checkbox"
  235.                   label="&sidebarCmd.label;"
  236.                   accesskey="&sidebarCmd.accesskey;"
  237.                   command="toggleSidebar"
  238.                   key="showHideSidebar"/>
  239.       </menupopup>
  240.     </menu>
  241.   </menupopup>
  242.   
  243.   <menupopup id="goPopup">
  244.     <menuitem label="&historyCmd.label;" accesskey="&historyCmd.accesskey;" command="revealHistory" key="historyShortcut"/>
  245.   </menupopup>
  246.  
  247.   <!-- Scripts go last, because they peek at state to tweak menus -->
  248.   <script type="application/x-javascript"
  249.           src="chrome://browser/content/sidebar/sidebarOverlay.js"/>
  250.  
  251. </overlay>
  252.  
  253.