home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 July & August / PCWorld_2005-07-08_cd.bin / komunikace / netscape / nsb-install-8-0.exe / chrome / toolkit.jar / content / global / customizeToolbar.xul < prev    next >
Extensible Markup Language  |  2005-05-01  |  9KB  |  204 lines

  1. <?xml version="1.0"?> 
  2. <!--
  3. -->
  4. <!DOCTYPE dialog [
  5. <!ENTITY % customizeToolbarDTD SYSTEM "chrome://global/locale/customizeToolbar.dtd">
  6.   %customizeToolbarDTD;
  7. ]>
  8.  
  9. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
  10. <?xml-stylesheet href="chrome://browser/skin/spui.css" type="text/css"?>
  11. <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
  12. <?xml-stylesheet href="chrome://browser/content/webmail.css" type="text/css"?>
  13. <?xml-stylesheet href="chrome://global/content/customizeToolbar.css" type="text/css"?>
  14. <?xml-stylesheet href="chrome://global/skin/customizeToolbar.css" type="text/css"?>
  15.  
  16. <window id="CustomizeToolbarWindow"
  17.         title="&dialog.title;"
  18.         onload="onLoad();"
  19.         onunload="onUnload();"
  20.         onclose="onAccept(); return false;"
  21.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  22.  
  23. <script type="application/x-javascript" src="chrome://global/content/customizeToolbar.js"/>
  24. <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  25. <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  26.  
  27. <stringbundle id="stringBundle" src="chrome://global/locale/customizeToolbar.properties"/>
  28.  
  29. <keyset>
  30.   <key id="cmd_close_sheet" keycode="VK_ESCAPE" oncommand="onAccept();" />
  31.   <key id="cmd_close_sheet" keycode="VK_RETURN" oncommand="onAccept();" />
  32.   <key id="cmd_close_sheet" keycode="VK_ENTER" oncommand="onAccept();" />
  33. </keyset>
  34.  
  35. <vbox id="main-box" flex="1" collapsed="true">
  36.     <hbox>
  37.          <vbox flex="2">
  38.           <hbox>
  39.             <tabbox id="palette-tab-box" style="max-width: 600px; max-height: 300px; overflow: hidden;" flex="1">
  40.                 <tabs>
  41.                     <tab label="Personal"/>
  42.                     <tab label="Headline"/>
  43.                     <tab label="Navigational"/>
  44.                     <tab label="Functional"/>
  45.                 </tabs>
  46.                 <tabpanels>
  47.                 <tabpanel id="personaltab" orient="vertical">
  48.                     <description id="instructions">
  49.                         &instructions.description;
  50.                     </description>
  51.                          <grid flex="1" id="personal-palette-box" height="200" style="max-height: 200px;"
  52.                             ondraggesture="gDraggingFromPalette = true; nsDragAndDrop.startDrag(event, dragStartObserver);"
  53.                             ondragover="nsDragAndDrop.dragOver(event, paletteDNDObserver);"
  54.                             ondragdrop="nsDragAndDrop.drop(event, paletteDNDObserver);">
  55.                             <columns>
  56.                                 <column flex="1"/>
  57.                                 <column flex="1"/>
  58.                             </columns>
  59.                             <rows id="personal-palette-box-grid"/>
  60.                          </grid>
  61.                 </tabpanel>
  62.                     <tabpanel id="headlinetab" orient="vertical">
  63.                         <description id="instructions">
  64.                             &instructions.description;
  65.                         </description>
  66.                          <grid flex="1" id="headline-palette-box" height="200" style="max-height: 200px;"
  67.                             ondraggesture="gDraggingFromPalette = true; nsDragAndDrop.startDrag(event, dragStartObserver);"
  68.                             ondragover="nsDragAndDrop.dragOver(event, paletteDNDObserver);"
  69.                             ondragdrop="nsDragAndDrop.drop(event, paletteDNDObserver);">
  70.                             <columns>
  71.                                 <column flex="1"/>
  72.                                 <column flex="1"/>
  73.                             </columns>
  74.                             <rows id="headline-palette-box-grid"/>
  75.                          </grid>
  76.                     </tabpanel>    
  77.                     <tabpanel id="navigationaltab" orient="vertical">
  78.                         <description id="instructions">
  79.                             &instructions.description;
  80.                         </description>
  81.                          <grid flex="1" id="palette-box" height="200" style="max-height: 200px;"
  82.                             ondraggesture="gDraggingFromPalette = true; nsDragAndDrop.startDrag(event, dragStartObserver);"
  83.                             ondragover="nsDragAndDrop.dragOver(event, paletteDNDObserver);"
  84.                             ondragdrop="nsDragAndDrop.drop(event, paletteDNDObserver);">
  85.                             <columns>
  86.                                 <column flex="1"/>
  87.                                 <column flex="1"/>
  88.                                 <column flex="1"/>
  89.                                 <column flex="1"/>
  90.                             </columns>
  91.                             <rows id="palette-box-grid"/>
  92.                          </grid>
  93.                     </tabpanel>
  94.                     <tabpanel id="functionaltab" orient="vertical">
  95.                         <description id="instructions">
  96.                             &instructions.description;
  97.                         </description>
  98.                          <grid flex="1" id="functional-palette-box" height="200" style="max-height: 200px;"
  99.                             ondraggesture="gDraggingFromPalette = true; nsDragAndDrop.startDrag(event, dragStartObserver);"
  100.                             ondragover="nsDragAndDrop.dragOver(event, paletteDNDObserver);"
  101.                             ondragdrop="nsDragAndDrop.drop(event, paletteDNDObserver);">
  102.                             <columns>
  103.                                 <column flex="1"/>
  104.                                 <column flex="1"/>
  105.                                 <column flex="1"/>
  106.                                 <column flex="1"/>
  107.                             </columns>
  108.                             <rows id="functional-palette-box-grid"/>
  109.                          </grid>
  110.                     </tabpanel>
  111.                 </tabpanels>
  112.             </tabbox>
  113.             </hbox>
  114.          </vbox>
  115.         <separator class="groove"/>
  116.         <hbox align="stretch" pack="center">
  117.             <vbox flex="1">
  118.                 <label class="boldLabels">Toolbars: </label>
  119.                 <hbox pack="stretch" flex="1">
  120.                     <tree flex="1" hidecolumnpicker="true" id="toolbartree" label="Toolbars: (drag to rearrange)" onselect="updateToolbarSelected(this);">
  121.                         <treecols>
  122.                             <treecol id="toolbartree-name" flex="1" primary="true" hideheader="true"/>
  123.                         </treecols>    
  124.                         <treechildren id="toolbarItemParent"/>
  125.                         <!--    <treeitem ondraggesture="nsDragAndDrop.startDrag(event, treeDragObserver);"
  126.                         ondragover="nsDragAndDrop.dragOver(event, treeDragObserver);"
  127.                         ondragdrop="nsDragAndDrop.drop(event, treeDragObserver);">
  128.                         <treerow>
  129.                         <treecell label="DragMe"/>
  130.                         </treerow>
  131.                         </treeitem> 
  132.                         </treechildren>-->
  133.                     </tree>
  134.                     <vbox align="center" pack="center">
  135.                         <button label="↑" id="moveUpToolbarButton" oncommand="moveToolbarUp();" style="max-width: 24px;"/>
  136.                         <button label="↓" id="moveDownToolbarButton" oncommand="moveToolbarDown();" style="max-width: 24px;"/>
  137.                     </vbox>
  138.                 </hbox>
  139.                 
  140.                 <hbox>
  141.                     <vbox>
  142.                         <groupbox align="stretch" pack="start" orient="vertical">
  143.                             <caption id="settingsBoxCaption" label="Settings"/>
  144.                             
  145.                             <hbox align="center">
  146.                                 <label>Name: </label>
  147.                                 <textbox rows="1"  id="toolbarname" style="width: 100px;"/>
  148.                                 <button oncommand="renameToolbar(document.getElementById('toolbarname').value);" label="Set" style="max-width: 50px; max-height: 24px;"/>
  149.                             </hbox>
  150.                             
  151.                             <hbox>                
  152.                                 <label value="&show.label;"/>
  153.                                 <menulist id="modelist" value="icons-large" oncommand="updateIconSize(this.value.substr(this.value.indexOf('-') + 1, this.value.length)); updateToolbarMode(this.value.substr(0,this.value.indexOf('-'))); ">
  154.                                     <menupopup>
  155.                                         <menuitem value="full-large" modevalue="full" sizevalue="large" label="&iconsAndTextLarge.label;"/>
  156.                                         <menuitem value="full-small" modevalue="full" sizevalue="small" label="&iconsAndTextSmall.label;"/>
  157.                                         <separator/>
  158.                                         <menuitem value="icons-large" modevalue="icons" sizevalue="large" label="&iconsLarge.label;"/>
  159.                                         <menuitem value="icons-small" modevalue="icons" sizevalue="small" label="&iconsSmall.label;"/>
  160.                                         <separator/>
  161.                                         <menuitem value="text-large" modevalue="text" sizevalue="large" label="&text.label;"/>
  162.                                     </menupopup>
  163.                                 </menulist>
  164.                             </hbox>
  165.                             <!-- <checkbox id="smallicons" oncommand="updateIconSize(this.checked);" label="&useSmallIcons.label;"/> -->
  166.                         </groupbox>        
  167.                         <grid>
  168.                             <columns>
  169.                                 <column/>
  170.                                 <column/>
  171.                             </columns>
  172.                             <rows>
  173.                                 <row>
  174.                                     <button class="toolbarSettingButtons" label="Add Toolbar" id="newToolbarButton" oncommand="addNewToolbar();"/>
  175.                                     <button class="toolbarSettingButtons" label="Add Multibar" id="newMultiButton" oncommand="addNewMulti();"/>
  176.                                 </row>
  177.                                 <row>
  178.                                     <button class="toolbarSettingButtons"  label="Add Tray" id="newTrayButton" disabled="false" oncommand="addNewTray();"/>
  179.                                     <button class="toolbarSettingButtons"  label="Remove" id="removeButton" oncommand="removeToolbar();"/>
  180.                                 </row>
  181.                             </rows>
  182.                             </grid>
  183.                     </vbox>
  184.                     <spacer style="width: 24px;"/>
  185.                 </hbox>
  186.             </vbox>
  187.             <!--
  188.             <box align="stretch" pack="start" orient="vertical" style="margin-left: 10px;" flex="1">
  189.                     
  190.             </box> -->
  191.         </hbox>
  192.     </hbox>
  193.     
  194.       <!-- <checkbox id="menuInTitlebar" label="Show main menu in the title bar" flex="1"/> -->
  195.     <separator class="groove"/>
  196.       <hbox align="center" pack="stretch">
  197.           <button label="Reset All to Default" id="resetButton" oncommand="if(confirmRestoreDefaultSet()) restoreDefaultSet();"/><!--  oncommand="if(confirmRestoreDefaultSet()) restoreDefaultSet();" -->
  198.             <spacer flex="1"/>
  199.             <button label="&saveChanges.label;" oncommand="onAccept();" default="true"/>
  200.       </hbox>
  201. </vbox>
  202.  
  203. </window>
  204.