home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / toolkit.jar / content / global / filepicker.xul < prev    next >
Extensible Markup Language  |  2002-09-11  |  4KB  |  105 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
  2.  
  3. <!--
  4.    - The contents of this file are subject to the Mozilla Public
  5.    - License Version 1.1 (the "License"); you may not use this file
  6.    - except in compliance with the License. You may obtain a copy of
  7.    - the License at http://www.mozilla.org/MPL/
  8.     
  9.    - Software distributed under the License is distributed on an "AS
  10.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11.    - implied. See the License for the specific language governing
  12.    - rights and limitations under the License.
  13.     
  14.    - The Original Code is mozilla.org code.
  15.    
  16.    - The Initial Developer of the Original Code is Netscape
  17.    - Communications Corporation. Portions created by Netscape are
  18.    - Copyright (C) 2000 Netscape Communications Corporation.
  19.    - All Rights Reserved.
  20.    
  21.    - Contributor(s): 
  22.    -  Stuart Parmenter <pavlov@netscape.com>
  23.    -  Brian Ryner <bryner@netscape.com>
  24.    -  Jan Varga <varga@utcru.sk>
  25.    -  Peter Annema <disttsc@bart.nl>
  26.    -  Johann Petrak <johann@ai.univie.ac.at>
  27.    -->
  28.  
  29. <?xml-stylesheet href="chrome://global/skin/filepicker.css" type="text/css"?>
  30.  
  31. <!DOCTYPE dialog SYSTEM "chrome://global/locale/filepicker.dtd" >
  32.  
  33. <dialog id="main-window"
  34.   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  35.   xmlns:nc="http://home.netscape.com/NC-rdf#"
  36.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  37.   onload="filepickerLoad();"
  38.   width="426" height="300"
  39.   ondialogaccept="return selectOnOK();"
  40.   ondialogcancel="return onCancel();"
  41.   persist="screenX screenY width height">
  42.  
  43. <stringbundle id="bundle_filepicker" src="chrome://global/locale/filepicker.properties"/>
  44. <script type="application/x-javascript" src="chrome://global/content/filepicker.js"/>
  45.  
  46. <hbox align="center">
  47.   <label value="&lookInMenuList.label;"/>
  48.   <menulist id="lookInMenuList" flex="1" oncommand="onDirectoryChanged(event.target);" crop="start">
  49.     <menupopup id="lookInMenu"/>
  50.   </menulist>
  51.   <button id="folderUpButton" class="up-button" tooltiptext="&folderUp.tooltiptext;" oncommand="goUp();"/>
  52.   <button id="homeButton" class="home-button" tooltiptext="&folderHome.tooltiptext;" oncommand="goHome();"/>
  53.   <button id="newDirButton" hidden="true" class="new-dir-button" tooltiptext="&folderNew.tooltiptext;" oncommand="newDir();"/>
  54. </hbox>
  55.  
  56. <hbox flex="1">
  57.   <deck id="errorShower" flex="1">
  58.     <tree id="directoryTree" flex="1" seltype="single"
  59.               onclick="onClick(event);"
  60.               ondblclick="onDblClick(event);"
  61.               onkeypress="onKeypress(event);"
  62.               onfocus="onTreeFocus(event);"
  63.               onselect="onSelect(event);">
  64.       <treecols>
  65.         <treecol id="FilenameColumn" label="&name.label;" flex="1"
  66.                      class="sortDirectionIndicator"/>
  67.         <splitter class="tree-splitter"/>
  68.         <treecol id="FileSizeColumn" label="&size.label;" flex="1"
  69.                      class="sortDirectionIndicator"/>
  70.         <splitter class="tree-splitter"/>
  71.         <treecol id="LastModifiedColumn" label="&lastModified.label;" flex="1"
  72.                      class="sortDirectionIndicator"/>
  73.       </treecols>
  74.       <treechildren/>
  75.     </tree>
  76.     <label>&noPermissionError.label;</label>
  77.   </deck>
  78. </hbox>
  79.  
  80. <grid style="margin-top: 5px">
  81.   <columns>
  82.     <column/>
  83.     <column flex="1"/>
  84.   </columns>
  85.  
  86.   <rows>
  87.     <row align="center">
  88.       <label value="&textInput.label;" id="textInputLabel"/>
  89.       <textbox id="textInput" flex="1" oninput="doEnabling()" 
  90.                onfocus="onTextFieldFocus();"/>
  91.     </row>
  92.     <row id="filterBox" hidden="true" align="center">
  93.       <label value="&filterMenuList.label;"/>
  94.       <menulist id="filterMenuList" flex="1" oncommand="onFilterChanged(event.target);"/>
  95.     </row>
  96.   </rows>
  97. </grid>
  98. <hbox class="dialog-button-box" align="center">
  99.   <checkbox label="&showHiddenFiles.label;" oncommand="toggleShowHidden();"
  100.             flex="1" align="left"/>
  101.   <button dlgtype="accept" class="dialog-button"/>
  102.   <button dlgtype="cancel" class="dialog-button"/>
  103. </hbox>
  104. </dialog>
  105.