Minefieldではタブの一覧表示用ボタンの表示・非表示の制御はツールバーカスタマイズで自由に行えるため、設定項目として表示しないようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7236 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
37cbcc8973
commit
44154fc1ed
@ -72,6 +72,14 @@ function initAppearancePane()
|
||||
sidebar.setAttribute('disabled', true);
|
||||
}
|
||||
|
||||
var hideAllTabsButton = document.getElementById('hideAlltabsButton-box');
|
||||
if (comparator.compare(XULAppInfo.version, '4.0b3') > 0) {
|
||||
hideAllTabsButton.setAttribute('hidden', true);
|
||||
}
|
||||
else {
|
||||
hideAllTabsButton.removeAttribute('hidden');
|
||||
}
|
||||
|
||||
var boxes = [
|
||||
document.getElementById('extensions.treestyletab.tabbar.style-arrowscrollbox'),
|
||||
document.getElementById('extensions.treestyletab.twisty.style-arrowscrollbox')
|
||||
|
@ -132,7 +132,7 @@
|
||||
preference="extensions.treestyletab.enableSubtreeIndent.vertical"
|
||||
label="&config.enableSubtreeIndent;"/>
|
||||
</hbox>
|
||||
<hbox align="center">
|
||||
<hbox align="center" id="hideAlltabsButton-box">
|
||||
<checkbox id="extensions.treestyletab.tabbar.hideAlltabsButton.horizontal-check"
|
||||
preference="extensions.treestyletab.tabbar.hideAlltabsButton.horizontal"
|
||||
label="&config.tabbar.hideAlltabsButton;"
|
||||
|
@ -122,8 +122,8 @@ tabbrowser[treestyletab-tabbar-autohide-mode="1"][treestyletab-tabbar-autohide="
|
||||
|
||||
.tabbrowser-tabs[treestyletab-mode="vertical"] .tabs-alltabs-button, /* -Firefox 3.6 */
|
||||
.tabbrowser-tabs[treestyletab-mode="vertical"] .close-button.tabs-closebutton, /* -Firefox 3.6 */
|
||||
#TabsToolbar[treestyletab-mode="vertical"] .tabs-alltabs-button,
|
||||
#TabsToolbar[treestyletab-mode="vertical"] > .close-button.tabs-closebutton {
|
||||
#TabsToolbar[treestyletab-mode="vertical"] > toolbarbutton,
|
||||
#TabsToolbar[treestyletab-mode="vertical"] > toolbarpaletteitem > toolbarbutton {
|
||||
max-width: none !important;
|
||||
}
|
||||
|
||||
@ -273,9 +273,7 @@ tabbrowser[treestyletab-tabbar-autohide-mode="1"][treestyletab-tabbar-autohide="
|
||||
.tabbrowser-tabs[treestyletab-hide-alltabs-button="true"]
|
||||
.tabs-alltabs-stack,
|
||||
.tabbrowser-tabs[treestyletab-hide-alltabs-button="true"]
|
||||
.tabbrowser-arrowscrollbox ~ stack, /* "all tabs" button in Firefox 3.0-3.5 */
|
||||
#TabsToolbar[treestyletab-hide-alltabs-button="true"]
|
||||
.tabs-alltabs-button {
|
||||
.tabbrowser-arrowscrollbox ~ stack /* "all tabs" button in Firefox 3.0-3.5 */ {
|
||||
visibility: collapse !important;
|
||||
}
|
||||
|
||||
|
@ -1242,6 +1242,8 @@ TreeStyleTabBrowser.prototype = {
|
||||
|
||||
this.setTabbrowserAttribute(this.kINDENTED, this.getTreePref('enableSubtreeIndent.'+orient) ? 'true' : null);
|
||||
this.setTabbrowserAttribute(this.kALLOW_COLLAPSE, this.getTreePref('allowSubtreeCollapseExpand.'+orient) ? 'true' : null);
|
||||
|
||||
if (!this.isFloating)
|
||||
this.setTabbrowserAttribute(this.kHIDE_ALLTABS, this.getTreePref('tabbar.hideAlltabsButton.'+orient) ? 'true' : null);
|
||||
|
||||
this.updateAllTabsIndent();
|
||||
@ -1498,17 +1500,21 @@ TreeStyleTabBrowser.prototype = {
|
||||
var oldState = {
|
||||
fixed : this.isFixed,
|
||||
indented : b.getAttribute(this.kINDENTED) == 'true',
|
||||
canCollapse : b.getAttribute(this.kALLOW_COLLAPSE) == 'true',
|
||||
alltabsButton : b.getAttribute(this.kHIDE_ALLTABS) != 'true'
|
||||
canCollapse : b.getAttribute(this.kALLOW_COLLAPSE) == 'true'
|
||||
};
|
||||
if (!this.isFloating) {
|
||||
oldState.alltabsButton = b.getAttribute(this.kHIDE_ALLTABS) != 'true';
|
||||
oldState.allTabsButton = oldState.alltabsButton;
|
||||
}
|
||||
var newState = {
|
||||
fixed : this.getTreePref('tabbar.fixed.'+orient),
|
||||
indented : this.getTreePref('enableSubtreeIndent.'+orient),
|
||||
canCollapse : this.getTreePref('allowSubtreeCollapseExpand.'+orient),
|
||||
alltabsButton : !this.getTreePref('tabbar.hideAlltabsButton.'+orient)
|
||||
canCollapse : this.getTreePref('allowSubtreeCollapseExpand.'+orient)
|
||||
};
|
||||
if (!this.isFloating) {
|
||||
newState.alltabsButton = !this.getTreePref('tabbar.hideAlltabsButton.'+orient);
|
||||
newState.allTabsButton = newState.alltabsButton;
|
||||
}
|
||||
|
||||
if (oldState.fixed == newState.fixed &&
|
||||
oldState.indented == newState.indented &&
|
||||
@ -1532,10 +1538,12 @@ TreeStyleTabBrowser.prototype = {
|
||||
var state = {
|
||||
fixed : this.isFixed,
|
||||
indented : b.getAttribute(this.kINDENTED) == 'true',
|
||||
canCollapse : b.getAttribute(this.kALLOW_COLLAPSE) == 'true',
|
||||
alltabsButton : b.getAttribute(this.kHIDE_ALLTABS) != 'true'
|
||||
canCollapse : b.getAttribute(this.kALLOW_COLLAPSE) == 'true'
|
||||
};
|
||||
if (!this.isFloating) {
|
||||
state.alltabsButton = b.getAttribute(this.kHIDE_ALLTABS) != 'true';
|
||||
state.allTabsButton = state.alltabsButton;
|
||||
}
|
||||
|
||||
/* PUBLIC API */
|
||||
var event = document.createEvent('Events');
|
||||
|
Loading…
Reference in New Issue
Block a user