editBookmarkOverlay.xul 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <!-- This Source Code Form is subject to the terms of the Mozilla Public
  2. - License, v. 2.0. If a copy of the MPL was not distributed with this
  3. - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
  4. <!DOCTYPE overlay [
  5. <!ENTITY % editBookmarkOverlayDTD SYSTEM "chrome://browser/locale/places/editBookmarkOverlay.dtd">
  6. %editBookmarkOverlayDTD;
  7. ]>
  8. <?xml-stylesheet href="chrome://browser/skin/places/editBookmarkOverlay.css"?>
  9. <?xml-stylesheet href="chrome://browser/skin/places/places.css"?>
  10. <overlay id="editBookmarkOverlay"
  11. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  12. <vbox id="editBookmarkPanelContent" flex="1">
  13. <broadcaster id="paneElementsBroadcaster"/>
  14. <hbox id="editBMPanel_selectionCount" hidden="true" pack="center">
  15. <label id="editBMPanel_itemsCountText"/>
  16. </hbox>
  17. <grid id="editBookmarkPanelGrid" flex="1">
  18. <columns id="editBMPanel_columns">
  19. <column id="editBMPanel_labelColumn" />
  20. <column flex="1" id="editBMPanel_editColumn" />
  21. </columns>
  22. <rows id="editBMPanel_rows">
  23. <row id="editBMPanel_nameRow"
  24. align="center"
  25. collapsed="true">
  26. <label value="&editBookmarkOverlay.name.label;"
  27. class="editBMPanel_rowLabel"
  28. accesskey="&editBookmarkOverlay.name.accesskey;"
  29. control="editBMPanel_namePicker"
  30. observes="paneElementsBroadcaster"/>
  31. <textbox id="editBMPanel_namePicker"
  32. observes="paneElementsBroadcaster"/>
  33. </row>
  34. <row id="editBMPanel_locationRow"
  35. align="center"
  36. collapsed="true">
  37. <label value="&editBookmarkOverlay.location.label;"
  38. class="editBMPanel_rowLabel"
  39. accesskey="&editBookmarkOverlay.location.accesskey;"
  40. control="editBMPanel_locationField"
  41. observes="paneElementsBroadcaster"/>
  42. <textbox id="editBMPanel_locationField"
  43. class="uri-element"
  44. observes="paneElementsBroadcaster"/>
  45. </row>
  46. <row id="editBMPanel_feedLocationRow"
  47. align="center"
  48. collapsed="true">
  49. <label value="&editBookmarkOverlay.feedLocation.label;"
  50. class="editBMPanel_rowLabel"
  51. accesskey="&editBookmarkOverlay.feedLocation.accesskey;"
  52. control="editBMPanel_feedLocationField"
  53. observes="paneElementsBroadcaster"/>
  54. <textbox id="editBMPanel_feedLocationField"
  55. class="uri-element"
  56. observes="paneElementsBroadcaster"/>
  57. </row>
  58. <row id="editBMPanel_siteLocationRow"
  59. align="center"
  60. collapsed="true">
  61. <label value="&editBookmarkOverlay.siteLocation.label;"
  62. class="editBMPanel_rowLabel"
  63. accesskey="&editBookmarkOverlay.siteLocation.accesskey;"
  64. control="editBMPanel_siteLocationField"
  65. observes="paneElementsBroadcaster"/>
  66. <textbox id="editBMPanel_siteLocationField"
  67. class="uri-element"
  68. observes="paneElementsBroadcaster"/>
  69. </row>
  70. <row id="editBMPanel_folderRow"
  71. align="center"
  72. collapsed="true">
  73. <label value="&editBookmarkOverlay.folder.label;"
  74. class="editBMPanel_rowLabel"
  75. control="editBMPanel_folderMenuList"
  76. observes="paneElementsBroadcaster"/>
  77. <hbox flex="1" align="center">
  78. <menulist id="editBMPanel_folderMenuList"
  79. class="folder-icon"
  80. flex="1"
  81. oncommand="gEditItemOverlay.onFolderMenuListCommand(event);"
  82. observes="paneElementsBroadcaster">
  83. <menupopup>
  84. <!-- Static item for special folders -->
  85. <menuitem id="editBMPanel_toolbarFolderItem"
  86. class="menuitem-iconic folder-icon"/>
  87. <menuitem id="editBMPanel_bmRootItem"
  88. class="menuitem-iconic folder-icon"/>
  89. <menuitem id="editBMPanel_unfiledRootItem"
  90. class="menuitem-iconic folder-icon"/>
  91. <menuseparator id="editBMPanel_chooseFolderSeparator"/>
  92. <menuitem id="editBMPanel_chooseFolderMenuItem"
  93. label="&editBookmarkOverlay.choose.label;"
  94. class="menuitem-iconic folder-icon"/>
  95. <menuseparator id="editBMPanel_foldersSeparator" hidden="true"/>
  96. </menupopup>
  97. </menulist>
  98. <button id="editBMPanel_foldersExpander"
  99. class="expander-down"
  100. tooltiptext="&editBookmarkOverlay.foldersExpanderDown.tooltip;"
  101. tooltiptextdown="&editBookmarkOverlay.foldersExpanderDown.tooltip;"
  102. tooltiptextup="&editBookmarkOverlay.expanderUp.tooltip;"
  103. oncommand="gEditItemOverlay.toggleFolderTreeVisibility();"
  104. observes="paneElementsBroadcaster"/>
  105. </hbox>
  106. </row>
  107. <row id="editBMPanel_folderTreeRow"
  108. collapsed="true"
  109. flex="1">
  110. <spacer/>
  111. <vbox flex="1">
  112. <tree id="editBMPanel_folderTree"
  113. flex="1"
  114. class="placesTree"
  115. type="places"
  116. height="150"
  117. minheight="150"
  118. editable="true"
  119. onselect="gEditItemOverlay.onFolderTreeSelect();"
  120. hidecolumnpicker="true"
  121. observes="paneElementsBroadcaster">
  122. <treecols>
  123. <treecol anonid="title" flex="1" primary="true" hideheader="true"/>
  124. </treecols>
  125. <treechildren flex="1"/>
  126. </tree>
  127. <hbox id="editBMPanel_newFolderBox">
  128. <button label="&editBookmarkOverlay.newFolderButton.label;"
  129. id="editBMPanel_newFolderButton"
  130. accesskey="&editBookmarkOverlay.newFolderButton.accesskey;"
  131. oncommand="gEditItemOverlay.newFolder();"/>
  132. </hbox>
  133. </vbox>
  134. </row>
  135. <row id="editBMPanel_tagsRow"
  136. align="center"
  137. collapsed="true">
  138. <label value="&editBookmarkOverlay.tags.label;"
  139. class="editBMPanel_rowLabel"
  140. accesskey="&editBookmarkOverlay.tags.accesskey;"
  141. control="editBMPanel_tagsField"
  142. observes="paneElementsBroadcaster"/>
  143. <hbox flex="1" align="center">
  144. <textbox id="editBMPanel_tagsField"
  145. type="autocomplete"
  146. class="padded"
  147. flex="1"
  148. autocompletesearch="places-tag-autocomplete"
  149. completedefaultindex="true"
  150. tabscrolling="true"
  151. showcommentcolumn="true"
  152. observes="paneElementsBroadcaster"
  153. placeholder="&editBookmarkOverlay.tagsEmptyDesc.label;"/>
  154. <button id="editBMPanel_tagsSelectorExpander"
  155. class="expander-down"
  156. tooltiptext="&editBookmarkOverlay.tagsExpanderDown.tooltip;"
  157. tooltiptextdown="&editBookmarkOverlay.tagsExpanderDown.tooltip;"
  158. tooltiptextup="&editBookmarkOverlay.expanderUp.tooltip;"
  159. oncommand="gEditItemOverlay.toggleTagsSelector();"
  160. observes="paneElementsBroadcaster"/>
  161. </hbox>
  162. </row>
  163. <row id="editBMPanel_tagsSelectorRow"
  164. align="center"
  165. collapsed="true">
  166. <spacer/>
  167. <listbox id="editBMPanel_tagsSelector"
  168. height="150"
  169. observes="paneElementsBroadcaster"/>
  170. </row>
  171. <row id="editBMPanel_keywordRow"
  172. align="center"
  173. collapsed="true">
  174. <observes element="additionalInfoBroadcaster" attribute="hidden"/>
  175. <label value="&editBookmarkOverlay.keyword.label;"
  176. class="editBMPanel_rowLabel"
  177. accesskey="&editBookmarkOverlay.keyword.accesskey;"
  178. control="editBMPanel_keywordField"
  179. observes="paneElementsBroadcaster"/>
  180. <textbox id="editBMPanel_keywordField"
  181. observes="paneElementsBroadcaster"/>
  182. </row>
  183. <row id="editBMPanel_descriptionRow"
  184. collapsed="true">
  185. <observes element="additionalInfoBroadcaster" attribute="hidden"/>
  186. <label value="&editBookmarkOverlay.description.label;"
  187. class="editBMPanel_rowLabel"
  188. accesskey="&editBookmarkOverlay.description.accesskey;"
  189. control="editBMPanel_descriptionField"
  190. observes="paneElementsBroadcaster"/>
  191. <textbox id="editBMPanel_descriptionField"
  192. multiline="true"
  193. observes="paneElementsBroadcaster"/>
  194. </row>
  195. </rows>
  196. </grid>
  197. <checkbox id="editBMPanel_loadInSidebarCheckbox"
  198. collapsed="true"
  199. label="&editBookmarkOverlay.loadInSidebar.label;"
  200. accesskey="&editBookmarkOverlay.loadInSidebar.accesskey;"
  201. oncommand="gEditItemOverlay.onLoadInSidebarCheckboxCommand();"
  202. observes="paneElementsBroadcaster">
  203. <observes element="additionalInfoBroadcaster" attribute="hidden"/>
  204. </checkbox>
  205. <!-- If the ids are changing or additional fields are being added, be sure
  206. to sync the values in places.js -->
  207. <broadcaster id="additionalInfoBroadcaster"/>
  208. </vbox>
  209. </overlay>