アニメーション効果切り替えのチェックボックス
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4099 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
6877f0dc1e
commit
c28d705406
@ -14,8 +14,8 @@
|
|||||||
<prefpane id="prefpane-appearance" label="&config.tabs.appearance;"
|
<prefpane id="prefpane-appearance" label="&config.tabs.appearance;"
|
||||||
onpaneload="onChangeTabbarPosition();">
|
onpaneload="onChangeTabbarPosition();">
|
||||||
<preferences>
|
<preferences>
|
||||||
<preference id="extensions.treestyletab.tabbar.scroll.smooth"
|
<preference id="extensions.treestyletab.animation.enabled"
|
||||||
name="extensions.treestyletab.tabbar.scroll.smooth"
|
name="extensions.treestyletab.animation.enabled"
|
||||||
type="bool"/>
|
type="bool"/>
|
||||||
<preference id="extensions.treestyletab.tabbar.position"
|
<preference id="extensions.treestyletab.tabbar.position"
|
||||||
name="extensions.treestyletab.tabbar.position"
|
name="extensions.treestyletab.tabbar.position"
|
||||||
@ -50,9 +50,9 @@
|
|||||||
|
|
||||||
<vbox>
|
<vbox>
|
||||||
|
|
||||||
<checkbox id="extensions.treestyletab.tabbar.scroll.smooth-check"
|
<checkbox id="extensions.treestyletab.animation.enabled-check"
|
||||||
preference="extensions.treestyletab.tabbar.scroll.smooth"
|
preference="extensions.treestyletab.animation.enabled"
|
||||||
label="&config.tabbar.scroll.smooth;"/>
|
label="&config.animation.enabled;"/>
|
||||||
<groupbox>
|
<groupbox>
|
||||||
<caption label="&config.tabbar.position.caption;"/>
|
<caption label="&config.tabbar.position.caption;"/>
|
||||||
<vbox>
|
<vbox>
|
||||||
|
@ -100,6 +100,9 @@ var TreeStyleTabService = {
|
|||||||
baseIndent : 12,
|
baseIndent : 12,
|
||||||
shouldDetectClickOnIndentSpaces : true,
|
shouldDetectClickOnIndentSpaces : true,
|
||||||
|
|
||||||
|
smoothScrollEnabled : true,
|
||||||
|
smoothScrollDelay : 150,
|
||||||
|
|
||||||
animationEnabled : true,
|
animationEnabled : true,
|
||||||
indentDelay : 200,
|
indentDelay : 200,
|
||||||
collapseDelay : 150,
|
collapseDelay : 150,
|
||||||
@ -1062,6 +1065,8 @@ var TreeStyleTabService = {
|
|||||||
this.observe(null, 'nsPref:changed', 'browser.link.open_newwindow.restriction.override');
|
this.observe(null, 'nsPref:changed', 'browser.link.open_newwindow.restriction.override');
|
||||||
this.observe(null, 'nsPref:changed', 'browser.tabs.loadFolderAndReplace.override');
|
this.observe(null, 'nsPref:changed', 'browser.tabs.loadFolderAndReplace.override');
|
||||||
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.tabbar.style');
|
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.tabbar.style');
|
||||||
|
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.tabbar.scroll.smooth');
|
||||||
|
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.tabbar.scroll.delay');
|
||||||
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.animation.enabled');
|
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.animation.enabled');
|
||||||
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.animation.indent.delay');
|
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.animation.indent.delay');
|
||||||
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.animation.collapse.delay');
|
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.animation.collapse.delay');
|
||||||
@ -2172,6 +2177,13 @@ catch(e) {
|
|||||||
this.shouldDetectClickOnIndentSpaces = this.getPref(aPrefName);
|
this.shouldDetectClickOnIndentSpaces = this.getPref(aPrefName);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'extensions.treestyletab.tabbar.scroll.smooth':
|
||||||
|
this.smoothScrollEnabled = value;
|
||||||
|
break;
|
||||||
|
case 'extensions.treestyletab.tabbar.scroll.delay':
|
||||||
|
this.smoothScrollDelay = value;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'extensions.treestyletab.animation.enabled':
|
case 'extensions.treestyletab.animation.enabled':
|
||||||
this.animationEnabled = value;
|
this.animationEnabled = value;
|
||||||
break;
|
break;
|
||||||
|
@ -3234,7 +3234,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
scrollTo : function(aEndX, aEndY)
|
scrollTo : function(aEndX, aEndY)
|
||||||
{
|
{
|
||||||
if (this.getTreePref('tabbar.scroll.smooth')) {
|
if (this.animationEnabled || this.smoothScrollEnabled) {
|
||||||
this.smoothScrollTo(aEndX, aEndY);
|
this.smoothScrollTo(aEndX, aEndY);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -3284,7 +3284,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
};
|
};
|
||||||
window['piro.sakura.ne.jp'].animationManager.addTask(
|
window['piro.sakura.ne.jp'].animationManager.addTask(
|
||||||
this.smoothScrollTask,
|
this.smoothScrollTask,
|
||||||
0, 0, this.getTreePref('tabbar.scroll.timeout')
|
0, 0, this.smoothScrollDelay
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
smoothScrollTask : null,
|
smoothScrollTask : null,
|
||||||
|
@ -12,7 +12,7 @@ pref("extensions.treestyletab.tabbar.invertUI", true);
|
|||||||
pref("extensions.treestyletab.tabbar.hideNewTabButton", false);
|
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.delay", 250);
|
||||||
// default, vertigo, mixed
|
// default, vertigo, mixed
|
||||||
pref("extensions.treestyletab.tabbar.style", "mixed");
|
pref("extensions.treestyletab.tabbar.style", "mixed");
|
||||||
// 0 = disabled, 1 = hide, 2 = shrink
|
// 0 = disabled, 1 = hide, 2 = shrink
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<!ENTITY config.tabs.appearance "Darstellung">
|
<!ENTITY config.tabs.appearance "Darstellung">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.scroll.smooth "Tableiste weich scrollen">
|
<!ENTITY config.animation.enabled "Aktivieren Sie Animationseffekte">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.position.caption "Position der Tableiste">
|
<!ENTITY config.tabbar.position.caption "Position der Tableiste">
|
||||||
<!ENTITY config.tabbar.position.left "Links">
|
<!ENTITY config.tabbar.position.left "Links">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<!ENTITY config.tabs.appearance "Appearance">
|
<!ENTITY config.tabs.appearance "Appearance">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.scroll.smooth "Scroll the tab bar smoothly">
|
<!ENTITY config.animation.enabled "Enable Animation Effects">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.position.caption "Tab bar position">
|
<!ENTITY config.tabbar.position.caption "Tab bar position">
|
||||||
<!ENTITY config.tabbar.position.left "Leftside">
|
<!ENTITY config.tabbar.position.left "Leftside">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<!ENTITY config.tabs.appearance "Apariencia">
|
<!ENTITY config.tabs.appearance "Apariencia">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.scroll.smooth "Desplazar la barra de pestañas suavemente">
|
<!ENTITY config.animation.enabled "Activar los efectos de animación">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.position.caption "Posición de la barra de pestañas">
|
<!ENTITY config.tabbar.position.caption "Posición de la barra de pestañas">
|
||||||
<!ENTITY config.tabbar.position.left "Lado izquierdo">
|
<!ENTITY config.tabbar.position.left "Lado izquierdo">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<!ENTITY config.tabs.appearance "Aspetto">
|
<!ENTITY config.tabs.appearance "Aspetto">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.scroll.smooth "Scorri gradualmente la barra delle schede">
|
<!ENTITY config.animation.enabled "Abilita effetti di animazione">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.position.caption "Posiziona barra delle schede">
|
<!ENTITY config.tabbar.position.caption "Posiziona barra delle schede">
|
||||||
<!ENTITY config.tabbar.position.left "sul lato sinistro">
|
<!ENTITY config.tabbar.position.left "sul lato sinistro">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<!ENTITY config.tabs.appearance "外観">
|
<!ENTITY config.tabs.appearance "外観">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.scroll.smooth "タブバーをなめらかにスクロールする">
|
<!ENTITY config.animation.enabled "アニメーション効果を有効にする">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.position.caption "タブバーの表示位置">
|
<!ENTITY config.tabbar.position.caption "タブバーの表示位置">
|
||||||
<!ENTITY config.tabbar.position.left "左">
|
<!ENTITY config.tabbar.position.left "左">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<!ENTITY config.tabs.appearance "Внешний вид">
|
<!ENTITY config.tabs.appearance "Внешний вид">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.scroll.smooth "Плавная прокрутка панели вкладок">
|
<!ENTITY config.animation.enabled "Использование эффектов анимации">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.position.caption "Расположение панели вкладок">
|
<!ENTITY config.tabbar.position.caption "Расположение панели вкладок">
|
||||||
<!ENTITY config.tabbar.position.left "Слева">
|
<!ENTITY config.tabbar.position.left "Слева">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<!ENTITY config.tabs.appearance "外观">
|
<!ENTITY config.tabs.appearance "外观">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.scroll.smooth "平滑滚动标签栏">
|
<!ENTITY config.animation.enabled "使用动画效果">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.position.caption "标签栏位置">
|
<!ENTITY config.tabbar.position.caption "标签栏位置">
|
||||||
<!ENTITY config.tabbar.position.left "左侧">
|
<!ENTITY config.tabbar.position.left "左侧">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<!ENTITY config.tabs.appearance "外觀">
|
<!ENTITY config.tabs.appearance "外觀">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.scroll.smooth "平滑捲動分頁工具列">
|
<!ENTITY config.animation.enabled "Enable Animation Effects">
|
||||||
|
|
||||||
<!ENTITY config.tabbar.position.caption "分頁工具列位置">
|
<!ENTITY config.tabbar.position.caption "分頁工具列位置">
|
||||||
<!ENTITY config.tabbar.position.left "左側">
|
<!ENTITY config.tabbar.position.left "左側">
|
||||||
|
Loading…
Reference in New Issue
Block a user