2007-10-16 17:22:28 +00:00
<?xml version="1.0"?>
2011-05-27 00:10:18 +09:00
2007-10-16 17:22:28 +00:00
<?xml-stylesheet href="treestyletab.css" type="text/css"?>
2011-05-27 00:10:18 +09:00
<?xml-stylesheet href="treestyletab-tmp.css" type="text/css"?><!-- hacks for Tab Mix Plus -->
<?xml-stylesheet href="chrome://treestyletab/skin/base.css" type="text/css"?>
<?xml-stylesheet href="chrome://treestyletab/skin/twisty/twisty.css" type="text/css"?>
<?xml-stylesheet href="chrome://treestyletab/skin/ui.css" type="text/css"?>
<?xml-stylesheet href="chrome://treestyletab/skin/tmp.css" type="text/css"?><!-- hacks for Tab Mix Plus -->
<?xml-stylesheet href="chrome://treestyletab-platform/skin/base.css" type="text/css"?>
<?xml-stylesheet href="chrome://treestyletab-platform/skin/platform-base.css" type="text/css"?>
2008-02-22 03:05:52 +00:00
<?xul-overlay href="res/tabFx2Compatible.xul"?>
2011-05-27 00:10:18 +09:00
2007-10-16 17:22:28 +00:00
<!DOCTYPE overlay SYSTEM "chrome://treestyletab/locale/treestyletab.dtd">
<overlay id="treestyletab-overlay"
2008-03-08 10:44:19 +00:00
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
2007-10-16 17:22:28 +00:00
2010-01-12 00:23:45 +00:00
<script src="res/stopRendering.js" type="application/javascript"/>
2010-11-30 12:23:08 +09:00
<script src="res/tabsDragUtils.js" type="application/javascript"/>
2010-01-12 00:23:45 +00:00
<script src="res/UninstallationListener.js" type="application/javascript"/>
2011-05-30 00:37:56 +09:00
<script src="treestyletab.js" type="application/javascript"/>
2011-05-26 05:54:46 +09:00
<script src="windowHelper.js" type="application/javascript"/>
2011-05-26 11:09:19 +09:00
<script src="windowHelperHacks.js" type="application/javascript"/>
2010-01-12 00:23:45 +00:00
<script src="bookmarksOverlay.js" type="application/javascript"/>
<script src="bookmarksOverlayEditable.js" type="application/javascript"/>
2009-09-03 01:26:38 +00:00
2010-01-12 00:23:45 +00:00
<script type="application/javascript"><![CDATA[
2010-12-06 22:31:58 +09:00
// for backward compatibility
2010-12-08 16:38:00 +09:00
var TreeStyleTabBrowserAutoHide = TreeStyleTabService.autoHideWindow;
2010-12-06 22:31:58 +09:00
2009-03-25 14:09:34 +00:00
// preload images
TreeStyleTabService.observe(
null,
'nsPref:changed',
'extensions.treestyletab.tabbar.style'
);
]]></script>
2007-10-16 17:22:28 +00:00
2007-10-19 05:27:06 +00:00
2010-01-04 01:19:56 +00:00
<!-- Multiple Tab Handler -->
2007-10-19 05:27:06 +00:00
<menupopup id="multipletab-selection-menu">
2009-12-25 11:19:50 +00:00
<menuitem id="multipletab-selection-item-removeTabSubtree"
2007-10-19 05:27:06 +00:00
insertafter="multipletab-selection-removeTabs"
2009-12-25 11:19:50 +00:00
label="&selection.removeTabSubtree.label;"
accesskey="&selection.removeTabSubtree.accesskey;"
2010-01-04 01:19:56 +00:00
oncommand="TreeStyleTabService.removeTabSubtree(MultipleTabService.getSelectedTabs());"
multipletab-available="selectedTabs.length"/>
2009-12-25 11:19:50 +00:00
<menuitem id="multipletab-selection-item-createSubtree"
2009-07-23 15:34:28 +00:00
insertafter="multipletab-selection-splitWindow"
2009-12-25 11:19:50 +00:00
label="&selection.createSubtree.label;"
accesskey="&selection.createSubtree.accesskey;"
oncommand="TreeStyleTabService.createSubtree(MultipleTabService.getSelectedTabs());"
2010-01-04 01:19:56 +00:00
multipletab-enabled="TreeStyleTabService.canCreateSubtree(selectedTabs)"/>
2007-10-19 05:27:06 +00:00
</menupopup>
2009-05-12 16:56:39 +00:00
<popupset id="mainPopupSet">
<menupopup id="multipletab-tabcontext-menu-template">
2009-12-25 11:19:50 +00:00
<menuitem id="context-item-reloadTabSubtree"
label="&context.reloadTabSubtree.label;"
accesskey="&context.reloadTabSubtree.accesskey;"
oncommand="TreeStyleTabService.reloadTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);"
2009-07-06 09:21:06 +00:00
onclick="if (event.button == 1 || (event.button == 0 && TreeStyleTabService.isAccelKeyPressed(event))) {
2009-12-25 11:19:50 +00:00
TreeStyleTabService.reloadTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab, true);
2009-07-06 09:21:06 +00:00
event.stopPropagation();
this.parentNode.hidePopup();
}"
multipletab-insertafter="TreeStyleTabService.evaluateXPath(
"descendant::*[starts-with(@id, 'context_reloadTab')][1]"
, tabContextMenu, XPathResult.FIRST_ORDERED_NODE_TYPE).singleNodeValue"/>
<menuitem id="context-item-reloadDescendantTabs"
label="&context.reloadDescendantTabs.label;"
accesskey="&context.reloadDescendantTabs.accesskey;"
2009-12-25 11:19:50 +00:00
oncommand="TreeStyleTabService.reloadTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab, true);"
2009-07-06 09:21:06 +00:00
onclick="if (event.button == 1 || (event.button == 0 && TreeStyleTabService.isAccelKeyPressed(event))) {
2009-12-25 11:19:50 +00:00
TreeStyleTabService.reloadTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);
2009-07-06 09:21:06 +00:00
event.stopPropagation();
this.parentNode.hidePopup();
}"
multipletab-insertafter="TreeStyleTabService.evaluateXPath(
2009-12-25 11:19:50 +00:00
"descendant::*[starts-with(@id, 'context-item-reloadTabSubtree')][1]"
2009-07-06 09:21:06 +00:00
, tabContextMenu, XPathResult.FIRST_ORDERED_NODE_TYPE).singleNodeValue"/>
2009-12-25 11:19:50 +00:00
<menuitem id="context-item-removeTabSubtree"
label="&context.removeTabSubtree.label;"
accesskey="&context.removeTabSubtree.accesskey;"
oncommand="TreeStyleTabService.removeTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);"
2009-05-12 16:56:39 +00:00
onclick="if (event.button == 1 || (event.button == 0 && TreeStyleTabService.isAccelKeyPressed(event))) {
2009-12-25 11:19:50 +00:00
TreeStyleTabService.removeTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab, true);
2009-05-12 16:56:39 +00:00
event.stopPropagation();
this.parentNode.hidePopup();
}"
multipletab-insertbefore="TreeStyleTabService.evaluateXPath(
"(descendant::*[starts-with(@id, 'multipletab-context-removeAll') | starts-with(@id, 'context_closeTab')][1] | child::xul:menuitem[last()])/preceding-sibling::xul:menuseparator[1]"
, tabContextMenu, XPathResult.FIRST_ORDERED_NODE_TYPE).singleNodeValue"/>
2007-11-26 15:07:10 +00:00
<menuitem id="context-item-removeDescendantTabs"
label="&context.removeDescendantTabs.label;"
accesskey="&context.removeDescendantTabs.accesskey;"
2009-12-25 11:19:50 +00:00
oncommand="TreeStyleTabService.removeTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab, true);"
2009-05-12 16:56:39 +00:00
onclick="if (event.button == 1 || (event.button == 0 && TreeStyleTabService.isAccelKeyPressed(event))) {
2009-12-25 11:19:50 +00:00
TreeStyleTabService.removeTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);
2009-05-12 16:56:39 +00:00
event.stopPropagation();
this.parentNode.hidePopup();
}"
multipletab-insertafter="TreeStyleTabService.evaluateXPath(
2009-12-25 11:19:50 +00:00
"descendant::*[starts-with(@id, 'context-item-removeTabSubtree')][1]"
2009-05-12 16:56:39 +00:00
, tabContextMenu, XPathResult.FIRST_ORDERED_NODE_TYPE).singleNodeValue"/>
2010-12-08 20:34:42 +09:00
<menuitem id="context-item-removeAllTabsButThisTree"
label="&context.removeAllTabsBut.label;"
accesskey="&context.removeAllTabsBut.accesskey;"
oncommand="TreeStyleTabService.removeAllTabsBut(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);"
multipletab-insertafter="TreeStyleTabService.evaluateXPath(
"descendant::*[starts-with(@id, 'context_closeOtherTabs')][1]"
, tabContextMenu, XPathResult.FIRST_ORDERED_NODE_TYPE).singleNodeValue"/>
2009-05-12 16:56:39 +00:00
2009-12-25 11:19:50 +00:00
<menuitem id="context-item-bookmarkTabSubtree"
label="&context.bookmarkTabSubtree.label;"
accesskey="&context.bookmarkTabSubtree.accesskey;"
oncommand="TreeStyleTabBookmarksService.bookmarkTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);"
2009-05-12 16:56:39 +00:00
multipletab-insertafter="TreeStyleTabService.evaluateXPath(
"descendant::*[starts-with(@id, 'context_bookmarkTab')][1] | descendant::*[@command='Browser:BookmarkAllTabs']/preceding-sibling[1]"
, tabContextMenu, XPathResult.FIRST_ORDERED_NODE_TYPE).singleNodeValue"/>
<!-- simply appended items -->
2007-11-17 06:05:23 +00:00
<menuseparator id="context-separator-collapseExpandAll"/>
<menuitem id="context-item-collapseAllSubtree"
label="&context.collapseAllSubtree.label;"
accesskey="&context.collapseAllSubtree.accesskey;"
2007-11-17 18:00:53 +00:00
oncommand="TreeStyleTabService.getTabBrowserFromChild(this).treeStyleTab.collapseExpandAllSubtree(true);"/>
2007-11-17 06:05:23 +00:00
<menuitem id="context-item-expandAllSubtree"
label="&context.expandAllSubtree.label;"
accesskey="&context.expandAllSubtree.accesskey;"
2007-11-17 18:00:53 +00:00
oncommand="TreeStyleTabService.getTabBrowserFromChild(this).treeStyleTab.collapseExpandAllSubtree(false);"/>
2007-11-17 06:05:23 +00:00
2007-11-09 04:07:54 +00:00
<menuseparator id="context-separator-toggleAutoHide"/>
<menuitem id="context-item-toggleAutoHide"
label="&context.toggleAutoHide.label;"
accesskey="&context.toggleAutoHide.accesskey;"
type="checkbox"
autocheck="false"
2010-05-08 06:22:49 +00:00
oncommand="TreeStyleTabService.toggleAutoHide(TreeStyleTabService.getTabBrowserFromChild(this));"/>
2008-02-22 17:55:35 +00:00
<menuitem id="context-item-toggleFixed"
label="&context.toggleFixed.label;"
2009-07-07 08:42:17 +00:00
label-horizontal="&context.toggleFixed.label.horizontal;"
label-vertical="&context.toggleFixed.label.vertical;"
2008-02-22 17:55:35 +00:00
accesskey="&context.toggleFixed.accesskey;"
type="checkbox"
autocheck="false"
2010-05-08 06:22:49 +00:00
oncommand="TreeStyleTabService.toggleFixed(TreeStyleTabService.getTabBrowserFromChild(this));"/>
2009-05-12 16:56:39 +00:00
</menupopup>
2011-11-30 20:32:57 +09:00
<tooltip id="treestyletab-full-tree-tooltip"/>
2011-12-05 02:27:30 +09:00
<panel id="treestyletab-autohide-content-area-screen"
2011-12-05 14:12:52 +09:00
onpopupshowing="if ('setConsumeRollupEvent' in this.popupBoxObject) this.popupBoxObject.setConsumeRollupEvent(Components.interfaces.nsIPopupBoxObject.ROLLUP_NO_CONSUME);"
2011-12-05 02:27:30 +09:00
onclick="this.hidePopup();"/>
2009-05-12 16:56:39 +00:00
</popupset>
2007-10-19 05:27:06 +00:00
2007-10-16 17:22:28 +00:00
</overlay>