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"/>