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);
|
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 = [
|
var boxes = [
|
||||||
document.getElementById('extensions.treestyletab.tabbar.style-arrowscrollbox'),
|
document.getElementById('extensions.treestyletab.tabbar.style-arrowscrollbox'),
|
||||||
document.getElementById('extensions.treestyletab.twisty.style-arrowscrollbox')
|
document.getElementById('extensions.treestyletab.twisty.style-arrowscrollbox')
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
preference="extensions.treestyletab.enableSubtreeIndent.vertical"
|
preference="extensions.treestyletab.enableSubtreeIndent.vertical"
|
||||||
label="&config.enableSubtreeIndent;"/>
|
label="&config.enableSubtreeIndent;"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
<hbox align="center">
|
<hbox align="center" id="hideAlltabsButton-box">
|
||||||
<checkbox id="extensions.treestyletab.tabbar.hideAlltabsButton.horizontal-check"
|
<checkbox id="extensions.treestyletab.tabbar.hideAlltabsButton.horizontal-check"
|
||||||
preference="extensions.treestyletab.tabbar.hideAlltabsButton.horizontal"
|
preference="extensions.treestyletab.tabbar.hideAlltabsButton.horizontal"
|
||||||
label="&config.tabbar.hideAlltabsButton;"
|
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"] .tabs-alltabs-button, /* -Firefox 3.6 */
|
||||||
.tabbrowser-tabs[treestyletab-mode="vertical"] .close-button.tabs-closebutton, /* -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"] > toolbarbutton,
|
||||||
#TabsToolbar[treestyletab-mode="vertical"] > .close-button.tabs-closebutton {
|
#TabsToolbar[treestyletab-mode="vertical"] > toolbarpaletteitem > toolbarbutton {
|
||||||
max-width: none !important;
|
max-width: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -273,9 +273,7 @@ tabbrowser[treestyletab-tabbar-autohide-mode="1"][treestyletab-tabbar-autohide="
|
|||||||
.tabbrowser-tabs[treestyletab-hide-alltabs-button="true"]
|
.tabbrowser-tabs[treestyletab-hide-alltabs-button="true"]
|
||||||
.tabs-alltabs-stack,
|
.tabs-alltabs-stack,
|
||||||
.tabbrowser-tabs[treestyletab-hide-alltabs-button="true"]
|
.tabbrowser-tabs[treestyletab-hide-alltabs-button="true"]
|
||||||
.tabbrowser-arrowscrollbox ~ stack, /* "all tabs" button in Firefox 3.0-3.5 */
|
.tabbrowser-arrowscrollbox ~ stack /* "all tabs" button in Firefox 3.0-3.5 */ {
|
||||||
#TabsToolbar[treestyletab-hide-alltabs-button="true"]
|
|
||||||
.tabs-alltabs-button {
|
|
||||||
visibility: collapse !important;
|
visibility: collapse !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1242,7 +1242,9 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
this.setTabbrowserAttribute(this.kINDENTED, this.getTreePref('enableSubtreeIndent.'+orient) ? 'true' : null);
|
this.setTabbrowserAttribute(this.kINDENTED, this.getTreePref('enableSubtreeIndent.'+orient) ? 'true' : null);
|
||||||
this.setTabbrowserAttribute(this.kALLOW_COLLAPSE, this.getTreePref('allowSubtreeCollapseExpand.'+orient) ? 'true' : null);
|
this.setTabbrowserAttribute(this.kALLOW_COLLAPSE, this.getTreePref('allowSubtreeCollapseExpand.'+orient) ? 'true' : null);
|
||||||
this.setTabbrowserAttribute(this.kHIDE_ALLTABS, this.getTreePref('tabbar.hideAlltabsButton.'+orient) ? 'true' : null);
|
|
||||||
|
if (!this.isFloating)
|
||||||
|
this.setTabbrowserAttribute(this.kHIDE_ALLTABS, this.getTreePref('tabbar.hideAlltabsButton.'+orient) ? 'true' : null);
|
||||||
|
|
||||||
this.updateAllTabsIndent();
|
this.updateAllTabsIndent();
|
||||||
},
|
},
|
||||||
@ -1498,17 +1500,21 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
var oldState = {
|
var oldState = {
|
||||||
fixed : this.isFixed,
|
fixed : this.isFixed,
|
||||||
indented : b.getAttribute(this.kINDENTED) == 'true',
|
indented : b.getAttribute(this.kINDENTED) == 'true',
|
||||||
canCollapse : b.getAttribute(this.kALLOW_COLLAPSE) == 'true',
|
canCollapse : b.getAttribute(this.kALLOW_COLLAPSE) == 'true'
|
||||||
alltabsButton : b.getAttribute(this.kHIDE_ALLTABS) != 'true'
|
|
||||||
};
|
};
|
||||||
oldState.allTabsButton = oldState.alltabsButton;
|
if (!this.isFloating) {
|
||||||
|
oldState.alltabsButton = b.getAttribute(this.kHIDE_ALLTABS) != 'true';
|
||||||
|
oldState.allTabsButton = oldState.alltabsButton;
|
||||||
|
}
|
||||||
var newState = {
|
var newState = {
|
||||||
fixed : this.getTreePref('tabbar.fixed.'+orient),
|
fixed : this.getTreePref('tabbar.fixed.'+orient),
|
||||||
indented : this.getTreePref('enableSubtreeIndent.'+orient),
|
indented : this.getTreePref('enableSubtreeIndent.'+orient),
|
||||||
canCollapse : this.getTreePref('allowSubtreeCollapseExpand.'+orient),
|
canCollapse : this.getTreePref('allowSubtreeCollapseExpand.'+orient)
|
||||||
alltabsButton : !this.getTreePref('tabbar.hideAlltabsButton.'+orient)
|
|
||||||
};
|
};
|
||||||
newState.allTabsButton = newState.alltabsButton;
|
if (!this.isFloating) {
|
||||||
|
newState.alltabsButton = !this.getTreePref('tabbar.hideAlltabsButton.'+orient);
|
||||||
|
newState.allTabsButton = newState.alltabsButton;
|
||||||
|
}
|
||||||
|
|
||||||
if (oldState.fixed == newState.fixed &&
|
if (oldState.fixed == newState.fixed &&
|
||||||
oldState.indented == newState.indented &&
|
oldState.indented == newState.indented &&
|
||||||
@ -1532,10 +1538,12 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
var state = {
|
var state = {
|
||||||
fixed : this.isFixed,
|
fixed : this.isFixed,
|
||||||
indented : b.getAttribute(this.kINDENTED) == 'true',
|
indented : b.getAttribute(this.kINDENTED) == 'true',
|
||||||
canCollapse : b.getAttribute(this.kALLOW_COLLAPSE) == 'true',
|
canCollapse : b.getAttribute(this.kALLOW_COLLAPSE) == 'true'
|
||||||
alltabsButton : b.getAttribute(this.kHIDE_ALLTABS) != 'true'
|
|
||||||
};
|
};
|
||||||
state.allTabsButton = state.alltabsButton;
|
if (!this.isFloating) {
|
||||||
|
state.alltabsButton = b.getAttribute(this.kHIDE_ALLTABS) != 'true';
|
||||||
|
state.allTabsButton = state.alltabsButton;
|
||||||
|
}
|
||||||
|
|
||||||
/* PUBLIC API */
|
/* PUBLIC API */
|
||||||
var event = document.createEvent('Events');
|
var event = document.createEvent('Events');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user