From 5833b0205724bfe7d85e4f3675c6d70bb5b059ba Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 14 Mar 2007 00:52:11 +0000 Subject: [PATCH] - add tooltips for annotation buttons - change collapsed annotation icon --- chrome/content/zotero/xpcom/annotate.js | 7 +++++-- chrome/locale/en-US/zotero/zotero.properties | 6 +++++- .../skin/default/zotero/annotation-hidden.png | Bin 462 -> 820 bytes 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/annotate.js b/chrome/content/zotero/xpcom/annotate.js index 83284c267..a7d288c29 100644 --- a/chrome/content/zotero/xpcom/annotate.js +++ b/chrome/content/zotero/xpcom/annotate.js @@ -682,11 +682,11 @@ Zotero.Annotation.prototype.displayWithAbsoluteCoordinates = function(absX, absY this.pushpinDiv.style.padding = "0"; this.pushpinDiv.style.display = "block"; this.pushpinDiv.style.position = "absolute"; - this.pushpinDiv.style.MozOpacity = 0.9; this.pushpinDiv.style.cursor = "pointer"; // generate pushpin image var img = this.document.createElement("img"); img.src = "chrome://zotero/skin/annotation-hidden.png"; + img.title = Zotero.getString("annotations.expand.tooltip"); img.addEventListener("click", function() { me.setCollapsed(false); }, false); @@ -763,6 +763,7 @@ Zotero.Annotation.prototype._addChildElements = function() { // close image var img = this.document.createElement("img"); img.src = "chrome://zotero/skin/annotation-close.png"; + img.title = Zotero.getString("annotations.close.tooltip"); img.addEventListener("click", function(event) { if(me._confirmDelete(event)) { me._delete(); @@ -783,6 +784,7 @@ Zotero.Annotation.prototype._addChildElements = function() { // move image this.moveImg = this.document.createElement("img"); this.moveImg.src = "chrome://zotero/skin/annotation-move.png"; + this.moveImg.title = Zotero.getString("annotations.move.tooltip"); this.moveImg.addEventListener("click", function(e) { me._startMove(e); }, false); @@ -791,6 +793,7 @@ Zotero.Annotation.prototype._addChildElements = function() { // hide image var img = this.document.createElement("img"); img.src = "chrome://zotero/skin/annotation-hide.png"; + img.title = Zotero.getString("annotations.collapse.tooltip"); img.addEventListener("click", function(event) { me.setCollapsed(true); }, false); @@ -804,7 +807,7 @@ Zotero.Annotation.prototype._addChildElements = function() { this.grippyDiv.style.position = "absolute"; this.grippyDiv.style.right = "0px"; this.grippyDiv.style.bottom = "0px"; - this.grippyDiv.style.cursor = "move"; + this.grippyDiv.style.cursor = "se-resize"; var img = this.document.createElement("img"); img.src = "chrome://zotero/skin/annotation-grippy.png"; img.addEventListener("mousedown", function(event) { diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index c7eb22dc6..816d4ff3d 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -353,4 +353,8 @@ citation.singleSource = Single Source... report.title.default = Zotero Report annotations.confirmClose.title = Are you sure you want to close this annotation? -annotations.confirmClose.body = All text will be lost. \ No newline at end of file +annotations.confirmClose.body = All text will be lost. +annotations.close.tooltip = Delete Annotation +annotations.move.tooltip = Move Annotation +annotations.collapse.tooltip = Collapse Annotation +annotations.expand.tooltip = Expand Annotation \ No newline at end of file diff --git a/chrome/skin/default/zotero/annotation-hidden.png b/chrome/skin/default/zotero/annotation-hidden.png index b376a21fc0e5ccaafe81e29f30ddb60abe7ba184..8e12f66d2c83fe78e92006a1b706c2371818a263 100644 GIT binary patch delta 779 zcmV+m1N8jP1GEMqiBL{Q4GJ0x0000DNk~Le0000S0000Q2nGNE0HjnriIE{Ue*(ry zL_t(|+U%B1NEBfh$KUzhZQI7#)xbzaSt5eKL)|>|Vc{j{5JZRa|A*V z1zid{cC$l=P6g4)I+&@cpu4U+GdnwVw3ViZ#SittZ zDDorev_ks(Itq#`WH83JC@DZ;>F2M_4&87`5QMKVbVnFIKX3!Ei&-tHf8_==2m2bE z2-$~#Vu_5FG%L2xyB^I!Op{eHBuT=V-X67#^-Gg|4))BRvoog2vLuq3r*5^OBLVTEh!R>rmirr;tB ze1&-_JO43^BHs7Hb5_NdkEE4#e5n*Sx$(qg$PQh^wJg7cPNC%sb^xR$p%Y};r3Z@Sj)i}7dtOPV?4 z*fyQ~aHZleFRz-~$rB2?3lYm@&s<(L&}eyC>u}Rn)GZRi- zTTeY;ShDZt9UxPi1*nM!$nXxaRblx2gMs1apZ^Sh|1&WB`^NyL|AOd${}~uTip&%k zj$ePFa`*X10~R1(NQ94rnTe5+f8odP{|x{BBWVB|@Sow&KZrpfz{dsli6{%QQ(zkY zA=!km71h}w550Ty=?75Fe+CvNh=M<0TOc;UFayJXu!b)`euJoYOu!KO0`m8o!*>`& zfWB1_W@JznVPa4dV`AW8XJq*Mmw`c&kC8!7ni(88x1W9h1E=v{{0=O14Iasxrp!2r^T4M()^xbyto*Z*^OT>TGZe+S}PWO=ZS z=m6+~UPpbIqWu@2d