toolkit/components/filepicker/content/filepicker.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial