browser/components/places/content/history-panel.xul

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:7aa6806dd325
1 <?xml version="1.0"?> <!-- -*- Mode: xml; indent-tabs-mode: nil; -*- -->
2
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/.
6
7 <?xml-stylesheet href="chrome://browser/content/places/places.css"?>
8 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
9 <?xml-stylesheet href="chrome://browser/skin/places/places.css"?>
10
11 <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
12 <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
13
14 <!DOCTYPE page [
15 <!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd">
16 %placesDTD;
17 ]>
18
19 <!-- we need to keep id="history-panel" for upgrade and switching
20 between versions of the browser -->
21
22 <page id="history-panel" orient="vertical"
23 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
24 onload="HistorySidebarInit();"
25 onunload="SidebarUtils.setMouseoverURL('');">
26
27 <script type="application/javascript"
28 src="chrome://browser/content/bookmarks/sidebarUtils.js"/>
29 <script type="application/javascript"
30 src="chrome://browser/content/places/history-panel.js"/>
31
32 <commandset id="editMenuCommands"/>
33 <commandset id="placesCommands"/>
34
35 <keyset id="editMenuKeys">
36 #ifdef XP_MACOSX
37 <key id="key_delete2" keycode="VK_BACK" command="cmd_delete"/>
38 #endif
39 </keyset>
40
41 <!-- required to overlay the context menu -->
42 <menupopup id="placesContext"/>
43
44 <!-- Bookmarks and history tooltip -->
45 <tooltip id="bhTooltip"/>
46
47 <hbox id="sidebar-search-container" align="center">
48 <label id="sidebar-search-label"
49 value="&find.label;" accesskey="&find.accesskey;"
50 control="search-box"/>
51 <textbox id="search-box" flex="1" type="search" class="compact"
52 aria-controls="historyTree"
53 oncommand="searchHistory(this.value);"/>
54 <button id="viewButton" style="min-width:0px !important;" type="menu"
55 label="&view.label;" accesskey="&view.accesskey;" selectedsort="day"
56 persist="selectedsort">
57 <menupopup>
58 <menuitem id="bydayandsite" label="&byDayAndSite.label;"
59 accesskey="&byDayAndSite.accesskey;" type="radio"
60 oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'dayandsite'); GroupBy('dayandsite');"/>
61 <menuitem id="bysite" label="&bySite.label;"
62 accesskey="&bySite.accesskey;" type="radio"
63 oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'site'); GroupBy('site');"/>
64 <menuitem id="byday" label="&byDate.label;"
65 accesskey="&byDate.accesskey;"
66 type="radio"
67 oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'day'); GroupBy('day');"/>
68 <menuitem id="byvisited" label="&byMostVisited.label;"
69 accesskey="&byMostVisited.accesskey;"
70 type="radio"
71 oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'visited'); GroupBy('visited');"/>
72 <menuitem id="bylastvisited" label="&byLastVisited.label;"
73 accesskey="&byLastVisited.accesskey;"
74 type="radio"
75 oncommand="this.parentNode.parentNode.setAttribute('selectedsort', 'lastvisited'); GroupBy('lastvisited');"/>
76 </menupopup>
77 </button>
78 </hbox>
79
80 <tree id="historyTree"
81 class="sidebar-placesTree"
82 flex="1"
83 type="places"
84 context="placesContext"
85 hidecolumnpicker="true"
86 onkeypress="SidebarUtils.handleTreeKeyPress(event);"
87 onclick="SidebarUtils.handleTreeClick(this, event, true);"
88 onmousemove="SidebarUtils.handleTreeMouseMove(event);"
89 onmouseout="SidebarUtils.setMouseoverURL('');">
90 <treecols>
91 <treecol id="title" flex="1" primary="true" hideheader="true"/>
92 </treecols>
93 <treechildren class="sidebar-placesTreechildren" flex="1" tooltip="bhTooltip"/>
94 </tree>
95 </page>

mercurial