From xavecoredshot at yahoo.com.br Wed May 17 05:45:32 2006 From: xavecoredshot at yahoo.com.br (=?iso-8859-1?q?Xaveco=20Turma=20da=20M=F4nica?=) Date: Wed May 17 03:46:32 2006 Subject: [Dictionarysearch] Suggestion for dictionary search Message-ID: <20060517074532.5142.qmail@web32112.mail.mud.yahoo.com> Hello, I'd like to suggest this feature, if possible: Double-clicking a word in a webpage makes it to be selected, then we rightclick, point to the "dictionary search" option in the context menu to trigger the dictionary tab in firefox. What I'd like to see, maybe every user too, is a "on/off mode key" to shorten the process: when the key is on (activated), a new tab would open with the dictionary in the desired word immediately after the user double-clicks it. When off, everything returns to the normal ways. Thanks for attention! --------------------------------- Yahoo! doce lar. Fa?a do Yahoo! sua homepage. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mozdev.org/pipermail/dictionarysearch/attachments/20060517/0bd0f472/attachment.htm From khiraly123 at gmx.net Wed May 17 12:44:39 2006 From: khiraly123 at gmx.net (Khiraly) Date: Wed May 17 05:49:03 2006 Subject: [Dictionarysearch] Suggestion for dictionary search In-Reply-To: <20060517074532.5142.qmail@web32112.mail.mud.yahoo.com> References: <20060517074532.5142.qmail@web32112.mail.mud.yahoo.com> Message-ID: <1147859079.16225.4.camel@localhost.localdomain> 2006. 05. 17, szerda keltez?ssel 04.45-kor Xaveco Turma da M?nica ezt ?rta: > Hello, I'd like to suggest this feature, if possible: > Double-clicking a word in a webpage makes it to be selected, then we > rightclick, point to the "dictionary search" option in the context > menu to trigger the dictionary tab in firefox. What I'd like to see, > maybe every user too, is a "on/off mode key" to shorten the process: > when the key is on (activated), a new tab would open with the > dictionary in the desired word immediately after the user > double-clicks it. When off, everything returns to the normal ways. > Thanks for attention! Or triple clicking like in scrapbook! (in scrapbook preferences there is a checkbox to enable/disable it). I think it is a valid shortcut (as scrapbook already imlemented it). I think it is a really great idea! Khiraly From mileschap at pacbell.net Sat May 20 01:30:01 2006 From: mileschap at pacbell.net (Miles) Date: Sat May 20 03:31:01 2006 Subject: [Dictionarysearch] SeaMonkey Message-ID: <446EC579.3010109@pacbell.net> Is there a version that operates with SeaMonkey 1.0.1? And if not, any plans? (I certainly miss the ability to search through 3 or 4 dictionaries on the context menu that was installed on Mozilla 1.7.13 and prior.) Miles From jaap at haitsma.org Sat May 20 11:13:55 2006 From: jaap at haitsma.org (Jaap Haitsma) Date: Sat May 20 04:15:01 2006 Subject: [Dictionarysearch] SeaMonkey In-Reply-To: <446EC579.3010109@pacbell.net> References: <446EC579.3010109@pacbell.net> Message-ID: <1148112835.25121.2.camel@guzzi> On Sat, 2006-05-20 at 00:30 -0700, Miles wrote: > Is there a version that operates with SeaMonkey 1.0.1? And if not, any > plans? (I certainly miss the ability to search through 3 or 4 > dictionaries on the context menu that was installed on Mozilla 1.7.13 > and prior.) > No plans. (I don't use Seamonkey). Feel free to grab the code and make it work with Seamonkey. Jaap From khiraly123 at gmx.net Tue May 23 14:38:19 2006 From: khiraly123 at gmx.net (Khiraly) Date: Tue May 23 07:43:18 2006 Subject: [Dictionarysearch] Suggestion for dictionary search In-Reply-To: <1147859079.16225.4.camel@localhost.localdomain> References: <20060517074532.5142.qmail@web32112.mail.mud.yahoo.com> <1147859079.16225.4.camel@localhost.localdomain> Message-ID: <1148384299.5531.15.camel@localhost.localdomain> 2006. 05. 17, szerda keltez?ssel 11.44-kor Khiraly ezt ?rta: > Or triple clicking like in scrapbook! (in scrapbook preferences there is > a checkbox to enable/disable it). > I think it is a valid shortcut (as scrapbook already imlemented it). > > I think it is a really great idea! Its not scrapbook, its reveal extension. I have looked at the code, and it seems to be doable. (Sadly I have really important uni stuff here, so cant investigate more time right now into it). Some things are unclear (what call the relevant function in reveal. Im talking about this line(content/quickmag.js:29): observe: function (aSubject, aTopic, aData) I dont see any this.observe or any other observe call in the source. I think its some XUL thing there. A little help is needed here. I assume its called at startup time, otherwise, does not make sense. The relevant code would be look like: (at the configuration load code): case "reveal.quickmag": if (getBoolPref("reveal.quickmag")) getBrowser().mPanelContainer.addEventListener("click", this.toggleMag, false); else getBrowser().mPanelContainer.removeEventListener("click", this.toggleMag, false); break; I think at dictionnary search would look like something: case "dict.quicksearch": The key thing here is addEventListener and the toggleMag code. The toggleMag function is responsable for the triple-click handling. The relevant part(I simplified it, and make it double-click): toggleMag: function (e) { var good = false; if (!(getBrowser().selectedBrowser.contentDocument instanceof ImageDocument)) { if (e.detail == 2 && e.button == 0) { good = true; } } if (!good) return; if (QuickMag.magOn) // local variable, is the funtion enabled? // If so disable, it, and quit. If not execute QuickMag.disableMag(null); else if (e.currentTarget == getBrowser().mPanelContainer) { // execute the dictionnary code! } Jaap, can you help me please? Some help-hand would be really nice! Khiraly