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 / filepicker.xul < prev    next >
Extensible Markup Language  |  2004-11-25  |  3KB  |  79 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/filepicker.css" type="text/css"?>
  4.  
  5. <!DOCTYPE dialog SYSTEM "chrome://global/locale/filepicker.dtd" >
  6.  
  7. <dialog id="main-window"
  8.   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  9.   xmlns:nc="http://home.netscape.com/NC-rdf#"
  10.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  11.   onload="filepickerLoad();"
  12.   width="426" height="300"
  13.   ondialogaccept="return selectOnOK();"
  14.   ondialogcancel="return onCancel();"
  15.   persist="screenX screenY width height">
  16.  
  17. <stringbundle id="bundle_filepicker" src="chrome://global/locale/filepicker.properties"/>
  18. <script type="application/x-javascript" src="chrome://global/content/filepicker.js"/>
  19.  
  20. <hbox align="center">
  21.   <label value="&lookInMenuList.label;" control="lookInMenuList" accesskey="&lookInMenuList.accesskey;"/>
  22.   <menulist id="lookInMenuList" flex="1" oncommand="onDirectoryChanged(event.target);" crop="start">
  23.     <menupopup id="lookInMenu"/>
  24.   </menulist>
  25.   <button id="folderUpButton" class="up-button" tooltiptext="&folderUp.tooltiptext;" oncommand="goUp();"/>
  26.   <button id="homeButton" class="home-button" tooltiptext="&folderHome.tooltiptext;" oncommand="goHome();"/>
  27.   <button id="newDirButton" hidden="true" class="new-dir-button" tooltiptext="&folderNew.tooltiptext;" oncommand="newDir();"/>
  28. </hbox>
  29.  
  30. <hbox flex="1">
  31.   <deck id="errorShower" flex="1">
  32.     <tree id="directoryTree" flex="1" class="focusring" seltype="single"
  33.               onclick="onClick(event);"
  34.               ondblclick="onDblClick(event);"
  35.               onkeypress="onKeypress(event);"
  36.               onfocus="onTreeFocus(event);"
  37.               onselect="onSelect(event);">
  38.       <treecols>
  39.         <treecol id="FilenameColumn" label="&name.label;" flex="1"
  40.                      class="sortDirectionIndicator"/>
  41.         <splitter class="tree-splitter"/>
  42.         <treecol id="FileSizeColumn" label="&size.label;" flex="1"
  43.                      class="sortDirectionIndicator"/>
  44.         <splitter class="tree-splitter"/>
  45.         <treecol id="LastModifiedColumn" label="&lastModified.label;" flex="1"
  46.                      class="sortDirectionIndicator"/>
  47.       </treecols>
  48.       <treechildren/>
  49.     </tree>
  50.     <label>&noPermissionError.label;</label>
  51.   </deck>
  52. </hbox>
  53.  
  54. <grid style="margin-top: 5px">
  55.   <columns>
  56.     <column/>
  57.     <column flex="1"/>
  58.   </columns>
  59.  
  60.   <rows>
  61.     <row align="center">
  62.       <label value="&textInput.label;" id="textInputLabel" control="textInput" accesskey="&textInput.accesskey;"/>
  63.       <textbox id="textInput" flex="1" oninput="doEnabling()" 
  64.                onfocus="onTextFieldFocus();"/>
  65.     </row>
  66.     <row id="filterBox" hidden="true" align="center">
  67.       <label value="&filterMenuList.label;"  control="filterMenuList" accesskey="&filterMenuList.accesskey;"/>
  68.       <menulist id="filterMenuList" flex="1" oncommand="onFilterChanged(event.target);"/>
  69.     </row>
  70.   </rows>
  71. </grid>
  72. <hbox class="dialog-button-box" align="center">
  73.   <checkbox label="&showHiddenFiles.label;" oncommand="toggleShowHidden();"
  74.             flex="1" align="left"  accesskey="&showHiddenFiles.accesskey;"/>
  75.   <button dlgtype="cancel" class="dialog-button"/>
  76.   <button dlgtype="accept" class="dialog-button"/>
  77. </hbox>
  78. </dialog>
  79.