インデントの有効無効と横置きタブバーの高さ固定の有無を連動するように
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4670 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
edbab91da6
commit
2ef2038493
@ -24,6 +24,12 @@
|
|||||||
<preference id="extensions.treestyletab.tabbar.style"
|
<preference id="extensions.treestyletab.tabbar.style"
|
||||||
name="extensions.treestyletab.tabbar.style"
|
name="extensions.treestyletab.tabbar.style"
|
||||||
type="string"/>
|
type="string"/>
|
||||||
|
<preference id="extensions.treestyletab.tabbar.fixed.horizontal"
|
||||||
|
name="extensions.treestyletab.tabbar.fixed.horizontal"
|
||||||
|
type="bool"/>
|
||||||
|
<preference id="extensions.treestyletab.tabbar.syncRelatedPrefsForDynamicPosition"
|
||||||
|
name="extensions.treestyletab.tabbar.syncRelatedPrefsForDynamicPosition"
|
||||||
|
type="bool"/>
|
||||||
<preference id="extensions.treestyletab.enableSubtreeIndent.horizontal"
|
<preference id="extensions.treestyletab.enableSubtreeIndent.horizontal"
|
||||||
name="extensions.treestyletab.enableSubtreeIndent.horizontal"
|
name="extensions.treestyletab.enableSubtreeIndent.horizontal"
|
||||||
type="bool"/>
|
type="bool"/>
|
||||||
@ -129,7 +135,11 @@
|
|||||||
label="&config.allowSubtreeCollapseExpand;"/>
|
label="&config.allowSubtreeCollapseExpand;"/>
|
||||||
<checkbox id="extensions.treestyletab.enableSubtreeIndent.horizontal-check"
|
<checkbox id="extensions.treestyletab.enableSubtreeIndent.horizontal-check"
|
||||||
preference="extensions.treestyletab.enableSubtreeIndent.horizontal"
|
preference="extensions.treestyletab.enableSubtreeIndent.horizontal"
|
||||||
label="&config.enableSubtreeIndent;"/>
|
label="&config.enableSubtreeIndent;"
|
||||||
|
oncommand="
|
||||||
|
if (document.getElementById('extensions.treestyletab.tabbar.syncRelatedPrefsForDynamicPosition').value)
|
||||||
|
document.getElementById('extensions.treestyletab.tabbar.fixed.horizontal').value = !this.checked;
|
||||||
|
"/>
|
||||||
<checkbox id="extensions.treestyletab.enableSubtreeIndent.vertical-check"
|
<checkbox id="extensions.treestyletab.enableSubtreeIndent.vertical-check"
|
||||||
preference="extensions.treestyletab.enableSubtreeIndent.vertical"
|
preference="extensions.treestyletab.enableSubtreeIndent.vertical"
|
||||||
label="&config.enableSubtreeIndent;"/>
|
label="&config.enableSubtreeIndent;"/>
|
||||||
|
@ -467,7 +467,7 @@ var TreeStyleTabService = {
|
|||||||
var pref = isVertical ? 'tabbar.fixed.vertical' : 'tabbar.fixed.horizontal' ;
|
var pref = isVertical ? 'tabbar.fixed.vertical' : 'tabbar.fixed.horizontal' ;
|
||||||
this.setTreePref(pref, !this.getTreePref(pref));
|
this.setTreePref(pref, !this.getTreePref(pref));
|
||||||
|
|
||||||
if (!this.getTreePref('syncRelatedPrefs')) return;
|
if (!this.getTreePref('tabbar.syncRelatedPrefsForDynamicPosition')) return;
|
||||||
|
|
||||||
if (!isVertical)
|
if (!isVertical)
|
||||||
this.setTreePref('enableSubtreeIndent.horizontal', !this.getTreePref(pref));
|
this.setTreePref('enableSubtreeIndent.horizontal', !this.getTreePref(pref));
|
||||||
|
@ -1208,12 +1208,15 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'extensions.treestyletab.enableSubtreeIndent.horizontal':
|
case 'extensions.treestyletab.enableSubtreeIndent.horizontal':
|
||||||
case 'extensions.treestyletab.enableSubtreeIndent.vertical':
|
|
||||||
case 'extensions.treestyletab.allowSubtreeCollapseExpand.horizontal':
|
case 'extensions.treestyletab.allowSubtreeCollapseExpand.horizontal':
|
||||||
|
case 'extensions.treestyletab.tabbar.fixed.horizontal':
|
||||||
|
if (!this.isVertical) this.updateTabbarState();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'extensions.treestyletab.enableSubtreeIndent.vertical':
|
||||||
case 'extensions.treestyletab.allowSubtreeCollapseExpand.vertical':
|
case 'extensions.treestyletab.allowSubtreeCollapseExpand.vertical':
|
||||||
case 'extensions.treestyletab.tabbar.fixed.vertical':
|
case 'extensions.treestyletab.tabbar.fixed.vertical':
|
||||||
case 'extensions.treestyletab.tabbar.fixed.horizontal':
|
if (this.isVertical) this.updateTabbarState();
|
||||||
this.updateTabbarState();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'extensions.treestyletab.tabbar.transparent.style':
|
case 'extensions.treestyletab.tabbar.transparent.style':
|
||||||
|
@ -38,7 +38,7 @@ pref("extensions.treestyletab.tabbar.autoShow.keepShownOnMouseover", true);
|
|||||||
pref("extensions.treestyletab.tabbar.togglerSize", 5);
|
pref("extensions.treestyletab.tabbar.togglerSize", 5);
|
||||||
pref("extensions.treestyletab.tabbar.fixed.horizontal", true);
|
pref("extensions.treestyletab.tabbar.fixed.horizontal", true);
|
||||||
pref("extensions.treestyletab.tabbar.fixed.vertical", false);
|
pref("extensions.treestyletab.tabbar.fixed.vertical", false);
|
||||||
pref("extensions.treestyletab.syncRelatedPrefs", true);
|
pref("extensions.treestyletab.tabbar.syncRelatedPrefsForDynamicPosition", true);
|
||||||
pref("extensions.treestyletab.enableSubtreeIndent.horizontal", false);
|
pref("extensions.treestyletab.enableSubtreeIndent.horizontal", false);
|
||||||
pref("extensions.treestyletab.enableSubtreeIndent.vertical", true);
|
pref("extensions.treestyletab.enableSubtreeIndent.vertical", true);
|
||||||
pref("extensions.treestyletab.enableSubtreeIndent.allTabsPopup", true);
|
pref("extensions.treestyletab.enableSubtreeIndent.allTabsPopup", true);
|
||||||
|
Loading…
Reference in New Issue
Block a user