history-panel.xul 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0"?> <!-- -*- Mode: xml; indent-tabs-mode: nil; -*- -->
  2. <!-- This Source Code Form is subject to the terms of the Mozilla Public
  3. License, v. 2.0. If a copy of the MPL was not distributed with this
  4. file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
  5. <?xml-stylesheet href="chrome://browser/content/places/places.css"?>
  6. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  7. <?xml-stylesheet href="chrome://browser/skin/places/places.css"?>
  8. <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
  9. <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
  10. <!DOCTYPE page [
  11. <!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd">
  12. %placesDTD;
  13. ]>
  14. <!-- we need to keep id="history-panel" for upgrade and switching
  15. between versions of the browser -->
  16. <page id="history-panel" orient="vertical"
  17. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  18. onload="HistorySidebarInit();"
  19. onunload="SidebarUtils.setMouseoverURL('');">
  20. <script type="application/javascript"
  21. src="chrome://browser/content/bookmarks/sidebarUtils.js"/>
  22. <script type="application/javascript"
  23. src="chrome://browser/content/places/history-panel.js"/>
  24. <commandset id="editMenuCommands"/>
  25. <commandset id="placesCommands"/>
  26. <keyset id="editMenuKeys">
  27. </keyset>
  28. <!-- required to overlay the context menu -->
  29. <menupopup id="placesContext"/>
  30. <!-- Bookmarks and history tooltip -->
  31. <tooltip id="bhTooltip"/>
  32. <hbox id="sidebar-search-container" align="center">
  33. <label id="sidebar-search-label"
  34. value="&find.label;" accesskey="&find.accesskey;"
  35. control="search-box"/>
  36. <textbox id="search-box" flex="1" type="search" class="compact"
  37. aria-controls="historyTree"
  38. oncommand="searchHistory(this.value);"/>
  39. <button id="viewButton" style="min-width:0px !important;" type="menu"
  40. label="&view.label;" accesskey="&view.accesskey;" selectedsort="day"
  41. persist="selectedsort">
  42. <menupopup>
  43. <menuitem id="bydayandsite" label="&byDayAndSite.label;"
  44. accesskey="&byDayAndSite.accesskey;" type="radio"
  45. oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'dayandsite'); GroupBy('dayandsite');"/>
  46. <menuitem id="bysite" label="&bySite.label;"
  47. accesskey="&bySite.accesskey;" type="radio"
  48. oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'site'); GroupBy('site');"/>
  49. <menuitem id="byday" label="&byDate.label;"
  50. accesskey="&byDate.accesskey;"
  51. type="radio"
  52. oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'day'); GroupBy('day');"/>
  53. <menuitem id="byvisited" label="&byMostVisited.label;"
  54. accesskey="&byMostVisited.accesskey;"
  55. type="radio"
  56. oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'visited'); GroupBy('visited');"/>
  57. <menuitem id="bylastvisited" label="&byLastVisited.label;"
  58. accesskey="&byLastVisited.accesskey;"
  59. type="radio"
  60. oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'lastvisited'); GroupBy('lastvisited');"/>
  61. </menupopup>
  62. </button>
  63. </hbox>
  64. <tree id="historyTree"
  65. class="sidebar-placesTree"
  66. flex="1"
  67. type="places"
  68. context="placesContext"
  69. hidecolumnpicker="true"
  70. onkeypress="SidebarUtils.handleTreeKeyPress(event);"
  71. onclick="SidebarUtils.handleTreeClick(this, event, true);"
  72. onmousemove="SidebarUtils.handleTreeMouseMove(event);"
  73. onmouseout="SidebarUtils.setMouseoverURL('');">
  74. <treecols>
  75. <treecol id="title" flex="1" primary="true" hideheader="true"/>
  76. </treecols>
  77. <treechildren class="sidebar-placesTreechildren" flex="1" tooltip="bhTooltip"/>
  78. </tree>
  79. </page>