1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/components/customizableui/content/panelUI.inc.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,246 @@ 1.4 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.5 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.7 + 1.8 +<panel id="PanelUI-popup" 1.9 + role="group" 1.10 + type="arrow" 1.11 + hidden="true" 1.12 + flip="slide" 1.13 + animate="false" 1.14 + position="bottomcenter topright" 1.15 + noautofocus="true"> 1.16 + <panelmultiview id="PanelUI-multiView" mainViewId="PanelUI-mainView"> 1.17 + <panelview id="PanelUI-mainView" context="customizationPanelContextMenu"> 1.18 + <vbox id="PanelUI-contents-scroller"> 1.19 + <vbox id="PanelUI-contents" class="panelUI-grid"/> 1.20 + </vbox> 1.21 + 1.22 + <footer id="PanelUI-footer"> 1.23 + <toolbarbutton id="PanelUI-fxa-status" 1.24 + defaultlabel="&fxaSignIn.label;" 1.25 + errorlabel="&fxaSignInError.label;" 1.26 + oncommand="gFxAccounts.onMenuPanelCommand(event);" 1.27 + hidden="true"/> 1.28 + 1.29 + <hbox id="PanelUI-footer-inner"> 1.30 + <toolbarbutton id="PanelUI-customize" label="&appMenuCustomize.label;" 1.31 + exitLabel="&appMenuCustomizeExit.label;" 1.32 + tooltiptext="&appMenuCustomize.tooltip;" 1.33 + exitTooltiptext="&appMenuCustomizeExit.tooltip;" 1.34 + closemenu="none" 1.35 + oncommand="gCustomizeMode.toggle();"/> 1.36 + <toolbarseparator/> 1.37 + <toolbarbutton id="PanelUI-help" label="&helpMenu.label;" 1.38 + closemenu="none" 1.39 + tooltiptext="&appMenuHelp.tooltip;" 1.40 + oncommand="PanelUI.showHelpView(this);"/> 1.41 + <toolbarseparator/> 1.42 + <toolbarbutton id="PanelUI-quit" 1.43 +#ifdef XP_WIN 1.44 + label="&quitApplicationCmdWin.label;" 1.45 + tooltiptext="&quitApplicationCmdWin.tooltip;" 1.46 +#else 1.47 +#ifdef XP_MACOSX 1.48 + label="&quitApplicationCmdMac.label;" 1.49 +#else 1.50 + label="&quitApplicationCmd.label;" 1.51 +#endif 1.52 +#endif 1.53 + command="cmd_quitApplication"/> 1.54 + </hbox> 1.55 + </footer> 1.56 + </panelview> 1.57 + 1.58 + <panelview id="PanelUI-history" flex="1"> 1.59 + <label value="&appMenuHistory.label;" class="panel-subview-header"/> 1.60 + <vbox class="panel-subview-body"> 1.61 + <toolbarbutton id="appMenuViewHistorySidebar" 1.62 + label="&appMenuHistory.viewSidebar.label;" 1.63 + type="checkbox" 1.64 + class="subviewbutton" 1.65 + oncommand="toggleSidebar('viewHistorySidebar'); PanelUI.hide();"> 1.66 + <observes element="viewHistorySidebar" attribute="checked"/> 1.67 + </toolbarbutton> 1.68 + <toolbarbutton id="appMenuClearRecentHistory" 1.69 + label="&appMenuHistory.clearRecent.label;" 1.70 + class="subviewbutton" 1.71 + command="Tools:Sanitize"/> 1.72 +#ifdef MOZ_SERVICES_SYNC 1.73 + <toolbarbutton id="sync-tabs-menuitem2" 1.74 + class="syncTabsMenuItem subviewbutton" 1.75 + label="&syncTabsMenu2.label;" 1.76 + oncommand="BrowserOpenSyncTabs();" 1.77 + disabled="true"/> 1.78 +#endif 1.79 + <toolbarbutton id="appMenuRestoreLastSession" 1.80 + label="&appMenuHistory.restoreSession.label;" 1.81 + class="subviewbutton" 1.82 + command="Browser:RestoreLastSession"/> 1.83 + <menuseparator id="PanelUI-recentlyClosedTabs-separator"/> 1.84 + <vbox id="PanelUI-recentlyClosedTabs" tooltip="bhTooltip"/> 1.85 + <menuseparator id="PanelUI-recentlyClosedWindows-separator"/> 1.86 + <vbox id="PanelUI-recentlyClosedWindows" tooltip="bhTooltip"/> 1.87 + <menuseparator id="PanelUI-historyItems-separator"/> 1.88 + <vbox id="PanelUI-historyItems" tooltip="bhTooltip"/> 1.89 + </vbox> 1.90 + <toolbarbutton id="PanelUI-historyMore" 1.91 + class="panel-subview-footer subviewbutton" 1.92 + label="&appMenuHistory.showAll.label;" 1.93 + oncommand="PlacesCommandHook.showPlacesOrganizer('History'); CustomizableUI.hidePanelForNode(this);"/> 1.94 + </panelview> 1.95 + 1.96 + <panelview id="PanelUI-bookmarks" flex="1" class="PanelUI-subView"> 1.97 + <label value="&bookmarksMenu.label;" class="panel-subview-header"/> 1.98 + <vbox class="panel-subview-body"> 1.99 + <toolbarbutton id="panelMenuBookmarkThisPage" 1.100 + class="subviewbutton" 1.101 + observes="bookmarkThisPageBroadcaster" 1.102 + command="Browser:AddBookmarkAs" 1.103 + onclick="PanelUI.hide();"/> 1.104 + <toolbarseparator/> 1.105 + <toolbarbutton id="panelMenu_viewBookmarksSidebar" 1.106 + label="&viewBookmarksSidebar2.label;" 1.107 + class="subviewbutton" 1.108 + oncommand="toggleSidebar('viewBookmarksSidebar'); PanelUI.hide();"> 1.109 + <observes element="viewBookmarksSidebar" attribute="checked"/> 1.110 + </toolbarbutton> 1.111 + <toolbarbutton id="panelMenu_viewBookmarksToolbar" 1.112 + label="&viewBookmarksToolbar.label;" 1.113 + type="checkbox" 1.114 + toolbarId="PersonalToolbar" 1.115 + class="subviewbutton" 1.116 + oncommand="onViewToolbarCommand(event); PanelUI.hide();"/> 1.117 + <toolbarseparator/> 1.118 + <toolbarbutton id="panelMenu_bookmarksToolbar" 1.119 + label="&personalbarCmd.label;" 1.120 + class="subviewbutton cui-withicon" 1.121 + oncommand="PlacesCommandHook.showPlacesOrganizer('BookmarksToolbar'); PanelUI.hide();"/> 1.122 + <toolbarbutton id="panelMenu_unsortedBookmarks" 1.123 + label="&unsortedBookmarksCmd.label;" 1.124 + class="subviewbutton cui-withicon" 1.125 + oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks'); PanelUI.hide();"/> 1.126 + <toolbarseparator class="small-separator"/> 1.127 + <toolbaritem id="panelMenu_bookmarksMenu" 1.128 + orient="vertical" 1.129 + smoothscroll="false" 1.130 + onclick="if (event.button == 1) BookmarkingUI.onPanelMenuViewCommand(event, this._placesView);" 1.131 + oncommand="BookmarkingUI.onPanelMenuViewCommand(event, this._placesView);" 1.132 + flatList="true" 1.133 + tooltip="bhTooltip"> 1.134 + <!-- bookmarks menu items will go here --> 1.135 + </toolbaritem> 1.136 + </vbox> 1.137 + <toolbarbutton id="panelMenu_showAllBookmarks" 1.138 + label="&showAllBookmarks2.label;" 1.139 + class="subviewbutton panel-subview-footer" 1.140 + command="Browser:ShowAllBookmarks" 1.141 + onclick="PanelUI.hide();"/> 1.142 + </panelview> 1.143 + 1.144 + <panelview id="PanelUI-socialapi" flex="1"/> 1.145 + 1.146 + <panelview id="PanelUI-feeds" flex="1" oncommand="FeedHandler.subscribeToFeed(null, event);"> 1.147 + <label value="&feedsMenu.label;" class="panel-subview-header"/> 1.148 + </panelview> 1.149 + 1.150 + <panelview id="PanelUI-helpView" flex="1" class="PanelUI-subView"> 1.151 + <label value="&helpMenu.label;" class="panel-subview-header"/> 1.152 + <vbox id="PanelUI-helpItems" class="panel-subview-body"/> 1.153 + </panelview> 1.154 + 1.155 + <panelview id="PanelUI-developer" flex="1"> 1.156 + <label value="&webDeveloperMenu.label;" class="panel-subview-header"/> 1.157 + <vbox id="PanelUI-developerItems" class="panel-subview-body"/> 1.158 + </panelview> 1.159 + 1.160 + <panelview id="PanelUI-sidebar" flex="1"> 1.161 + <label value="&appMenuSidebars.label;" class="panel-subview-header"/> 1.162 + <vbox id="PanelUI-sidebarItems" class="panel-subview-body"/> 1.163 + </panelview> 1.164 + 1.165 + <panelview id="PanelUI-characterEncodingView" flex="1"> 1.166 + <label value="&charsetMenu.label;" class="panel-subview-header"/> 1.167 + <vbox class="panel-subview-body"> 1.168 + <vbox id="PanelUI-characterEncodingView-pinned" 1.169 + class="PanelUI-characterEncodingView-list"/> 1.170 + <toolbarseparator/> 1.171 + <vbox id="PanelUI-characterEncodingView-charsets" 1.172 + class="PanelUI-characterEncodingView-list"/> 1.173 + <toolbarseparator/> 1.174 + <vbox> 1.175 + <label id="PanelUI-characterEncodingView-autodetect-label"/> 1.176 + <vbox id="PanelUI-characterEncodingView-autodetect" 1.177 + class="PanelUI-characterEncodingView-list"/> 1.178 + </vbox> 1.179 + </vbox> 1.180 + </panelview> 1.181 + 1.182 + </panelmultiview> 1.183 + <!-- These menupopups are located here to prevent flickering, 1.184 + see bug 492960 comment 20. --> 1.185 + <menupopup id="customizationPanelItemContextMenu"> 1.186 + <menuitem oncommand="gCustomizeMode.addToToolbar(document.popupNode)" 1.187 + class="customize-context-moveToToolbar" 1.188 + accesskey="&customizeMenu.moveToToolbar.accesskey;" 1.189 + label="&customizeMenu.moveToToolbar.label;"/> 1.190 + <menuitem oncommand="gCustomizeMode.removeFromArea(document.popupNode)" 1.191 + class="customize-context-removeFromPanel" 1.192 + accesskey="&customizeMenu.removeFromMenu.accesskey;" 1.193 + label="&customizeMenu.removeFromMenu.label;"/> 1.194 + <menuseparator/> 1.195 + <menuitem command="cmd_CustomizeToolbars" 1.196 + class="viewCustomizeToolbar" 1.197 + accesskey="&viewCustomizeToolbar.accesskey;" 1.198 + label="&viewCustomizeToolbar.label;"/> 1.199 + </menupopup> 1.200 + 1.201 + <menupopup id="customizationPaletteItemContextMenu"> 1.202 + <menuitem oncommand="gCustomizeMode.addToToolbar(document.popupNode)" 1.203 + class="customize-context-addToToolbar" 1.204 + accesskey="&customizeMenu.addToToolbar.accesskey;" 1.205 + label="&customizeMenu.addToToolbar.label;"/> 1.206 + <menuitem oncommand="gCustomizeMode.addToPanel(document.popupNode)" 1.207 + class="customize-context-addToPanel" 1.208 + accesskey="&customizeMenu.addToPanel.accesskey;" 1.209 + label="&customizeMenu.addToPanel.label;"/> 1.210 + </menupopup> 1.211 + 1.212 + <menupopup id="customizationPanelContextMenu"> 1.213 + <menuitem command="cmd_CustomizeToolbars" 1.214 + accesskey="&customizeMenu.addMoreItems.accesskey;" 1.215 + label="&customizeMenu.addMoreItems.label;"/> 1.216 + </menupopup> 1.217 +</panel> 1.218 + 1.219 +<panel id="widget-overflow" 1.220 + role="group" 1.221 + type="arrow" 1.222 + noautofocus="true" 1.223 + context="toolbar-context-menu" 1.224 + position="bottomcenter topright" 1.225 + hidden="true"> 1.226 + <vbox id="widget-overflow-scroller"> 1.227 + <vbox id="widget-overflow-list" class="widget-overflow-list" 1.228 + overflowfortoolbar="nav-bar"/> 1.229 + </vbox> 1.230 +</panel> 1.231 + 1.232 +<panel id="customization-tipPanel" 1.233 + type="arrow" 1.234 + flip="none" 1.235 + side="left" 1.236 + position="leftcenter topright" 1.237 + noautohide="true" 1.238 + hidden="true"> 1.239 + <hbox class="customization-tipPanel-wrapper"> 1.240 + <vbox class="customization-tipPanel-infoBox"/> 1.241 + <vbox class="customization-tipPanel-content" flex="1"> 1.242 + <description class="customization-tipPanel-contentMessage"/> 1.243 + <image class="customization-tipPanel-contentImage"/> 1.244 + </vbox> 1.245 + <vbox pack="start" align="end" class="customization-tipPanel-closeBox"> 1.246 + <toolbarbutton oncommand="gCustomizeMode.hideTip()" class="close-icon"/> 1.247 + </vbox> 1.248 + </hbox> 1.249 +</panel>