アニメーション効果切り替えのチェックボックス
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;"
|
||||
onpaneload="onChangeTabbarPosition();">
|
||||
<preferences>
|
||||
<preference id="extensions.treestyletab.tabbar.scroll.smooth"
|
||||
name="extensions.treestyletab.tabbar.scroll.smooth"
|
||||
<preference id="extensions.treestyletab.animation.enabled"
|
||||
name="extensions.treestyletab.animation.enabled"
|
||||
type="bool"/>
|
||||
<preference id="extensions.treestyletab.tabbar.position"
|
||||
name="extensions.treestyletab.tabbar.position"
|
||||
@ -50,9 +50,9 @@
|
||||
|
||||
<vbox>
|
||||
|
||||
<checkbox id="extensions.treestyletab.tabbar.scroll.smooth-check"
|
||||
preference="extensions.treestyletab.tabbar.scroll.smooth"
|
||||
label="&config.tabbar.scroll.smooth;"/>
|
||||
<checkbox id="extensions.treestyletab.animation.enabled-check"
|
||||
preference="extensions.treestyletab.animation.enabled"
|
||||
label="&config.animation.enabled;"/>
|
||||
<groupbox>
|
||||
<caption label="&config.tabbar.position.caption;"/>
|
||||
<vbox>
|
||||
|
@ -100,6 +100,9 @@ var TreeStyleTabService = {
|
||||
baseIndent : 12,
|
||||
shouldDetectClickOnIndentSpaces : true,
|
||||
|
||||
smoothScrollEnabled : true,
|
||||
smoothScrollDelay : 150,
|
||||
|
||||
animationEnabled : true,
|
||||
indentDelay : 200,
|
||||
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.tabs.loadFolderAndReplace.override');
|
||||
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.indent.delay');
|
||||
this.observe(null, 'nsPref:changed', 'extensions.treestyletab.animation.collapse.delay');
|
||||
@ -2172,6 +2177,13 @@ catch(e) {
|
||||
this.shouldDetectClickOnIndentSpaces = this.getPref(aPrefName);
|
||||
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':
|
||||
this.animationEnabled = value;
|
||||
break;
|
||||
|
@ -3234,7 +3234,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
|
||||
scrollTo : function(aEndX, aEndY)
|
||||
{
|
||||
if (this.getTreePref('tabbar.scroll.smooth')) {
|
||||
if (this.animationEnabled || this.smoothScrollEnabled) {
|
||||
this.smoothScrollTo(aEndX, aEndY);
|
||||
}
|
||||
else {
|
||||
@ -3284,7 +3284,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
};
|
||||
window['piro.sakura.ne.jp'].animationManager.addTask(
|
||||
this.smoothScrollTask,
|
||||
0, 0, this.getTreePref('tabbar.scroll.timeout')
|
||||
0, 0, this.smoothScrollDelay
|
||||
);
|
||||
},
|
||||
smoothScrollTask : null,
|
||||
|
@ -12,7 +12,7 @@ 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);
|
||||
pref("extensions.treestyletab.tabbar.scroll.delay", 250);
|
||||
// default, vertigo, mixed
|
||||
pref("extensions.treestyletab.tabbar.style", "mixed");
|
||||
// 0 = disabled, 1 = hide, 2 = shrink
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<!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.left "Links">
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<!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.left "Leftside">
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<!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.left "Lado izquierdo">
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<!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.left "sul lato sinistro">
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<!ENTITY config.tabs.appearance "外観">
|
||||
|
||||
<!ENTITY config.tabbar.scroll.smooth "タブバーをなめらかにスクロールする">
|
||||
<!ENTITY config.animation.enabled "アニメーション効果を有効にする">
|
||||
|
||||
<!ENTITY config.tabbar.position.caption "タブバーの表示位置">
|
||||
<!ENTITY config.tabbar.position.left "左">
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<!ENTITY config.tabs.appearance "Внешний вид">
|
||||
|
||||
<!ENTITY config.tabbar.scroll.smooth "Плавная прокрутка панели вкладок">
|
||||
<!ENTITY config.animation.enabled "Использование эффектов анимации">
|
||||
|
||||
<!ENTITY config.tabbar.position.caption "Расположение панели вкладок">
|
||||
<!ENTITY config.tabbar.position.left "Слева">
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<!ENTITY config.tabs.appearance "外观">
|
||||
|
||||
<!ENTITY config.tabbar.scroll.smooth "平滑滚动标签栏">
|
||||
<!ENTITY config.animation.enabled "使用动画效果">
|
||||
|
||||
<!ENTITY config.tabbar.position.caption "标签栏位置">
|
||||
<!ENTITY config.tabbar.position.left "左侧">
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<!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.left "左側">
|
||||
|
Loading…
Reference in New Issue
Block a user