home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / firefox-3.0.14 / chrome / browser.jar / content / browser / places / bookmarkProperties2.xul < prev    next >
Encoding:
Extensible Markup Language  |  2007-12-13  |  7.4 KB  |  171 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- ***** BEGIN LICENSE BLOCK *****
  4.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5.    -
  6.    - The contents of this file are subject to the Mozilla Public License Version
  7.    - 1.1 (the "License"); you may not use this file except in compliance with
  8.    - the License. You may obtain a copy of the License at
  9.    - http://www.mozilla.org/MPL/
  10.    -
  11.    - Software distributed under the License is distributed on an "AS IS" basis,
  12.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.    - for the specific language governing rights and limitations under the
  14.    - License.
  15.    -
  16.    - The Original Code is the Places Bookmark Properties dialog.
  17.    -
  18.    - The Initial Developer of the Original Code is Google Inc.
  19.    - Portions created by the Initial Developer are Copyright (C) 2006
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s):
  23.    -   Joe Hughes <jhughes@google.com>
  24.    -   Asaf Romano <mano@mozilla.com>
  25.    -   Ehsan Akhgari <ehsan.akhgari@gmail.com>
  26.    -
  27.    - Alternatively, the contents of this file may be used under the terms of
  28.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  29.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  30.    - in which case the provisions of the GPL or the LGPL are applicable instead
  31.    - of those above. If you wish to allow use of your version of this file only
  32.    - under the terms of either the GPL or the LGPL, and not to allow others to
  33.    - use your version of this file under the terms of the MPL, indicate your
  34.    - decision by deleting the provisions above and replace them with the notice
  35.    - and other provisions required by the GPL or the LGPL. If you do not delete
  36.    - the provisions above, a recipient may use your version of this file under
  37.    - the terms of any one of the MPL, the GPL or the LGPL.
  38.    -
  39.    - ***** END LICENSE BLOCK ***** -->
  40.  
  41. <?xml-stylesheet href="chrome://global/skin/"?>
  42. <?xml-stylesheet href="chrome://browser/skin/places/bookmarkProperties.css"?>
  43. <?xml-stylesheet href="chrome://browser/skin/places/places.css"?>
  44. <?xml-stylesheet href="chrome://browser/content/places/places.css"?>
  45. <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
  46.  
  47. <!DOCTYPE dialog [
  48.   <!ENTITY % propertiesDTD SYSTEM "chrome://browser/locale/places/bookmarkProperties.dtd">
  49.   %propertiesDTD;
  50.   <!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd">
  51.   %placesDTD;
  52. ]>
  53.  
  54. <dialog id="bookmarkproperties"
  55.         buttons="accept, cancel"
  56.         buttonlabelextra2="&bookmarks.newFolderButton.label;"
  57.         buttonaccesskeyextra2="&bookmarks.newFolderButton.accesskey;"
  58.         ondialogaccept="BookmarkPropertiesPanel.onDialogAccept();"
  59.         ondialogextra2="BookmarkPropertiesPanel.newFolder();"
  60.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  61.         onload="BookmarkPropertiesPanel.onDialogLoad();"
  62.         onunload="BookmarkPropertiesPanel.onDialogUnload();"
  63.         style="min-width: 30em;"
  64.         persist="screenX screenY width">
  65.  
  66.   <stringbundleset id="stringbundleset">
  67.     <stringbundle id="stringBundle"
  68.                   src="chrome://browser/locale/places/bookmarkProperties.properties"/>
  69.   </stringbundleset>
  70.  
  71.   <script type="application/x-javascript"
  72.           src="chrome://browser/content/places/bookmarkProperties.js"/>
  73.  
  74.   <grid id="placesInfoGrid">
  75.     <columns>
  76.       <column/>
  77.       <column flex="1"/>
  78.     </columns>
  79.     <rows id="placesInfoRows">
  80.       <row id="titleRow" align="center">
  81.         <label value="&bookmarks.name.label;" accesskey="&bookmarks.name.accesskey;"
  82.                control="namePicker"/>
  83.         <menulist id="namePicker"
  84.                   editable="true"
  85.                   droppable="false"
  86.                   oninput="BookmarkPropertiesPanel.onNamePickerInput();">
  87.           <menupopup>
  88.             <menuitem id="userEnteredName"/>
  89.             <menuitem disabled="true">
  90.               <menuseparator flex="1"/>
  91.               <label value="&bookmarks.liveTitlesSeparator.label;"/>
  92.             </menuitem>
  93.           </menupopup>
  94.         </menulist>
  95.       </row>
  96.       <row id="locationRow" align="center">
  97.         <label value="&bookmarks.location.label;" accesskey="&bookmarks.location.accesskey;"
  98.                control="editURLBar"/>
  99.         <textbox id="editURLBar" size="10"
  100.                  onchange="BookmarkPropertiesPanel.validateChanges();"
  101.                  oninput="BookmarkPropertiesPanel.validateChanges();"/>
  102.       </row>
  103.       <row id="livemarkFeedLocationRow" align="center">
  104.         <label value="&bookmarks.feed_location.label;" accesskey="&bookmarks.feed_location.accesskey;"
  105.                control="feedLocationTextfield"/>
  106.         <textbox id="feedLocationTextfield"
  107.                  onchange="BookmarkPropertiesPanel.validateChanges();"
  108.                  oninput="BookmarkPropertiesPanel.validateChanges();"/>
  109.       </row>
  110.       <row id="livemarkSiteLocationRow" align="center">
  111.         <label value="&bookmarks.site_location.label;" accesskey="&bookmarks.site_location.accesskey;"
  112.                control="feedSiteLocationTextfield"/>
  113.         <textbox id="feedSiteLocationTextfield"
  114.                  onchange="BookmarkPropertiesPanel.validateChanges();"
  115.                  oninput="BookmarkPropertiesPanel.validateChanges();"/>
  116.       </row>
  117.       <row id="keywordRow" align="center">
  118.         <label value="&bookmarks.keyword.label;" accesskey="&bookmarks.keyword.accesskey;"
  119.                control="keywordTextfield"/>
  120.         <textbox id="keywordTextfield"/>
  121.       </row>
  122.       <row id="descriptionRow">
  123.         <label value="&bookmarks.description.label;" accesskey="&bookmarks.description.accesskey;"
  124.                control="descriptionTextfield"/>
  125.         <textbox id="descriptionTextfield" multiline="true"/>
  126.       </row>
  127.       <row id="folderRow" align="center">
  128.         <label value="&bookmarks.createIn.label;" accesskey="&bookmarks.createIn.accesskey;"
  129.                control="folderMenuList"/>
  130.         <menulist id="folderMenuList"
  131.                   class="folder-icon"
  132.                   oncommand="BookmarkPropertiesPanel.onMenuListFolderSelect();">
  133.           <menupopup>
  134.             <!-- Static item for special folders -->
  135.             <menuitem id="bookmarksRootItem"
  136.                       class="menuitem-iconic folder-icon"/>
  137.             <menuitem id="toolbarFolderItem"
  138.                       class="menuitem-iconic folder-icon"/>
  139.             <menuseparator id="foldersSeparator" hidden="true"/>
  140.           </menupopup>
  141.         </menulist>
  142.         <button id="expander"
  143.                 class="down"
  144.                 tooltiptext="&bookmarks.expanderDown.tooltip;"
  145.                 tooltiptextdown="&bookmarks.expanderDown.tooltip;"
  146.                 tooltiptextup="&bookmarks.expanderUp.tooltip;"
  147.                 oncommand="BookmarkPropertiesPanel.toggleTreeVisibility();"/>
  148.       </row>
  149.       <checkbox id="loadInSidebarCheckbox"
  150.                 label="&bookmarks.loadInSidebar.label;"
  151.                 accesskey="&bookmarks.loadInSidebar.accesskey;"/>
  152.     </rows>
  153.   </grid>
  154.  
  155.   <separator class="thin"/>
  156.   <tree id="folderTree"
  157.         class="placesTree"
  158.         collapsed="true"
  159.         flex="1"
  160.         type="places"
  161.         height="150"
  162.         persist="height"
  163.         onselect="BookmarkPropertiesPanel.onFolderTreeSelect();"
  164.         hidecolumnpicker="true">
  165.     <treecols>
  166.       <treecol id="title" flex="1" primary="true" hideheader="true"/>
  167.     </treecols>
  168.     <treechildren id="placesListChildren" view="placesList" flex="1"/>
  169.   </tree>
  170. </dialog>
  171.