a2dd650e44
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5688 599a83e7-65a4-db11-8015-0010dcdd6dc2
150 lines
7.9 KiB
XML
150 lines
7.9 KiB
XML
<?xml version="1.0"?>
|
|
<?xml-stylesheet href="treestyletab.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://treestyletab/skin/treestyletab.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://treestyletab-platform/skin/treestyletab.css" type="text/css"?>
|
|
<?xul-overlay href="res/tabFx2Compatible.xul"?>
|
|
<!DOCTYPE overlay SYSTEM "chrome://treestyletab/locale/treestyletab.dtd">
|
|
<overlay id="treestyletab-overlay"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
<script src="res/autoScroll.js" type="application/x-javascript; version=1.7"/>
|
|
<script src="res/animationManager.js" type="application/x-javascript; version=1.7"/>
|
|
<script src="res/stopRendering.js" type="application/x-javascript; version=1.7"/>
|
|
<script src="res/extensions.js" type="application/x-javascript; version=1.7"/>
|
|
<script src="res/UninstallationListener.js" type="application/x-javascript; version=1.7"/>
|
|
<script src="res/operationHistory.js" type="application/x-javascript; version=1.7"/>
|
|
|
|
<script src="treestyletab.js" type="application/x-javascript; version=1.7"/>
|
|
<script src="treestyletabbrowser.js" type="application/x-javascript; version=1.7"/>
|
|
<script src="treestyletabbrowser_autoHide.js" type="application/x-javascript; version=1.7"/>
|
|
<script src="treestyletabbrowser_tabbarDNDObserver.js" type="application/x-javascript; version=1.7"/>
|
|
<script src="treestyletabbrowser_tabpanelDNDObserver.js" type="application/x-javascript; version=1.7"/>
|
|
|
|
<script src="preloadImages.js" type="application/x-javascript; version=1.7"/>
|
|
|
|
<script src="bookmarksOverlay.js" type="application/x-javascript; version=1.7"/>
|
|
<script src="bookmarksOverlayEditable.js" type="application/x-javascript; version=1.7"/>
|
|
|
|
<script src="hacks.js" type="application/x-javascript; version=1.7"/>
|
|
|
|
<script type="application/x-javascript; version=1.7"><![CDATA[
|
|
// preload images
|
|
TreeStyleTabService.observe(
|
|
null,
|
|
'nsPref:changed',
|
|
'extensions.treestyletab.tabbar.style'
|
|
);
|
|
]]></script>
|
|
|
|
|
|
<!-- Multiple Tab Handler -->
|
|
<menupopup id="multipletab-selection-menu">
|
|
<menuitem id="multipletab-selection-item-removeTabSubtree"
|
|
insertafter="multipletab-selection-removeTabs"
|
|
label="&selection.removeTabSubtree.label;"
|
|
accesskey="&selection.removeTabSubtree.accesskey;"
|
|
oncommand="TreeStyleTabService.removeTabSubtree(MultipleTabService.getSelectedTabs());"
|
|
multipletab-available="selectedTabs.length"/>
|
|
<menuitem id="multipletab-selection-item-createSubtree"
|
|
insertafter="multipletab-selection-splitWindow"
|
|
label="&selection.createSubtree.label;"
|
|
accesskey="&selection.createSubtree.accesskey;"
|
|
oncommand="TreeStyleTabService.createSubtree(MultipleTabService.getSelectedTabs());"
|
|
multipletab-enabled="TreeStyleTabService.canCreateSubtree(selectedTabs)"/>
|
|
</menupopup>
|
|
|
|
<popupset id="mainPopupSet">
|
|
<menupopup id="multipletab-tabcontext-menu-template">
|
|
|
|
<menuitem id="context-item-reloadTabSubtree"
|
|
label="&context.reloadTabSubtree.label;"
|
|
accesskey="&context.reloadTabSubtree.accesskey;"
|
|
oncommand="TreeStyleTabService.reloadTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);"
|
|
onclick="if (event.button == 1 || (event.button == 0 && TreeStyleTabService.isAccelKeyPressed(event))) {
|
|
TreeStyleTabService.reloadTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab, true);
|
|
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;"
|
|
oncommand="TreeStyleTabService.reloadTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab, true);"
|
|
onclick="if (event.button == 1 || (event.button == 0 && TreeStyleTabService.isAccelKeyPressed(event))) {
|
|
TreeStyleTabService.reloadTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);
|
|
event.stopPropagation();
|
|
this.parentNode.hidePopup();
|
|
}"
|
|
multipletab-insertafter="TreeStyleTabService.evaluateXPath(
|
|
"descendant::*[starts-with(@id, 'context-item-reloadTabSubtree')][1]"
|
|
, tabContextMenu, XPathResult.FIRST_ORDERED_NODE_TYPE).singleNodeValue"/>
|
|
|
|
<menuitem id="context-item-removeTabSubtree"
|
|
label="&context.removeTabSubtree.label;"
|
|
accesskey="&context.removeTabSubtree.accesskey;"
|
|
oncommand="TreeStyleTabService.removeTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);"
|
|
onclick="if (event.button == 1 || (event.button == 0 && TreeStyleTabService.isAccelKeyPressed(event))) {
|
|
TreeStyleTabService.removeTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab, true);
|
|
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"/>
|
|
<menuitem id="context-item-removeDescendantTabs"
|
|
label="&context.removeDescendantTabs.label;"
|
|
accesskey="&context.removeDescendantTabs.accesskey;"
|
|
oncommand="TreeStyleTabService.removeTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab, true);"
|
|
onclick="if (event.button == 1 || (event.button == 0 && TreeStyleTabService.isAccelKeyPressed(event))) {
|
|
TreeStyleTabService.removeTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);
|
|
event.stopPropagation();
|
|
this.parentNode.hidePopup();
|
|
}"
|
|
multipletab-insertafter="TreeStyleTabService.evaluateXPath(
|
|
"descendant::*[starts-with(@id, 'context-item-removeTabSubtree')][1]"
|
|
, tabContextMenu, XPathResult.FIRST_ORDERED_NODE_TYPE).singleNodeValue"/>
|
|
|
|
<menuitem id="context-item-bookmarkTabSubtree"
|
|
label="&context.bookmarkTabSubtree.label;"
|
|
accesskey="&context.bookmarkTabSubtree.accesskey;"
|
|
oncommand="TreeStyleTabBookmarksService.bookmarkTabSubtree(TreeStyleTabService.getTabBrowserFromChild(this).mContextTab);"
|
|
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 -->
|
|
|
|
<menuseparator id="context-separator-collapseExpandAll"/>
|
|
<menuitem id="context-item-collapseAllSubtree"
|
|
label="&context.collapseAllSubtree.label;"
|
|
accesskey="&context.collapseAllSubtree.accesskey;"
|
|
oncommand="TreeStyleTabService.getTabBrowserFromChild(this).treeStyleTab.collapseExpandAllSubtree(true);"/>
|
|
<menuitem id="context-item-expandAllSubtree"
|
|
label="&context.expandAllSubtree.label;"
|
|
accesskey="&context.expandAllSubtree.accesskey;"
|
|
oncommand="TreeStyleTabService.getTabBrowserFromChild(this).treeStyleTab.collapseExpandAllSubtree(false);"/>
|
|
|
|
<menuseparator id="context-separator-toggleAutoHide"/>
|
|
<menuitem id="context-item-toggleAutoHide"
|
|
label="&context.toggleAutoHide.label;"
|
|
accesskey="&context.toggleAutoHide.accesskey;"
|
|
type="checkbox"
|
|
autocheck="false"
|
|
oncommand="TreeStyleTabService.toggleAutoHide();"/>
|
|
<menuitem id="context-item-toggleFixed"
|
|
label="&context.toggleFixed.label;"
|
|
label-horizontal="&context.toggleFixed.label.horizontal;"
|
|
label-vertical="&context.toggleFixed.label.vertical;"
|
|
accesskey="&context.toggleFixed.accesskey;"
|
|
type="checkbox"
|
|
autocheck="false"
|
|
oncommand="TreeStyleTabService.toggleFixed();"/>
|
|
|
|
</menupopup>
|
|
</popupset>
|
|
|
|
</overlay>
|