* タブの一覧表示ボタンを隠す設定がFirefox 3.1で効いていなかったのを修正

* 「新しいタブを開く」ボタンを隠すオプション


git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3426 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-12-02 03:50:34 +00:00
parent 1ce6e067e8
commit ba8902db1d
13 changed files with 32 additions and 1 deletions

View File

@ -69,6 +69,7 @@ function onChangeTabbarPosition(aOnChange)
var indentCheck = document.getElementById('extensions.treestyletab.enableSubtreeIndent-check');
var collapseCheck = document.getElementById('extensions.treestyletab.allowSubtreeCollapseExpand-check');
// var autoHideCheck = document.getElementById('extensions.treestyletab.tabbar.autoHide.enabled-check');
var hideNewTabCheck = document.getElementById('extensions.treestyletab.tabbar.hideNewTabButton-check');
var hideAllTabsCheck = document.getElementById('extensions.treestyletab.tabbar.hideAlltabsButton-check');
if (aOnChange) {
@ -78,11 +79,13 @@ function onChangeTabbarPosition(aOnChange)
if (pos == 'left' || pos == 'right') {
indentCheck.setAttribute('collapsed', true);
// autoHideCheck.removeAttribute('collapsed');
hideNewTabCheck.removeAttribute('collapsed');
hideAllTabsCheck.removeAttribute('collapsed');
}
else {
indentCheck.removeAttribute('collapsed');
// autoHideCheck.setAttribute('collapsed', true);
hideNewTabCheck.setAttribute('collapsed', true);
hideAllTabsCheck.setAttribute('collapsed', true);
}

View File

@ -29,6 +29,10 @@
<preference id="extensions.treestyletab.allowSubtreeCollapseExpand"
name="extensions.treestyletab.allowSubtreeCollapseExpand"
type="bool"/>
<preference id="extensions.treestyletab.tabbar.hideNewTabButton"
name="extensions.treestyletab.tabbar.hideNewTabButton"
type="bool"
inverted="true"/>
<preference id="extensions.treestyletab.tabbar.hideAlltabsButton"
name="extensions.treestyletab.tabbar.hideAlltabsButton"
type="bool"
@ -97,9 +101,14 @@
<checkbox id="extensions.treestyletab.allowSubtreeCollapseExpand-check"
preference="extensions.treestyletab.allowSubtreeCollapseExpand"
label="&config.allowSubtreeCollapseExpand;"/>
</hbox>
<hbox align="center">
<checkbox id="extensions.treestyletab.enableSubtreeIndent-check"
preference="extensions.treestyletab.enableSubtreeIndent"
label="&config.enableSubtreeIndent;"/>
<checkbox id="extensions.treestyletab.tabbar.hideNewTabButton-check"
preference="extensions.treestyletab.tabbar.hideNewTabButton"
label="&config.tabbar.hideNewTabButton;"/>
<checkbox id="extensions.treestyletab.tabbar.hideAlltabsButton-check"
preference="extensions.treestyletab.tabbar.hideAlltabsButton"
label="&config.tabbar.hideAlltabsButton;"/>

View File

@ -28,8 +28,9 @@ tabbrowser[treestyletab-tabbar-fixed="true"] .tabbrowser-strip+splitter {
tabbrowser:not([treestyletab-mode="horizontal"]) .tabbrowser-arrowscrollbox > .scrollbutton-up,
tabbrowser:not([treestyletab-mode="horizontal"]) .tabbrowser-arrowscrollbox > .scrollbutton-down-stack,
tabbrowser:not([treestyletab-mode="horizontal"]) .tabbrowser-arrowscrollbox > .scrollbutton-down, /* Firefox 3 */
tabbrowser[treestyletab-hide-newtab-button="true"] .tabs-newtab-button, /* "open a new tab" button in Firefox 3.1 */
tabbrowser[treestyletab-hide-alltabs-button="true"] .tabs-alltabs-stack,
tabbrowser[treestyletab-hide-alltabs-button="true"] .tabbrowser-arrowscrollbox + stack, /* "all tabs" button in Firefox 3 */
tabbrowser[treestyletab-hide-alltabs-button="true"] .tabbrowser-arrowscrollbox ~ stack, /* "all tabs" button in Firefox 3 and 3.1 */
tabbrowser[treestyletab-mode="vertical"] .tabs-closebutton-box,
tabbrowser:not([treestyletab-mode="horizontal"]) .tab-drop-indicator-bar,
tabbrowser:not([treestyletab-mode="horizontal"]) #vide-bar, /* Tab Mix Plus */

View File

@ -14,6 +14,7 @@ var TreeStyleTabService = {
kUI_INVERTED : 'treestyletab-appearance-inverted',
kSCROLLBAR_INVERTED : 'treestyletab-scrollbar-inverted',
kALLOW_COLLAPSE : 'treestyletab-allow-subtree-collapse',
kHIDE_NEWTAB : 'treestyletab-hide-newtab-button',
kHIDE_ALLTABS : 'treestyletab-hide-alltabs-button',
kSTYLE : 'treestyletab-style',
kTWISTY_STYLE : 'treestyletab-twisty-style',

View File

@ -429,6 +429,7 @@ TreeStyleTabBrowser.prototype = {
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.twisty.style');
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.showBorderForFirstTab');
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.tabbar.invertScrollbar');
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.tabbar.hideNewTabButton');
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.tabbar.hideAlltabsButton');
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.allowSubtreeCollapseExpand');
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.tabbar.fixed');
@ -956,6 +957,14 @@ TreeStyleTabBrowser.prototype = {
b.removeAttribute(this.kSCROLLBAR_INVERTED);
break;
case 'extensions.treestyletab.tabbar.hideNewTabButton':
var pos = b.getAttribute(this.kTABBAR_POSITION);
if (value && (pos == 'left' || pos == 'right'))
b.setAttribute(this.kHIDE_NEWTAB, true);
else
b.removeAttribute(this.kHIDE_NEWTAB);
break;
case 'extensions.treestyletab.tabbar.hideAlltabsButton':
var pos = b.getAttribute(this.kTABBAR_POSITION);
if (value && (pos == 'left' || pos == 'right'))

View File

@ -5,6 +5,7 @@ pref("extensions.treestyletab.tabbar.position.subbrowser.enabled", false);
pref("extensions.treestyletab.tabbar.multirow", false);
pref("extensions.treestyletab.tabbar.invertScrollbar", true);
pref("extensions.treestyletab.tabbar.invertUI", true);
pref("extensions.treestyletab.tabbar.hideNewTabButton", false);
pref("extensions.treestyletab.tabbar.hideAlltabsButton", true);
pref("extensions.treestyletab.tabbar.scroll.smooth", true);
pref("extensions.treestyletab.tabbar.scroll.timeout", 250);

View File

@ -14,6 +14,7 @@
<!ENTITY config.tabbar.invertUI "Reihenfolge der Tabs umdrehen">
<!ENTITY config.enableSubtreeIndent "Tabs einrücken">
<!ENTITY config.allowSubtreeCollapseExpand "Auf- und Einklappen von Zweigen erlauben">
<!ENTITY config.tabbar.hideNewTabButton "Show &quot;Open a new tab&quot; button">
<!ENTITY config.tabbar.hideAlltabsButton "Button zum Auflisten aller Tabs anzeigen">
<!ENTITY config.tabbar.style.caption "Aussehen der Tableiste">

View File

@ -14,6 +14,7 @@
<!ENTITY config.tabbar.invertUI "Invert tab appearance">
<!ENTITY config.enableSubtreeIndent "Indent tabs">
<!ENTITY config.allowSubtreeCollapseExpand "Allow to collapse/expand sub tree of tabs">
<!ENTITY config.tabbar.hideNewTabButton "Show &quot;Open a new tab&quot; button">
<!ENTITY config.tabbar.hideAlltabsButton "Show &quot;List all tabs&quot; button">
<!ENTITY config.tabbar.style.caption "Appearance of the tab bar">

View File

@ -14,6 +14,7 @@
<!ENTITY config.tabbar.invertUI "Invertir apariencia de pestaña">
<!ENTITY config.enableSubtreeIndent "Añadir margen a las pestañas">
<!ENTITY config.allowSubtreeCollapseExpand "Permitir colapsar/expandir los sub-árboles de las pestañas">
<!ENTITY config.tabbar.hideNewTabButton "Show &quot;Open a new tab&quot; button">
<!ENTITY config.tabbar.hideAlltabsButton "Mostrar el botón &quot;Listar todas las pestañas&quot;">
<!ENTITY config.tabbar.style.caption "Apariencia de la barra de pestañas">

View File

@ -14,6 +14,7 @@
<!ENTITY config.tabbar.invertUI "Inverti la visualizzazione delle schede">
<!ENTITY config.enableSubtreeIndent "Indenta schede figlie">
<!ENTITY config.allowSubtreeCollapseExpand "Permetti di contrarre/espandere sottoalberi delle schede">
<!ENTITY config.tabbar.hideNewTabButton "Show &quot;Open a new tab&quot; button">
<!ENTITY config.tabbar.hideAlltabsButton "Visualizza la maniglia per elencare tutte le schede">
<!ENTITY config.tabbar.style.caption "Aspetto delle barra delle schede">

View File

@ -14,6 +14,7 @@
<!ENTITY config.tabbar.invertUI "タブを左右反転">
<!ENTITY config.enableSubtreeIndent "タブをインデント表示する">
<!ENTITY config.allowSubtreeCollapseExpand "サブツリーを折りたためるようにする">
<!ENTITY config.tabbar.hideNewTabButton "「新しいタブを開く」ボタンを表示する">
<!ENTITY config.tabbar.hideAlltabsButton "「タブの一覧を表示」ボタンを表示する">
<!ENTITY config.tabbar.style.caption "タブバーの表示スタイル">

View File

@ -14,6 +14,7 @@
<!ENTITY config.tabbar.invertUI "反转标签外观">
<!ENTITY config.enableSubtreeIndent "缩进标签">
<!ENTITY config.allowSubtreeCollapseExpand "允许折叠/展开标签子树">
<!ENTITY config.tabbar.hideNewTabButton "Show &quot;Open a new tab&quot; button">
<!ENTITY config.tabbar.hideAlltabsButton "显示 &quot;列出所有标签&quot; 按钮">
<!ENTITY config.tabbar.style.caption "标签栏外观">

View File

@ -14,6 +14,7 @@
<!ENTITY config.tabbar.invertUI "左右反轉分頁外觀">
<!ENTITY config.enableSubtreeIndent "縮進分頁">
<!ENTITY config.allowSubtreeCollapseExpand "允許摺疊 / 展開樹狀子目錄">
<!ENTITY config.tabbar.hideNewTabButton "Show &quot;Open a new tab&quot; button">
<!ENTITY config.tabbar.hideAlltabsButton "顯示「列出所有分頁」按鈕">
<!ENTITY config.tabbar.style.caption "分頁工具列的外觀">