home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / Programy / nsb-install-8-0.exe / chrome / toolkit.jar / content / mozapps / extensions / extensions.xul < prev    next >
Extensible Markup Language  |  2005-07-29  |  13KB  |  251 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  5. <?xml-stylesheet href="chrome://mozapps/content/extensions/extensions.css"?>
  6. <?xml-stylesheet href="chrome://mozapps/skin/extensions/extensions.css"?>
  7.  
  8. <!DOCTYPE window [
  9. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
  10. %brandDTD;
  11. <!ENTITY % extensionsDTD SYSTEM "chrome://mozapps/locale/extensions/extensions.dtd">
  12. %extensionsDTD;
  13. ]>
  14.  
  15. <window xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  16.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  17.         id="extensionsManager" windowtype="Extension:Manager"
  18.         orient="vertical" title="&extensions.title;" statictitle="&extensions.title;"
  19.         screenX="10" screenY="10"
  20.         persist="width height screenX screenY sizeMode"
  21.         onload="Startup();" onunload="Shutdown();"
  22.         onclose="return closeWindow(false);">
  23.       
  24.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  25.   <script type="application/x-javascript" src="chrome://mozapps/content/extensions/extensions.js"/>
  26.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  27.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  28.   
  29.   <stringbundleset id="extensionsSet">
  30.     <stringbundle id="brandStrings" src="chrome://global/locale/brand.properties"/>
  31.     <stringbundle id="extensionsStrings" src="chrome://mozapps/locale/extensions/extensions.properties"/>
  32.     <stringbundle id="xpinstallStrings" src="chrome://global/locale/xpinstall/xpinstall.properties"/>
  33.   </stringbundleset>
  34.     
  35.   <keyset id="extensionsKeys">
  36.     <key id="key_close"   key="&cmd.close.commandKey;"    modifiers="accel" command="cmd_close" 
  37.          oncommand="gExtensionsViewController.doCommand('cmd_close');"/>
  38.     <key id="key_close2"  keycode="VK_ESCAPE"                               command="cmd_close"
  39.          oncommand="gExtensionsViewController.doCommand('cmd_close');"/>
  40.     <key id="key_about"   key="&cmd.info.commandKey;"     modifiers="accel" command="cmd_about" 
  41.          oncommand="gExtensionsViewController.doCommand('cmd_about');"/>
  42.     <key id="key_options" key="&cmd.options.commandKey;"  modifiers="accel" command="cmd_options"
  43.          oncommand="gExtensionsViewController.doCommand('cmd_options');"/>
  44.   </keyset>
  45.   
  46.   <commandset id="extensionsCommands"
  47.               events="richview-select,focus"
  48.               commandupdater="true"
  49.               oncommandupdate="gExtensionsViewController.onCommandUpdate();"
  50.               oncommand="gExtensionsViewController.doCommand(event.target.id);">
  51.     <command id="cmd_close"/>
  52.     <command id="cmd_options"/>
  53.     <command id="cmd_about"/>
  54.     <command id="cmd_homepage"/>
  55.     <command id="cmd_uninstall"/>
  56.     <command id="cmd_update"/>
  57.     <command id="cmd_enable"/>
  58.     <command id="cmd_disable"/>
  59.     <command id="cmd_movetop"/>
  60.     <command id="cmd_moveup"/>
  61.     <command id="cmd_movedn"/>
  62.     <command id="cmd_useTheme"/>
  63.   </commandset>
  64.   
  65.   <vbox id="contextMenuPalette" hidden="true">
  66.     <menuitem id="menuitem_useTheme" default="true" command="cmd_useTheme"
  67.               label="&cmd.useTheme.label;" accesskey="&cmd.useTheme.accesskey;"/>
  68.     <menuitem id="menuitem_options" default="true" command="cmd_options"
  69.               label="&cmd.options.label;" accesskey="&cmd.options.accesskey;"/>
  70.     <menuitem id="menuitem_homepage" command="cmd_homepage"
  71.               label="&cmd.homepage.label;" accesskey="&cmd.homepage.accesskey;"/>
  72.     <menuitem id="menuitem_about" command="cmd_about"
  73.               label="&cmd.about.label;" accesskey="&cmd.about.accesskey;"/>
  74.     <menuseparator id="menuseparator_1"/>
  75.     <menuitem id="menuitem_uninstall" command="cmd_uninstall"
  76.               label="&cmd.uninstall.label;" accesskey="&cmd.uninstall.accesskey;"/>
  77.     <menuitem id="menuitem_update" command="cmd_update"
  78.               label="&cmd.update.label;" accesskey="&cmd.update.accesskey;"/>
  79.     <menuitem id="menuitem_enable" command="cmd_enable"
  80.               label="&cmd.enable.label;" accesskey="&cmd.enable.accesskey;"/>
  81.     <menuitem id="menuitem_disable" command="cmd_disable"
  82.               label="&cmd.disable.label;" accesskey="&cmd.disable.accesskey;"/>
  83.     <menuseparator id="menuseparator_2"/>
  84.     <menuitem id="menuitem_moveTop" command="cmd_movetop"
  85.               label="&cmd.moveToTop.label;" accesskey="&cmd.moveToTop.accesskey;"/>
  86.     <menuitem id="menuitem_moveUp" command="cmd_moveup"
  87.               label="&cmd.moveUp.label;" accesskey="&cmd.moveUp.accesskey;"/>
  88.     <menuitem id="menuitem_moveDn" command="cmd_movedn"
  89.               label="&cmd.moveDn.label;" accesskey="&cmd.moveDn.accesskey;"/>
  90.   </vbox>
  91.   
  92.   <popup id="extensionContextMenu" onpopupshowing="return buildContextMenu(event);"/>
  93.  
  94.   <hbox flex="1">
  95.     <view id="extensionsView" flex="3" style="overflow: auto;"
  96.           context="extensionContextMenu"
  97.           datasources="rdf:null" persist="last-selected"
  98.           ondragover="nsDragAndDrop.dragOver(event, gExtensionsDNDObserver);"
  99.           ondragdrop="nsDragAndDrop.drop(event, gExtensionsDNDObserver);"
  100.           ondblclick="onViewDoubleClick(event);">
  101.       <template>
  102.         <rule>
  103.           <conditions>
  104.             <content uri="?uri"/>
  105.             <member container="?uri" child="?extension"/>
  106.             <triple subject="?extension"
  107.                     predicate="http://www.mozilla.org/2004/em-rdf#name"
  108.                     object="?name"/>
  109.             <triple subject="?extension"
  110.                     predicate="http://www.mozilla.org/2004/em-rdf#version"
  111.                     object="?version"/>
  112.           </conditions>
  113.           <bindings>
  114.             <binding subject="?extension"
  115.                     predicate="http://www.mozilla.org/2004/em-rdf#creator"
  116.                     object="?creator"/>
  117.             <binding subject="?extension"
  118.                     predicate="http://www.mozilla.org/2004/em-rdf#iconURL"
  119.                     object="?icon"/>
  120.             <binding subject="?extension"
  121.                     predicate="http://www.mozilla.org/2004/em-rdf#previewImage"
  122.                     object="?previewImage"/>
  123.             <binding subject="?extension"
  124.                     predicate="http://www.mozilla.org/2004/em-rdf#optionsURL"
  125.                     object="?options-url"/>
  126.             <binding subject="?extension"
  127.                     predicate="http://www.mozilla.org/2004/em-rdf#aboutURL"
  128.                     object="?about-url"/>
  129.             <binding subject="?extension"
  130.                     predicate="http://www.mozilla.org/2004/em-rdf#updateURL"
  131.                     object="?update-url"/>
  132.             <binding subject="?extension"
  133.                     predicate="http://www.mozilla.org/2004/em-rdf#disabled"
  134.                     object="?disabled"/>
  135.             <binding subject="?extension"
  136.                     predicate="http://www.mozilla.org/2004/em-rdf#compatible"
  137.                     object="?compatible"/>
  138.             <binding subject="?extension"
  139.                     predicate="http://www.mozilla.org/2004/em-rdf#homepageURL"
  140.                     object="?homepage-url"/>
  141.             <binding subject="?extension"
  142.                     predicate="http://www.mozilla.org/2004/em-rdf#description"
  143.                     object="?description"/>
  144.             <binding subject="?extension"
  145.                     predicate="http://www.mozilla.org/2004/em-rdf#displayDescription"
  146.                     object="?displayDescription"/>
  147.             <binding subject="?extension"
  148.                     predicate="http://www.mozilla.org/2004/em-rdf#locked"
  149.                     object="?locked"/>
  150.             <binding subject="?extension"
  151.                     predicate="http://www.mozilla.org/2004/em-rdf#toBeInstalled"
  152.                     object="?toBeInstalled"/>
  153.             <binding subject="?extension"
  154.                     predicate="http://www.mozilla.org/2004/em-rdf#toBeUninstalled"
  155.                     object="?toBeUninstalled"/>
  156.             <binding subject="?extension"
  157.                     predicate="http://www.mozilla.org/2004/em-rdf#toBeEnabled"
  158.                     object="?toBeEnabled"/>
  159.             <binding subject="?extension"
  160.                     predicate="http://www.mozilla.org/2004/em-rdf#toBeDisabled"
  161.                     object="?toBeDisabled"/>
  162.             <binding subject="?extension"
  163.                     predicate="http://www.mozilla.org/2004/em-rdf#itemType"
  164.                     object="?itemType"/>
  165.             <binding subject="?extension"
  166.                     predicate="http://www.mozilla.org/2004/em-rdf#internalName"
  167.                     object="?internalName"/>
  168.             <binding subject="?extension"
  169.                     predicate="http://www.mozilla.org/2004/em-rdf#downloadURL"
  170.                     object="?downloadURL"/>
  171.             <binding subject="?extension"
  172.                     predicate="http://www.mozilla.org/2004/em-rdf#state"
  173.                     object="?state"/>
  174.             <binding subject="?extension"
  175.                     predicate="http://www.mozilla.org/2004/em-rdf#progress"
  176.                     object="?progress"/>
  177.             <binding subject="?extension"
  178.                     predicate="http://www.mozilla.org/2004/em-rdf#status"
  179.                     object="?status"/>
  180.           </bindings>            
  181.           <action>
  182.             <!-- XXXben - we could really use a variety of different templates
  183.                           here to make each element not be so heavy. -->
  184.             <extension uri="?extension"
  185.                        image="?icon" name="?name" version="?version" 
  186.                        description="?displayDescription" creator="?creator"
  187.                        disabled="?disabled" locked="?locked" 
  188.                        compatible="?compatible"
  189.                        optionsURL="?options-url" homepageURL="?homepage-url"
  190.                        aboutURL="?about-url" updateURL="?update-url"
  191.                        previewImage="?previewImage" internalName="?internalName"
  192.                        toBeInstalled="?toBeInstalled" toBeUninstalled="?toBeUninstalled"
  193.                        toBeEnabled="?toBeEnabled" toBeDisabled="?toBeDisabled"
  194.                        itemType="?itemType" downloadURL="?downloadURL"
  195.                        state="?state" progress="?progress" status="?status"/>
  196.           </action>
  197.         </rule>
  198.       </template>
  199.     </view> 
  200.     <vbox flex="5" id="themePreviewArea" class="themePreviewArea" hidden="true">
  201.       <deck id="previewImageDeck" flex="1">
  202.         <vbox id="noThemeSelected" pack="center" align="center">
  203.           <label class="previewText">&previewNoThemeSelected.label;</label>
  204.         </vbox>
  205.         <vbox id="noPreviewImage" pack="center" align="center">
  206.           <label class="previewText">&previewNoPreviewImage.label;</label>
  207.         </vbox>
  208.         <vbox id="previewImageContainer" align="center" pack="center"
  209.               style="overflow: auto;">
  210.           <description>
  211.             <image id="previewImage"/>
  212.           </description>
  213.         </vbox>
  214.       </deck>
  215.     </vbox>
  216.   </hbox>
  217.   <hbox>
  218.     <hbox id="commandBar" flex="1" align="center">
  219.       <hbox>
  220.         <button id="uninstallButton" 
  221.                 label="&cmd.uninstall.label;" accesskey="&cmd.uninstall.accesskey;" tooltiptext="&cmd.uninstall.tooltip;" 
  222.                 command="cmd_uninstall"/>
  223.         <separator class="commandBarSeparator"/>              
  224.         <button id="updateButton" 
  225.                 label="&cmd.update.label;" accesskey="&cmd.update.accesskey;" tooltiptext="&cmd.update.tooltip;"
  226.                 command="cmd_update"/>
  227.         <separator class="commandBarSeparator"/>              
  228.         <button id="optionsButton"
  229.                 label="&cmd.options.label;" accesskey="&cmd.options.accesskey;" tooltiptext="&cmd.options.tooltip;"
  230.                 command="cmd_options"/>
  231.         <button id="useThemeButton" hidden="true"
  232.                 label="&cmd.useTheme.label;" accesskey="&cmd.useTheme.accesskey;" tooltiptext="&cmd.useTheme.tooltip;"
  233.                 command="cmd_useTheme"/>
  234.       </hbox>
  235.       <spacer flex="1"/>
  236.  
  237.       <label id="getMore"
  238.              onclick="openURL(gGetMoreURL);"
  239.              onkeypress="if (event.keyCode == event.DOM_VK_ENTER || event.keyCode == event.DOM_VK_RETURN) openURL(gGetMoreURL);"
  240.              valuethemes="&getMoreThemes.label;"
  241.              valueextensions="&getMoreExtensions.label;"
  242.              tooltiptextthemes="&getMoreThemes.tooltip;"
  243.              tooltiptextextensions="&getMoreExtensions.tooltip;"/>
  244.     </hbox>
  245.     
  246.     <resizer id="windowResizer" dir="bottomright"/>
  247.   </hbox>  
  248.  
  249. </window>
  250.  
  251.