home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / mozil06.zip / bin / chrome / toolkit.jar / content / global / filepicker.xul < prev    next >
Extensible Markup Language  |  2001-02-14  |  4KB  |  111 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.    -->
  27.  
  28. <?xml-stylesheet href="chrome://global/skin/filepicker.css" type="text/css"?>
  29.  
  30. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  31. <?xml-stylesheet href="chrome://global/content/filepicker.css" type="text/css"?>
  32.  
  33. <!DOCTYPE window SYSTEM "chrome://global/locale/filepicker.dtd" >
  34.  
  35. <window id="main-window"
  36.   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  37.   xmlns:nc="http://home.netscape.com/NC-rdf#"
  38.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  39.   orient="vertical"
  40.   onload="onLoad();"
  41.   width="426" height="300"
  42.   class="dialog"
  43.   persist="screenX screenY">
  44.  
  45. <script src="chrome://global/content/strres.js"/>
  46. <script src="chrome://global/content/filepicker.js"/>
  47. <keyset id="keyset"/>
  48.  
  49. <box autostretch="never">
  50.   <text value="&lookInMenuList.label;"/>
  51.   <menulist id="lookInMenuList" flex="1" oncommand="onDirectoryChanged(event.target);">
  52.     <menupopup id="lookInMenu"/>
  53.   </menulist>
  54.   <button value=".." onclick="goUp();"/>
  55. </box>
  56.  
  57. <box flex="1">
  58.   <tree id="directoryTree" flex="1" onkeypress="onKeypress(event)"
  59.   onselect="onSelect(event)" datasources="rdf:files">
  60.     <template id="fileFilter">
  61.       <!-- This is the rule for files matching the filter -->
  62.       <rule id="matchRule.0">
  63.         <treechildren flex="1">
  64.           <treeitem uri="..." empty="true"
  65.                     type="rdf:http://home.netscape.com/NC-rdf#File-Type" 
  66.                     loading="rdf:http://home.netscape.com/NC-rdf#loading" >
  67.             <treerow path="rdf:http://home.netscape.com/NC-rdf#URL">
  68.               <treecell class="treecell-filename treecell-indent"
  69.                         indent="true" type="rdf:http://home.netscape.com/NC-rdf#File-Type"
  70.                         value="rdf:http://home.netscape.com/NC-rdf#Name"/>
  71.               <treecell value="rdf:http://home.netscape.com/NC-rdf#Content-Length" />
  72.               <treecell value="rdf:http://home.netscape.com/WEB-rdf#LastModifiedDate" />
  73.             </treerow>
  74.           </treeitem>
  75.         </treechildren>
  76.       </rule>
  77.  
  78.     </template>
  79.             
  80.     <treecolgroup>
  81.       <treecol flex="1" id="FilenameColumn" resource="http://home.netscape.com/NC-rdf#Name" sortActive="true" sortDirection="ascending"/>
  82.             <splitter class="tree-splitter"/>
  83.       <treecol flex="1" id="ContentLengthColumn" resource="http://home.netscape.com/NC-rdf#Content-Length"/>
  84.             <splitter class="tree-splitter"/>
  85.       <treecol flex="1" id="LastModifiedDateColumn" resource="http//home.netscape.com/WEB-rdf#LastModifiedDate"/>
  86.     </treecolgroup>
  87.     <treehead>
  88.       <treerow>
  89.         <treecell class="treecell-header" value="&name.label;"/>
  90.         <treecell class="treecell-header" value="&size.label;"/>
  91.         <treecell class="treecell-header" value="&lastModified.label;"/>
  92.       </treerow>
  93.     </treehead>
  94.     <treechildren flex="1" onclick="onClick(event)"/>
  95.   </tree>
  96. </box>
  97.  
  98. <box autostretch="never" style="margin-top: 5px">
  99.   <text value="&textInput.label;"/>
  100.   <textfield id="textInput" flex="1"/>
  101. </box>
  102.  
  103. <box autostretch="never" id="filterBox" hidden="true">
  104.   <text value="&filterMenuList.label;"/>
  105.   <menulist id="filterMenuList" flex="1" oncommand="onFilterChanged(event.target);"/>
  106. </box>
  107.  
  108. <box id="okCancelButtons"/>
  109.  
  110. </window>
  111.