* タブの一覧表示ボタンを隠す設定が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:
parent
1ce6e067e8
commit
ba8902db1d
@ -69,6 +69,7 @@ function onChangeTabbarPosition(aOnChange)
|
|||||||
var indentCheck = document.getElementById('extensions.treestyletab.enableSubtreeIndent-check');
|
var indentCheck = document.getElementById('extensions.treestyletab.enableSubtreeIndent-check');
|
||||||
var collapseCheck = document.getElementById('extensions.treestyletab.allowSubtreeCollapseExpand-check');
|
var collapseCheck = document.getElementById('extensions.treestyletab.allowSubtreeCollapseExpand-check');
|
||||||
// var autoHideCheck = document.getElementById('extensions.treestyletab.tabbar.autoHide.enabled-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');
|
var hideAllTabsCheck = document.getElementById('extensions.treestyletab.tabbar.hideAlltabsButton-check');
|
||||||
|
|
||||||
if (aOnChange) {
|
if (aOnChange) {
|
||||||
@ -78,11 +79,13 @@ function onChangeTabbarPosition(aOnChange)
|
|||||||
if (pos == 'left' || pos == 'right') {
|
if (pos == 'left' || pos == 'right') {
|
||||||
indentCheck.setAttribute('collapsed', true);
|
indentCheck.setAttribute('collapsed', true);
|
||||||
// autoHideCheck.removeAttribute('collapsed');
|
// autoHideCheck.removeAttribute('collapsed');
|
||||||
|
hideNewTabCheck.removeAttribute('collapsed');
|
||||||
hideAllTabsCheck.removeAttribute('collapsed');
|
hideAllTabsCheck.removeAttribute('collapsed');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
indentCheck.removeAttribute('collapsed');
|
indentCheck.removeAttribute('collapsed');
|
||||||
// autoHideCheck.setAttribute('collapsed', true);
|
// autoHideCheck.setAttribute('collapsed', true);
|
||||||
|
hideNewTabCheck.setAttribute('collapsed', true);
|
||||||
hideAllTabsCheck.setAttribute('collapsed', true);
|
hideAllTabsCheck.setAttribute('collapsed', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,10 @@
|
|||||||
<preference id="extensions.treestyletab.allowSubtreeCollapseExpand"
|
<preference id="extensions.treestyletab.allowSubtreeCollapseExpand"
|
||||||
name="extensions.treestyletab.allowSubtreeCollapseExpand"
|
name="extensions.treestyletab.allowSubtreeCollapseExpand"
|
||||||
type="bool"/>
|
type="bool"/>
|
||||||
|
<preference id="extensions.treestyletab.tabbar.hideNewTabButton"
|
||||||
|
name="extensions.treestyletab.tabbar.hideNewTabButton"
|
||||||
|
type="bool"
|
||||||
|
inverted="true"/>
|
||||||
<preference id="extensions.treestyletab.tabbar.hideAlltabsButton"
|
<preference id="extensions.treestyletab.tabbar.hideAlltabsButton"
|
||||||
name="extensions.treestyletab.tabbar.hideAlltabsButton"
|
name="extensions.treestyletab.tabbar.hideAlltabsButton"
|
||||||
type="bool"
|
type="bool"
|
||||||
@ -97,9 +101,14 @@
|
|||||||
<checkbox id="extensions.treestyletab.allowSubtreeCollapseExpand-check"
|
<checkbox id="extensions.treestyletab.allowSubtreeCollapseExpand-check"
|
||||||
preference="extensions.treestyletab.allowSubtreeCollapseExpand"
|
preference="extensions.treestyletab.allowSubtreeCollapseExpand"
|
||||||
label="&config.allowSubtreeCollapseExpand;"/>
|
label="&config.allowSubtreeCollapseExpand;"/>
|
||||||
|
</hbox>
|
||||||
|
<hbox align="center">
|
||||||
<checkbox id="extensions.treestyletab.enableSubtreeIndent-check"
|
<checkbox id="extensions.treestyletab.enableSubtreeIndent-check"
|
||||||
preference="extensions.treestyletab.enableSubtreeIndent"
|
preference="extensions.treestyletab.enableSubtreeIndent"
|
||||||
label="&config.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"
|
<checkbox id="extensions.treestyletab.tabbar.hideAlltabsButton-check"
|
||||||
preference="extensions.treestyletab.tabbar.hideAlltabsButton"
|
preference="extensions.treestyletab.tabbar.hideAlltabsButton"
|
||||||
label="&config.tabbar.hideAlltabsButton;"/>
|
label="&config.tabbar.hideAlltabsButton;"/>
|
||||||
|
@ -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-up,
|
||||||
tabbrowser:not([treestyletab-mode="horizontal"]) .tabbrowser-arrowscrollbox > .scrollbutton-down-stack,
|
tabbrowser:not([treestyletab-mode="horizontal"]) .tabbrowser-arrowscrollbox > .scrollbutton-down-stack,
|
||||||
tabbrowser:not([treestyletab-mode="horizontal"]) .tabbrowser-arrowscrollbox > .scrollbutton-down, /* Firefox 3 */
|
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"] .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[treestyletab-mode="vertical"] .tabs-closebutton-box,
|
||||||
tabbrowser:not([treestyletab-mode="horizontal"]) .tab-drop-indicator-bar,
|
tabbrowser:not([treestyletab-mode="horizontal"]) .tab-drop-indicator-bar,
|
||||||
tabbrowser:not([treestyletab-mode="horizontal"]) #vide-bar, /* Tab Mix Plus */
|
tabbrowser:not([treestyletab-mode="horizontal"]) #vide-bar, /* Tab Mix Plus */
|
||||||
|
@ -14,6 +14,7 @@ var TreeStyleTabService = {
|
|||||||
kUI_INVERTED : 'treestyletab-appearance-inverted',
|
kUI_INVERTED : 'treestyletab-appearance-inverted',
|
||||||
kSCROLLBAR_INVERTED : 'treestyletab-scrollbar-inverted',
|
kSCROLLBAR_INVERTED : 'treestyletab-scrollbar-inverted',
|
||||||
kALLOW_COLLAPSE : 'treestyletab-allow-subtree-collapse',
|
kALLOW_COLLAPSE : 'treestyletab-allow-subtree-collapse',
|
||||||
|
kHIDE_NEWTAB : 'treestyletab-hide-newtab-button',
|
||||||
kHIDE_ALLTABS : 'treestyletab-hide-alltabs-button',
|
kHIDE_ALLTABS : 'treestyletab-hide-alltabs-button',
|
||||||
kSTYLE : 'treestyletab-style',
|
kSTYLE : 'treestyletab-style',
|
||||||
kTWISTY_STYLE : 'treestyletab-twisty-style',
|
kTWISTY_STYLE : 'treestyletab-twisty-style',
|
||||||
|
@ -429,6 +429,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.twisty.style');
|
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.twisty.style');
|
||||||
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.showBorderForFirstTab');
|
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.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.tabbar.hideAlltabsButton');
|
||||||
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.allowSubtreeCollapseExpand');
|
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.allowSubtreeCollapseExpand');
|
||||||
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.tabbar.fixed');
|
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.tabbar.fixed');
|
||||||
@ -956,6 +957,14 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
b.removeAttribute(this.kSCROLLBAR_INVERTED);
|
b.removeAttribute(this.kSCROLLBAR_INVERTED);
|
||||||
break;
|
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':
|
case 'extensions.treestyletab.tabbar.hideAlltabsButton':
|
||||||
var pos = b.getAttribute(this.kTABBAR_POSITION);
|
var pos = b.getAttribute(this.kTABBAR_POSITION);
|
||||||
if (value && (pos == 'left' || pos == 'right'))
|
if (value && (pos == 'left' || pos == 'right'))
|
||||||
|
@ -5,6 +5,7 @@ pref("extensions.treestyletab.tabbar.position.subbrowser.enabled", false);
|
|||||||
pref("extensions.treestyletab.tabbar.multirow", false);
|
pref("extensions.treestyletab.tabbar.multirow", false);
|
||||||
pref("extensions.treestyletab.tabbar.invertScrollbar", true);
|
pref("extensions.treestyletab.tabbar.invertScrollbar", true);
|
||||||
pref("extensions.treestyletab.tabbar.invertUI", true);
|
pref("extensions.treestyletab.tabbar.invertUI", true);
|
||||||
|
pref("extensions.treestyletab.tabbar.hideNewTabButton", false);
|
||||||
pref("extensions.treestyletab.tabbar.hideAlltabsButton", true);
|
pref("extensions.treestyletab.tabbar.hideAlltabsButton", true);
|
||||||
pref("extensions.treestyletab.tabbar.scroll.smooth", true);
|
pref("extensions.treestyletab.tabbar.scroll.smooth", true);
|
||||||
pref("extensions.treestyletab.tabbar.scroll.timeout", 250);
|
pref("extensions.treestyletab.tabbar.scroll.timeout", 250);
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<!ENTITY config.tabbar.invertUI "Reihenfolge der Tabs umdrehen">
|
<!ENTITY config.tabbar.invertUI "Reihenfolge der Tabs umdrehen">
|
||||||
<!ENTITY config.enableSubtreeIndent "Tabs einrücken">
|
<!ENTITY config.enableSubtreeIndent "Tabs einrücken">
|
||||||
<!ENTITY config.allowSubtreeCollapseExpand "Auf- und Einklappen von Zweigen erlauben">
|
<!ENTITY config.allowSubtreeCollapseExpand "Auf- und Einklappen von Zweigen erlauben">
|
||||||
|
<!ENTITY config.tabbar.hideNewTabButton "Show "Open a new tab" button">
|
||||||
<!ENTITY config.tabbar.hideAlltabsButton "Button zum Auflisten aller Tabs anzeigen">
|
<!ENTITY config.tabbar.hideAlltabsButton "Button zum Auflisten aller Tabs anzeigen">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.style.caption "Aussehen der Tableiste">
|
<!ENTITY config.tabbar.style.caption "Aussehen der Tableiste">
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<!ENTITY config.tabbar.invertUI "Invert tab appearance">
|
<!ENTITY config.tabbar.invertUI "Invert tab appearance">
|
||||||
<!ENTITY config.enableSubtreeIndent "Indent tabs">
|
<!ENTITY config.enableSubtreeIndent "Indent tabs">
|
||||||
<!ENTITY config.allowSubtreeCollapseExpand "Allow to collapse/expand sub tree of tabs">
|
<!ENTITY config.allowSubtreeCollapseExpand "Allow to collapse/expand sub tree of tabs">
|
||||||
|
<!ENTITY config.tabbar.hideNewTabButton "Show "Open a new tab" button">
|
||||||
<!ENTITY config.tabbar.hideAlltabsButton "Show "List all tabs" button">
|
<!ENTITY config.tabbar.hideAlltabsButton "Show "List all tabs" button">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.style.caption "Appearance of the tab bar">
|
<!ENTITY config.tabbar.style.caption "Appearance of the tab bar">
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<!ENTITY config.tabbar.invertUI "Invertir apariencia de pestaña">
|
<!ENTITY config.tabbar.invertUI "Invertir apariencia de pestaña">
|
||||||
<!ENTITY config.enableSubtreeIndent "Añadir margen a las pestañas">
|
<!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.allowSubtreeCollapseExpand "Permitir colapsar/expandir los sub-árboles de las pestañas">
|
||||||
|
<!ENTITY config.tabbar.hideNewTabButton "Show "Open a new tab" button">
|
||||||
<!ENTITY config.tabbar.hideAlltabsButton "Mostrar el botón "Listar todas las pestañas"">
|
<!ENTITY config.tabbar.hideAlltabsButton "Mostrar el botón "Listar todas las pestañas"">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.style.caption "Apariencia de la barra de pestañas">
|
<!ENTITY config.tabbar.style.caption "Apariencia de la barra de pestañas">
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<!ENTITY config.tabbar.invertUI "Inverti la visualizzazione delle schede">
|
<!ENTITY config.tabbar.invertUI "Inverti la visualizzazione delle schede">
|
||||||
<!ENTITY config.enableSubtreeIndent "Indenta schede figlie">
|
<!ENTITY config.enableSubtreeIndent "Indenta schede figlie">
|
||||||
<!ENTITY config.allowSubtreeCollapseExpand "Permetti di contrarre/espandere sottoalberi delle schede">
|
<!ENTITY config.allowSubtreeCollapseExpand "Permetti di contrarre/espandere sottoalberi delle schede">
|
||||||
|
<!ENTITY config.tabbar.hideNewTabButton "Show "Open a new tab" button">
|
||||||
<!ENTITY config.tabbar.hideAlltabsButton "Visualizza la maniglia per elencare tutte le schede">
|
<!ENTITY config.tabbar.hideAlltabsButton "Visualizza la maniglia per elencare tutte le schede">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.style.caption "Aspetto delle barra delle schede">
|
<!ENTITY config.tabbar.style.caption "Aspetto delle barra delle schede">
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<!ENTITY config.tabbar.invertUI "タブを左右反転">
|
<!ENTITY config.tabbar.invertUI "タブを左右反転">
|
||||||
<!ENTITY config.enableSubtreeIndent "タブをインデント表示する">
|
<!ENTITY config.enableSubtreeIndent "タブをインデント表示する">
|
||||||
<!ENTITY config.allowSubtreeCollapseExpand "サブツリーを折りたためるようにする">
|
<!ENTITY config.allowSubtreeCollapseExpand "サブツリーを折りたためるようにする">
|
||||||
|
<!ENTITY config.tabbar.hideNewTabButton "「新しいタブを開く」ボタンを表示する">
|
||||||
<!ENTITY config.tabbar.hideAlltabsButton "「タブの一覧を表示」ボタンを表示する">
|
<!ENTITY config.tabbar.hideAlltabsButton "「タブの一覧を表示」ボタンを表示する">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.style.caption "タブバーの表示スタイル">
|
<!ENTITY config.tabbar.style.caption "タブバーの表示スタイル">
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<!ENTITY config.tabbar.invertUI "反转标签外观">
|
<!ENTITY config.tabbar.invertUI "反转标签外观">
|
||||||
<!ENTITY config.enableSubtreeIndent "缩进标签">
|
<!ENTITY config.enableSubtreeIndent "缩进标签">
|
||||||
<!ENTITY config.allowSubtreeCollapseExpand "允许折叠/展开标签子树">
|
<!ENTITY config.allowSubtreeCollapseExpand "允许折叠/展开标签子树">
|
||||||
|
<!ENTITY config.tabbar.hideNewTabButton "Show "Open a new tab" button">
|
||||||
<!ENTITY config.tabbar.hideAlltabsButton "显示 "列出所有标签" 按钮">
|
<!ENTITY config.tabbar.hideAlltabsButton "显示 "列出所有标签" 按钮">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.style.caption "标签栏外观">
|
<!ENTITY config.tabbar.style.caption "标签栏外观">
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<!ENTITY config.tabbar.invertUI "左右反轉分頁外觀">
|
<!ENTITY config.tabbar.invertUI "左右反轉分頁外觀">
|
||||||
<!ENTITY config.enableSubtreeIndent "縮進分頁">
|
<!ENTITY config.enableSubtreeIndent "縮進分頁">
|
||||||
<!ENTITY config.allowSubtreeCollapseExpand "允許摺疊 / 展開樹狀子目錄">
|
<!ENTITY config.allowSubtreeCollapseExpand "允許摺疊 / 展開樹狀子目錄">
|
||||||
|
<!ENTITY config.tabbar.hideNewTabButton "Show "Open a new tab" button">
|
||||||
<!ENTITY config.tabbar.hideAlltabsButton "顯示「列出所有分頁」按鈕">
|
<!ENTITY config.tabbar.hideAlltabsButton "顯示「列出所有分頁」按鈕">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.style.caption "分頁工具列的外觀">
|
<!ENTITY config.tabbar.style.caption "分頁工具列的外觀">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user