|
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 |
|
5 <panel id="PanelUI-popup" |
|
6 role="group" |
|
7 type="arrow" |
|
8 hidden="true" |
|
9 flip="slide" |
|
10 animate="false" |
|
11 position="bottomcenter topright" |
|
12 noautofocus="true"> |
|
13 <panelmultiview id="PanelUI-multiView" mainViewId="PanelUI-mainView"> |
|
14 <panelview id="PanelUI-mainView" context="customizationPanelContextMenu"> |
|
15 <vbox id="PanelUI-contents-scroller"> |
|
16 <vbox id="PanelUI-contents" class="panelUI-grid"/> |
|
17 </vbox> |
|
18 |
|
19 <footer id="PanelUI-footer"> |
|
20 <toolbarbutton id="PanelUI-fxa-status" |
|
21 defaultlabel="&fxaSignIn.label;" |
|
22 errorlabel="&fxaSignInError.label;" |
|
23 oncommand="gFxAccounts.onMenuPanelCommand(event);" |
|
24 hidden="true"/> |
|
25 |
|
26 <hbox id="PanelUI-footer-inner"> |
|
27 <toolbarbutton id="PanelUI-customize" label="&appMenuCustomize.label;" |
|
28 exitLabel="&appMenuCustomizeExit.label;" |
|
29 tooltiptext="&appMenuCustomize.tooltip;" |
|
30 exitTooltiptext="&appMenuCustomizeExit.tooltip;" |
|
31 closemenu="none" |
|
32 oncommand="gCustomizeMode.toggle();"/> |
|
33 <toolbarseparator/> |
|
34 <toolbarbutton id="PanelUI-help" label="&helpMenu.label;" |
|
35 closemenu="none" |
|
36 tooltiptext="&appMenuHelp.tooltip;" |
|
37 oncommand="PanelUI.showHelpView(this);"/> |
|
38 <toolbarseparator/> |
|
39 <toolbarbutton id="PanelUI-quit" |
|
40 #ifdef XP_WIN |
|
41 label="&quitApplicationCmdWin.label;" |
|
42 tooltiptext="&quitApplicationCmdWin.tooltip;" |
|
43 #else |
|
44 #ifdef XP_MACOSX |
|
45 label="&quitApplicationCmdMac.label;" |
|
46 #else |
|
47 label="&quitApplicationCmd.label;" |
|
48 #endif |
|
49 #endif |
|
50 command="cmd_quitApplication"/> |
|
51 </hbox> |
|
52 </footer> |
|
53 </panelview> |
|
54 |
|
55 <panelview id="PanelUI-history" flex="1"> |
|
56 <label value="&appMenuHistory.label;" class="panel-subview-header"/> |
|
57 <vbox class="panel-subview-body"> |
|
58 <toolbarbutton id="appMenuViewHistorySidebar" |
|
59 label="&appMenuHistory.viewSidebar.label;" |
|
60 type="checkbox" |
|
61 class="subviewbutton" |
|
62 oncommand="toggleSidebar('viewHistorySidebar'); PanelUI.hide();"> |
|
63 <observes element="viewHistorySidebar" attribute="checked"/> |
|
64 </toolbarbutton> |
|
65 <toolbarbutton id="appMenuClearRecentHistory" |
|
66 label="&appMenuHistory.clearRecent.label;" |
|
67 class="subviewbutton" |
|
68 command="Tools:Sanitize"/> |
|
69 #ifdef MOZ_SERVICES_SYNC |
|
70 <toolbarbutton id="sync-tabs-menuitem2" |
|
71 class="syncTabsMenuItem subviewbutton" |
|
72 label="&syncTabsMenu2.label;" |
|
73 oncommand="BrowserOpenSyncTabs();" |
|
74 disabled="true"/> |
|
75 #endif |
|
76 <toolbarbutton id="appMenuRestoreLastSession" |
|
77 label="&appMenuHistory.restoreSession.label;" |
|
78 class="subviewbutton" |
|
79 command="Browser:RestoreLastSession"/> |
|
80 <menuseparator id="PanelUI-recentlyClosedTabs-separator"/> |
|
81 <vbox id="PanelUI-recentlyClosedTabs" tooltip="bhTooltip"/> |
|
82 <menuseparator id="PanelUI-recentlyClosedWindows-separator"/> |
|
83 <vbox id="PanelUI-recentlyClosedWindows" tooltip="bhTooltip"/> |
|
84 <menuseparator id="PanelUI-historyItems-separator"/> |
|
85 <vbox id="PanelUI-historyItems" tooltip="bhTooltip"/> |
|
86 </vbox> |
|
87 <toolbarbutton id="PanelUI-historyMore" |
|
88 class="panel-subview-footer subviewbutton" |
|
89 label="&appMenuHistory.showAll.label;" |
|
90 oncommand="PlacesCommandHook.showPlacesOrganizer('History'); CustomizableUI.hidePanelForNode(this);"/> |
|
91 </panelview> |
|
92 |
|
93 <panelview id="PanelUI-bookmarks" flex="1" class="PanelUI-subView"> |
|
94 <label value="&bookmarksMenu.label;" class="panel-subview-header"/> |
|
95 <vbox class="panel-subview-body"> |
|
96 <toolbarbutton id="panelMenuBookmarkThisPage" |
|
97 class="subviewbutton" |
|
98 observes="bookmarkThisPageBroadcaster" |
|
99 command="Browser:AddBookmarkAs" |
|
100 onclick="PanelUI.hide();"/> |
|
101 <toolbarseparator/> |
|
102 <toolbarbutton id="panelMenu_viewBookmarksSidebar" |
|
103 label="&viewBookmarksSidebar2.label;" |
|
104 class="subviewbutton" |
|
105 oncommand="toggleSidebar('viewBookmarksSidebar'); PanelUI.hide();"> |
|
106 <observes element="viewBookmarksSidebar" attribute="checked"/> |
|
107 </toolbarbutton> |
|
108 <toolbarbutton id="panelMenu_viewBookmarksToolbar" |
|
109 label="&viewBookmarksToolbar.label;" |
|
110 type="checkbox" |
|
111 toolbarId="PersonalToolbar" |
|
112 class="subviewbutton" |
|
113 oncommand="onViewToolbarCommand(event); PanelUI.hide();"/> |
|
114 <toolbarseparator/> |
|
115 <toolbarbutton id="panelMenu_bookmarksToolbar" |
|
116 label="&personalbarCmd.label;" |
|
117 class="subviewbutton cui-withicon" |
|
118 oncommand="PlacesCommandHook.showPlacesOrganizer('BookmarksToolbar'); PanelUI.hide();"/> |
|
119 <toolbarbutton id="panelMenu_unsortedBookmarks" |
|
120 label="&unsortedBookmarksCmd.label;" |
|
121 class="subviewbutton cui-withicon" |
|
122 oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks'); PanelUI.hide();"/> |
|
123 <toolbarseparator class="small-separator"/> |
|
124 <toolbaritem id="panelMenu_bookmarksMenu" |
|
125 orient="vertical" |
|
126 smoothscroll="false" |
|
127 onclick="if (event.button == 1) BookmarkingUI.onPanelMenuViewCommand(event, this._placesView);" |
|
128 oncommand="BookmarkingUI.onPanelMenuViewCommand(event, this._placesView);" |
|
129 flatList="true" |
|
130 tooltip="bhTooltip"> |
|
131 <!-- bookmarks menu items will go here --> |
|
132 </toolbaritem> |
|
133 </vbox> |
|
134 <toolbarbutton id="panelMenu_showAllBookmarks" |
|
135 label="&showAllBookmarks2.label;" |
|
136 class="subviewbutton panel-subview-footer" |
|
137 command="Browser:ShowAllBookmarks" |
|
138 onclick="PanelUI.hide();"/> |
|
139 </panelview> |
|
140 |
|
141 <panelview id="PanelUI-socialapi" flex="1"/> |
|
142 |
|
143 <panelview id="PanelUI-feeds" flex="1" oncommand="FeedHandler.subscribeToFeed(null, event);"> |
|
144 <label value="&feedsMenu.label;" class="panel-subview-header"/> |
|
145 </panelview> |
|
146 |
|
147 <panelview id="PanelUI-helpView" flex="1" class="PanelUI-subView"> |
|
148 <label value="&helpMenu.label;" class="panel-subview-header"/> |
|
149 <vbox id="PanelUI-helpItems" class="panel-subview-body"/> |
|
150 </panelview> |
|
151 |
|
152 <panelview id="PanelUI-developer" flex="1"> |
|
153 <label value="&webDeveloperMenu.label;" class="panel-subview-header"/> |
|
154 <vbox id="PanelUI-developerItems" class="panel-subview-body"/> |
|
155 </panelview> |
|
156 |
|
157 <panelview id="PanelUI-sidebar" flex="1"> |
|
158 <label value="&appMenuSidebars.label;" class="panel-subview-header"/> |
|
159 <vbox id="PanelUI-sidebarItems" class="panel-subview-body"/> |
|
160 </panelview> |
|
161 |
|
162 <panelview id="PanelUI-characterEncodingView" flex="1"> |
|
163 <label value="&charsetMenu.label;" class="panel-subview-header"/> |
|
164 <vbox class="panel-subview-body"> |
|
165 <vbox id="PanelUI-characterEncodingView-pinned" |
|
166 class="PanelUI-characterEncodingView-list"/> |
|
167 <toolbarseparator/> |
|
168 <vbox id="PanelUI-characterEncodingView-charsets" |
|
169 class="PanelUI-characterEncodingView-list"/> |
|
170 <toolbarseparator/> |
|
171 <vbox> |
|
172 <label id="PanelUI-characterEncodingView-autodetect-label"/> |
|
173 <vbox id="PanelUI-characterEncodingView-autodetect" |
|
174 class="PanelUI-characterEncodingView-list"/> |
|
175 </vbox> |
|
176 </vbox> |
|
177 </panelview> |
|
178 |
|
179 </panelmultiview> |
|
180 <!-- These menupopups are located here to prevent flickering, |
|
181 see bug 492960 comment 20. --> |
|
182 <menupopup id="customizationPanelItemContextMenu"> |
|
183 <menuitem oncommand="gCustomizeMode.addToToolbar(document.popupNode)" |
|
184 class="customize-context-moveToToolbar" |
|
185 accesskey="&customizeMenu.moveToToolbar.accesskey;" |
|
186 label="&customizeMenu.moveToToolbar.label;"/> |
|
187 <menuitem oncommand="gCustomizeMode.removeFromArea(document.popupNode)" |
|
188 class="customize-context-removeFromPanel" |
|
189 accesskey="&customizeMenu.removeFromMenu.accesskey;" |
|
190 label="&customizeMenu.removeFromMenu.label;"/> |
|
191 <menuseparator/> |
|
192 <menuitem command="cmd_CustomizeToolbars" |
|
193 class="viewCustomizeToolbar" |
|
194 accesskey="&viewCustomizeToolbar.accesskey;" |
|
195 label="&viewCustomizeToolbar.label;"/> |
|
196 </menupopup> |
|
197 |
|
198 <menupopup id="customizationPaletteItemContextMenu"> |
|
199 <menuitem oncommand="gCustomizeMode.addToToolbar(document.popupNode)" |
|
200 class="customize-context-addToToolbar" |
|
201 accesskey="&customizeMenu.addToToolbar.accesskey;" |
|
202 label="&customizeMenu.addToToolbar.label;"/> |
|
203 <menuitem oncommand="gCustomizeMode.addToPanel(document.popupNode)" |
|
204 class="customize-context-addToPanel" |
|
205 accesskey="&customizeMenu.addToPanel.accesskey;" |
|
206 label="&customizeMenu.addToPanel.label;"/> |
|
207 </menupopup> |
|
208 |
|
209 <menupopup id="customizationPanelContextMenu"> |
|
210 <menuitem command="cmd_CustomizeToolbars" |
|
211 accesskey="&customizeMenu.addMoreItems.accesskey;" |
|
212 label="&customizeMenu.addMoreItems.label;"/> |
|
213 </menupopup> |
|
214 </panel> |
|
215 |
|
216 <panel id="widget-overflow" |
|
217 role="group" |
|
218 type="arrow" |
|
219 noautofocus="true" |
|
220 context="toolbar-context-menu" |
|
221 position="bottomcenter topright" |
|
222 hidden="true"> |
|
223 <vbox id="widget-overflow-scroller"> |
|
224 <vbox id="widget-overflow-list" class="widget-overflow-list" |
|
225 overflowfortoolbar="nav-bar"/> |
|
226 </vbox> |
|
227 </panel> |
|
228 |
|
229 <panel id="customization-tipPanel" |
|
230 type="arrow" |
|
231 flip="none" |
|
232 side="left" |
|
233 position="leftcenter topright" |
|
234 noautohide="true" |
|
235 hidden="true"> |
|
236 <hbox class="customization-tipPanel-wrapper"> |
|
237 <vbox class="customization-tipPanel-infoBox"/> |
|
238 <vbox class="customization-tipPanel-content" flex="1"> |
|
239 <description class="customization-tipPanel-contentMessage"/> |
|
240 <image class="customization-tipPanel-contentImage"/> |
|
241 </vbox> |
|
242 <vbox pack="start" align="end" class="customization-tipPanel-closeBox"> |
|
243 <toolbarbutton oncommand="gCustomizeMode.hideTip()" class="close-icon"/> |
|
244 </vbox> |
|
245 </hbox> |
|
246 </panel> |