画面端でのタブバー自動表示を無効にできるようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@2019 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
0195041cd8
commit
4933808783
@ -336,6 +336,9 @@
|
||||
<preference id="extensions.treestyletab.tabbar.autoHide.enabled"
|
||||
name="extensions.treestyletab.tabbar.autoHide.enabled"
|
||||
type="bool"/>
|
||||
<preference id="extensions.treestyletab.tabbar.autoShow.mousemove"
|
||||
name="extensions.treestyletab.tabbar.autoShow.mousemove"
|
||||
type="bool"/>
|
||||
<preference id="extensions.treestyletab.tabbar.autoShow.accelKeyDown"
|
||||
name="extensions.treestyletab.tabbar.autoShow.accelKeyDown"
|
||||
type="bool"/>
|
||||
@ -354,6 +357,9 @@
|
||||
label="&config.tabbar.autoHide.enabled;"/>
|
||||
<groupbox orient="vertical">
|
||||
<caption label="&config.tabbar.autoShow.caption;"/>
|
||||
<checkbox id="extensions.treestyletab.tabbar.autoShow.mousemove-check"
|
||||
preference="extensions.treestyletab.tabbar.autoShow.mousemove"
|
||||
label="&config.tabbar.autoShow.mousemove;"/>
|
||||
<checkbox id="extensions.treestyletab.tabbar.autoShow.accelKeyDown-check"
|
||||
preference="extensions.treestyletab.tabbar.autoShow.accelKeyDown"
|
||||
label="&config.tabbar.autoShow.accelKeyDown;"/>
|
||||
|
@ -859,6 +859,13 @@ TreeStyleTabBrowser.prototype = {
|
||||
this.endAutoHide();
|
||||
break;
|
||||
|
||||
case 'extensions.treestyletab.tabbar.autoShow.mousemove':
|
||||
if (this.autoHideEnabled && value)
|
||||
this.startListenMouseMove();
|
||||
else
|
||||
this.endListenMouseMove();
|
||||
break;
|
||||
|
||||
case 'extensions.treestyletab.tabbar.fixed':
|
||||
if (value)
|
||||
b.setAttribute(this.kFIXED, true);
|
||||
@ -2766,10 +2773,11 @@ TreeStyleTabBrowser.prototype = {
|
||||
|
||||
this.mTabBrowser.addEventListener('mousedown', this, true);
|
||||
this.mTabBrowser.addEventListener('mouseup', this, true);
|
||||
this.mTabBrowser.addEventListener('mousemove', this, true);
|
||||
this.mTabBrowser.addEventListener('scroll', this, true);
|
||||
this.mTabBrowser.addEventListener('resize', this, true);
|
||||
this.mTabBrowser.addEventListener('load', this, true);
|
||||
if (this.getTreePref('tabbar.autoShow.mousemove'))
|
||||
this.startListenMouseMove();
|
||||
|
||||
this.tabbarShown = true;
|
||||
this.showHideTabbarInternal();
|
||||
@ -2782,16 +2790,30 @@ TreeStyleTabBrowser.prototype = {
|
||||
|
||||
this.mTabBrowser.removeEventListener('mousedown', this, true);
|
||||
this.mTabBrowser.removeEventListener('mouseup', this, true);
|
||||
this.mTabBrowser.removeEventListener('mousemove', this, true);
|
||||
this.mTabBrowser.removeEventListener('scroll', this, true);
|
||||
this.mTabBrowser.removeEventListener('resize', this, true);
|
||||
this.mTabBrowser.removeEventListener('load', this, true);
|
||||
this.endListenMouseMove();
|
||||
|
||||
this.container.style.margin = 0;
|
||||
this.mTabBrowser.removeAttribute(this.kAUTOHIDE);
|
||||
this.tabbarShown = true;
|
||||
},
|
||||
|
||||
startListenMouseMove : function()
|
||||
{
|
||||
if (this.mouseMoveListening) return;
|
||||
this.mTabBrowser.addEventListener('mousemove', this, true);
|
||||
this.mouseMoveListening = true;
|
||||
},
|
||||
endListenMouseMove : function()
|
||||
{
|
||||
if (!this.mouseMoveListening) return;
|
||||
this.mTabBrowser.removeEventListener('mousemove', this, true);
|
||||
this.mouseMoveListening = false;
|
||||
},
|
||||
mouseMoveListening : false,
|
||||
|
||||
showHideTabbarOnMousemove : function(aEvent)
|
||||
{
|
||||
if ('gestureInProgress' in window && window.gestureInProgress) return;
|
||||
|
@ -11,6 +11,7 @@ pref("extensions.treestyletab.tabbar.autoHide.enabled", false);
|
||||
pref("extensions.treestyletab.tabbar.autoHide.delay", 50);
|
||||
pref("extensions.treestyletab.tabbar.autoHide.area", 25);
|
||||
pref("extensions.treestyletab.tabbar.autoHide.expandArea", false);
|
||||
pref("extensions.treestyletab.tabbar.autoShow.mousemove", true);
|
||||
pref("extensions.treestyletab.tabbar.autoShow.accelKeyDown", true);
|
||||
pref("extensions.treestyletab.tabbar.autoShow.accelKeyDown.delay", 800);
|
||||
pref("extensions.treestyletab.tabbar.autoShow.tabSwitch", true);
|
||||
|
@ -72,6 +72,7 @@
|
||||
|
||||
<!ENTITY config.tabbar.autoHide.enabled "Auto hide tab bar">
|
||||
<!ENTITY config.tabbar.autoShow.caption "Show tab bar automatically when">
|
||||
<!ENTITY config.tabbar.autoShow.mousemove "Mouse cursor points window edges">
|
||||
<!ENTITY config.tabbar.autoShow.accelKeyDown "Control(Command) key is pressed a while">
|
||||
<!ENTITY config.tabbar.autoShow.tabSwitch "Control(Command)-Tab to switch tabs">
|
||||
<!ENTITY config.tabbar.autoShow.feedback "Nwe tabs are opened or some tabs are closed">
|
||||
|
@ -72,6 +72,7 @@
|
||||
|
||||
<!ENTITY config.tabbar.autoHide.enabled "Auto-ocultar la barra de pestañas">
|
||||
<!ENTITY config.tabbar.autoShow.caption "Show tab bar automatically when">
|
||||
<!ENTITY config.tabbar.autoShow.mousemove "Mouse cursor points window edges">
|
||||
<!ENTITY config.tabbar.autoShow.accelKeyDown "Control(Command) key is pressed a while">
|
||||
<!ENTITY config.tabbar.autoShow.tabSwitch "Control(Command)-Tab to switch tabs">
|
||||
<!ENTITY config.tabbar.autoShow.feedback "Nwe tabs are opened or some tabs are closed">
|
||||
|
@ -72,6 +72,7 @@
|
||||
|
||||
<!ENTITY config.tabbar.autoHide.enabled "Nascondi automaticamente la barra delle schede">
|
||||
<!ENTITY config.tabbar.autoShow.caption "Show tab bar automatically when">
|
||||
<!ENTITY config.tabbar.autoShow.mousemove "Mouse cursor points window edges">
|
||||
<!ENTITY config.tabbar.autoShow.accelKeyDown "Control(Command) key is pressed a while">
|
||||
<!ENTITY config.tabbar.autoShow.tabSwitch "Control(Command)-Tab to switch tabs">
|
||||
<!ENTITY config.tabbar.autoShow.feedback "Nwe tabs are opened or some tabs are closed">
|
||||
|
@ -72,6 +72,7 @@
|
||||
|
||||
<!ENTITY config.tabbar.autoHide.enabled "タブバーを自動的に隠す">
|
||||
<!ENTITY config.tabbar.autoShow.caption "以下の場合に自動的にタブバーを表示する">
|
||||
<!ENTITY config.tabbar.autoShow.mousemove "ウィンドウの端にポインタが近づいた時">
|
||||
<!ENTITY config.tabbar.autoShow.accelKeyDown "Control(Command)キーを長押しした時">
|
||||
<!ENTITY config.tabbar.autoShow.tabSwitch "Control(Command)-Tabでタブを切り替える時">
|
||||
<!ENTITY config.tabbar.autoShow.feedback "新しいタブが開かれたりタブが閉じられたりした時">
|
||||
|
@ -72,6 +72,7 @@
|
||||
|
||||
<!ENTITY config.tabbar.autoHide.enabled "自动隐藏标签栏">
|
||||
<!ENTITY config.tabbar.autoShow.caption "Show tab bar automatically when">
|
||||
<!ENTITY config.tabbar.autoShow.mousemove "Mouse cursor points window edges">
|
||||
<!ENTITY config.tabbar.autoShow.accelKeyDown "Control(Command) key is pressed a while">
|
||||
<!ENTITY config.tabbar.autoShow.tabSwitch "Control(Command)-Tab to switch tabs">
|
||||
<!ENTITY config.tabbar.autoShow.feedback "Nwe tabs are opened or some tabs are closed">
|
||||
|
Loading…
Reference in New Issue
Block a user