Mercurial > hg > FirefoxAddon
diff firefoxaddon/template/content/firefoxOverlay.xul_tmpl @ 0:9869cf47fcf8 default tip
initial commit of Firefox addon template
author | k0s <k0scist@gmail.com> |
---|---|
date | Sun, 28 Mar 2010 16:25:58 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/firefoxaddon/template/content/firefoxOverlay.xul_tmpl Sun Mar 28 16:25:58 2010 -0400 @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="chrome://${package}/skin/overlay.css" type="text/css"?> +<!DOCTYPE overlay SYSTEM "chrome://${package}/locale/${package}.dtd"> +<overlay id="${package}-overlay" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + <script src="overlay.js"/> + <stringbundleset id="stringbundleset"> + <stringbundle id="${package}-strings" src="chrome://${package}/locale/${package}.properties"/> + </stringbundleset> + + <menupopup id="menu_ToolsPopup"> + <menuitem id="${package}-hello" label="&${package}.label;" + oncommand="${package}.onMenuItemCommand(event);"/> + </menupopup> + <popup id="contentAreaContextMenu"> + <menuitem id="context-${package}" label="&${package}Context.label;" + accesskey="&${package}Context.accesskey;" + insertafter="context-stop" + oncommand="${package}.onMenuItemCommand(event)"/> + </popup> + <toolbarpalette id="BrowserToolbarPalette"> + <toolbarbutton id="${package}-toolbar-button" + label="&${package}Toolbar.label;" + tooltiptext="&${package}Toolbar.tooltip;" + oncommand="${package}.onToolbarButtonCommand()" + class="toolbarbutton-1 chromeclass-toolbar-additional"/> + </toolbarpalette> +</overlay>