From e4a9315e9b0c26788fa54931e44d1da96426beed Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 30 Nov 2007 19:22:34 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=84=E3=83=AA=E3=83=BC=E3=81=AE=E9=96=8B?= =?UTF-8?q?=E9=96=89=E3=83=9C=E3=82=BF=E3=83=B3=E3=82=92=E3=83=9D=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=81=97=E3=81=9F=E6=99=82=E3=80=81=E3=83=84?= =?UTF-8?q?=E3=83=BC=E3=83=AB=E3=83=81=E3=83=83=E3=83=97=E3=82=84=E3=82=A2?= =?UTF-8?q?=E3=82=A4=E3=82=B3=E3=83=B3=E3=81=AE=E5=A4=89=E5=8C=96=E3=81=A7?= =?UTF-8?q?=E3=83=95=E3=82=A3=E3=83=BC=E3=83=89=E3=83=90=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=82=92=E8=A1=8C=E3=81=86=E3=82=88=E3=81=86=E3=81=AB=E3=81=97?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1652 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 10 +++++ content/treestyletab/treestyletab.xul | 5 +++ content/treestyletab/treestyletabbrowser.js | 35 ++++++++++++++++++ install.rdf | 7 ++-- .../treestyletab/treestyletab.properties | 5 +++ .../treestyletab/treestyletab.properties | 5 +++ .../ja/treestyletab/treestyletab.properties | 5 +++ .../treestyletab/tree-twisty-collapsed.png | Bin 257 -> 0 bytes .../treestyletab/tree-twisty-expanded.png | Bin 228 -> 0 bytes skin/classic/treestyletab/tree-twisty.png | Bin 0 -> 635 bytes skin/classic/treestyletab/treestyletab.css | 13 +++++-- 11 files changed, 79 insertions(+), 6 deletions(-) delete mode 100644 skin/classic/treestyletab/tree-twisty-collapsed.png delete mode 100644 skin/classic/treestyletab/tree-twisty-expanded.png create mode 100644 skin/classic/treestyletab/tree-twisty.png diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 7fb7c491..72c5fbcf 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -6,6 +6,7 @@ var TreeStyleTabService = { kINSERT_BEFORE : 'treestyletab-insert-before', kSUBTREE_COLLAPSED : 'treestyletab-subtree-collapsed', kCOLLAPSED : 'treestyletab-collapsed', + kTWISTY_HOVER : 'treestyletab-twisty-hover', kNEST : 'treestyletab-nest', kDROP_POSITION : 'treestyletab-drop-position', kTABBAR_POSITION : 'treestyletab-tabbar-position', @@ -25,6 +26,7 @@ var TreeStyleTabService = { kCOUNTER : 'treestyletab-counter', kCOUNTER_CONTAINER : 'treestyletab-counter-container', kSPLITTER : 'treestyletab-splitter', + kSTRINGBUNDLE : 'treestyletab-stringbundle', kMENUITEM_REMOVESUBTREE_SELECTION : 'multipletab-selection-item-removeTabSubTree', @@ -106,6 +108,14 @@ var TreeStyleTabService = { return this._XULAppInfo; }, _XULAppInfo : null, + + get stringbundle() { + if (!this._stringbundle) { + this._stringbundle = document.getElementById(this.kSTRINGBUNDLE); + } + return this._stringbundle; + }, + _stringbundle : null, /* API */ diff --git a/content/treestyletab/treestyletab.xul b/content/treestyletab/treestyletab.xul index 212adb50..b4cc6412 100644 --- a/content/treestyletab/treestyletab.xul +++ b/content/treestyletab/treestyletab.xul @@ -29,6 +29,11 @@ oncommand="TreeStyleTabService.removeTabSubTree(MultipleTabService.getSelectedTabs());"/> + + + + + ) + ); + var tabs = b.mTabContainer.childNodes; for (var i = 0, maxi = tabs.length; i < maxi; i++) { @@ -925,6 +948,18 @@ TreeStyleTabBrowser.prototype = { case 'dragdrop': nsDragAndDrop.drop(aEvent, this); return; + + case 'mouseover': + if (this.isEventFiredOnTwisty(aEvent)) { + aEvent.target.setAttribute(this.kTWISTY_HOVER, true); + } + return; + + case 'mouseout': + if (this.isEventFiredOnTwisty(aEvent)) { + aEvent.target.removeAttribute(this.kTWISTY_HOVER); + } + return; } }, diff --git a/install.rdf b/install.rdf index ec4aaca3..c67ca6e6 100644 --- a/install.rdf +++ b/install.rdf @@ -5,10 +5,10 @@ Godai71.Extenzilla (it-IT locale) @@ -26,7 +26,8 @@ + em:description="タブをツリー状に表示します。" + em:homepageURL="http://piro.sakura.ne.jp/xul/_treestyletab.html"/> mrPUZ)px!#cJNP6c*HkoYyV4ZEE$u^!+%P`9N%c@n#^_O=aY#ZRtYa{NSp zbO(d+JtYO!hCA9!LMNm1CfI!2xa4~h>!f!t+T1>=yzG1!usZ66w_NpXDF-K;BP|Y_ zw=2B7I#o`MpWz+fr016o{)yo*Fn*@LChY%jpZ%|xUuf&`?iKwy6X<*fPgg&ebxsLQ E00nwxb^rhX diff --git a/skin/classic/treestyletab/tree-twisty-expanded.png b/skin/classic/treestyletab/tree-twisty-expanded.png deleted file mode 100644 index 4c9584301827b5106fa82d61df9c15088c2c5775..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 228 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP;i>3 zi(^Q|oVAnh@*Xk}XwF^9AKEzAia~n=+xq7@hZ^1_#Bp%tIxQCS4qSBkXYic)2hI92 zES~5wYN~qQGVyS7DPWzza@(9ConiXXKarE?C@+$Hc*XFQpj1Pq{(`hKTjw`)KB>Jq zCH42toy@oSP53_8mb+#gm8fPgO0)+jEP)J6)a$o=q zFCm0e1;E0+2RumSA%ttH`r6I)3V^Jy`!;;<0lR4!Lb#%;?~}QH2tf*ftgpe$^d9h( z{D8Tns-NTgLENqc$a?o&+k3$Ch6RRz%mG-qKR9Q?WsO6?Az%s+kqPr1#dm=nGy9z_ z)Ur*@dk=UR7Z?FU5!p1ew^a-r6_Jy`7