You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
---|
From: <bro...@us...> - 2006-09-22 03:56:17
|
Revision: 22 http://svn.sourceforge.net/enigweb/?rev=22&view=rev Author: brondsem Date: 2006-09-21 20:56:09 -0700 (Thu, 21 Sep 2006) Log Message: ----------- debug/warn/error functions that to the javascript console Change context menu to have 'encrypt' and 'sign' options make those context menu items only appear on textareas simple text replacement until we invoke gpg add a test.html file Modified Paths: -------------- core/trunk/readme.txt core/trunk/src/content/firefoxOverlay.xul core/trunk/src/content/overlay.js core/trunk/src/locale/en-US/enigwebcore.dtd Added Paths: ----------- core/trunk/test/ core/trunk/test/test.html Modified: core/trunk/readme.txt =================================================================== --- core/trunk/readme.txt 2006-09-13 11:45:53 UTC (rev 21) +++ core/trunk/readme.txt 2006-09-22 03:56:09 UTC (rev 22) @@ -9,8 +9,8 @@ you should do the following: 1. Unzip the entire contents of this package to somewhere, e.g, c:\dev or /home/user/dev - 2. Put the full path to the folder (e.g. c:\dev\enigwebcore on - Windows, /home/user/dev/enigwebcore on Linux) in a file named + 2. Put the full path to the folder (e.g. c:\dev\enigwebcore\trunk\src on + Windows, /home/user/dev/enigwebcore/trunk/src on Linux) in a file named eni...@en... and copy that file to [your profile folder]\extensions\ 3. Restart Firefox. Modified: core/trunk/src/content/firefoxOverlay.xul =================================================================== --- core/trunk/src/content/firefoxOverlay.xul 2006-09-13 11:45:53 UTC (rev 21) +++ core/trunk/src/content/firefoxOverlay.xul 2006-09-22 03:56:09 UTC (rev 22) @@ -12,12 +12,19 @@ <menuitem id="enigwebcore-hello" label="&enigwebcore.label;" oncommand="enigwebcore.onMenuItemCommand(event);"/> </menupopup> + + <!-- this id is for right-click context menus --> <popup id="contentAreaContextMenu"> - <menuitem id="context-enigwebcore" label="&enigwebcoreContext.label;" - accesskey="&enigwebcoreContext.accesskey;" + <menuitem id="context-enigwebcore-sign" label="&enigwebcoreContext.signLabel;" + accesskey="&enigwebcoreContext.signAccesskey;" insertafter="context-stop" - oncommand="enigwebcore.onMenuItemCommand(event)"/> + oncommand="enigwebcore.sign(event)"/> + <menuitem id="context-enigwebcore-encrypt" label="&enigwebcoreContext.encryptLabel;" + accesskey="&enigwebcoreContext.encryptAccesskey;" + insertafter="context-stop" + oncommand="enigwebcore.encrypt(event)"/> </popup> + <toolbarpalette id="BrowserToolbarPalette"> <toolbarbutton id="enigwebcore-toolbar-button" label="&enigwebcoreToolbar.label;" Modified: core/trunk/src/content/overlay.js =================================================================== --- core/trunk/src/content/overlay.js 2006-09-13 11:45:53 UTC (rev 21) +++ core/trunk/src/content/overlay.js 2006-09-22 03:56:09 UTC (rev 22) @@ -1,26 +1,70 @@ var enigwebcore = { onLoad: function() { // initialization code + this.consoleService = Components.classes['@mozilla.org/consoleservice;1'].getService(Components.interfaces.nsIConsoleService); + this.debug('initializing'); this.initialized = true; + this.strings = document.getElementById("enigwebcore-strings"); + + + this.debug("id: " + document.getElementById("contentAreaContextMenu")); + document.getElementById("contentAreaContextMenu") - .addEventListener("popupshowing", function(e) { this.showContextMenu(e); }, false); + .addEventListener("popupshowing", this.showContextMenu/* function(e) { this.showContextMenu(e); } */, false); }, showContextMenu: function(event) { // show or hide the menuitem based on what the context menu is on // see http://kb.mozillazine.org/Adding_items_to_menus - document.getElementById("context-enigwebcore").hidden = gContextMenu.onImage; + enigwebcore.debug(gContextMenu); + enigwebcore.debug(event); + if (gContextMenu.target.tagName == "TEXTAREA") { + document.getElementById("context-enigwebcore-sign").hidden = false; + document.getElementById("context-enigwebcore-encrypt").hidden = false; + } else { + document.getElementById("context-enigwebcore-sign").hidden = true; + document.getElementById("context-enigwebcore-encrypt").hidden = true; + } }, - onMenuItemCommand: function(e) { + + sign: function(e) { var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); - promptService.alert(window, this.strings.getString("helloMessageTitle"), - this.strings.getString("helloMessage")); + this.debug("sign" + document.popupNode); + document.popupNode.value = '---- SIGN ----\n' + document.popupNode.value + '\n----- END SIGN ---- '; }, + + encrypt: function(e) { + var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] + .getService(Components.interfaces.nsIPromptService); + this.debug("encrypt: " + document.popupNode); + document.popupNode.value = '---- ENCRYPT ----\n' + document.popupNode.value + '\n----- END ENCRYPT---- '; + }, + + onToolbarButtonCommand: function(e) { // just reuse the function above. you can change this, obviously! enigwebcore.onMenuItemCommand(e); + }, + + + //promptService.alert(window, this.strings.getString("helloMessageTitle"),this.strings.getString("helloMessage")); + + debug: function(message) { + this.consoleService.logStringMessage('EnigWeb core: ' + message); + }, + + error: function(message) { + var scriptError = Components.classes["@mozilla.org/scripterror;1"].createInstance(Components.interfaces.nsIScriptError); + scriptError.init('EnigWeb core: ' + message, null, null, null, null, Components.interfaces.nsIScriptError.errorFlag, "chrome javascript"); + this.consoleService.logMessage(scriptError); + }, + + warn: function(message) { + var scriptError = Components.classes["@mozilla.org/scripterror;1"].createInstance(Components.interfaces.nsIScriptError); + scriptError.init('EnigWeb core: ' + message, null, null, null, null, Components.interfaces.nsIScriptError.warningFlag, "chome javascript"); + this.consoleService.logMessage(scriptError); } }; Modified: core/trunk/src/locale/en-US/enigwebcore.dtd =================================================================== --- core/trunk/src/locale/en-US/enigwebcore.dtd 2006-09-13 11:45:53 UTC (rev 21) +++ core/trunk/src/locale/en-US/enigwebcore.dtd 2006-09-22 03:56:09 UTC (rev 22) @@ -1,5 +1,9 @@ <!ENTITY enigwebcore.label "Your localized menuitem"> -<!ENTITY enigwebcoreContext.label "Your Menuitem"> -<!ENTITY enigwebcoreContext.accesskey "Y"> + +<!ENTITY enigwebcoreContext.signLabel "Sign this textarea"> +<!ENTITY enigwebcoreContext.signAccesskey "S"> +<!ENTITY enigwebcoreContext.encryptLabel "Encrypt this textarea..."> +<!ENTITY enigwebcoreContext.encryptAccesskey "E"> + <!ENTITY enigwebcoreToolbar.label "Your Toolbar Button"> <!ENTITY enigwebcoreToolbar.tooltip "This is your toolbar button!"> Added: core/trunk/test/test.html =================================================================== --- core/trunk/test/test.html (rev 0) +++ core/trunk/test/test.html 2006-09-22 03:56:09 UTC (rev 22) @@ -0,0 +1,12 @@ +<html> + <body> + <form> + <input type="text" value="foo bar"/> + <hr/> + <textarea rows="30" cols="30">some text</textarea> + <p> + foo bar baz + </p> + </form> + </body> +</html> \ No newline at end of file Property changes on: core/trunk/test/test.html ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gh...@us...> - 2006-09-13 11:45:59
|
Revision: 21 http://svn.sourceforge.net/enigweb/?rev=21&view=rev Author: ghusse Date: 2006-09-13 04:45:53 -0700 (Wed, 13 Sep 2006) Log Message: ----------- Modified Paths: -------------- core/trunk/src/install.rdf Modified: core/trunk/src/install.rdf =================================================================== --- core/trunk/src/install.rdf 2006-09-13 04:10:57 UTC (rev 20) +++ core/trunk/src/install.rdf 2006-09-13 11:45:53 UTC (rev 21) @@ -5,6 +5,7 @@ <em:id>eni...@en...</em:id> <em:name>EnigWeb Core</em:name> <em:version>0.1</em:version> + <em:type>2</em:type> <em:creator>EnigWeb Team</em:creator> <em:contributor>Dave Brondsema</em:contributor> <em:contributor>Guillaume Gautreau</em:contributor> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bro...@us...> - 2006-09-13 04:11:00
|
Revision: 20 http://svn.sourceforge.net/enigweb/?rev=20&view=rev Author: brondsem Date: 2006-09-12 21:10:57 -0700 (Tue, 12 Sep 2006) Log Message: ----------- generate a .xpi file with a version number in it Modified Paths: -------------- core/trunk/build.sh core/trunk/config_build.sh Modified: core/trunk/build.sh =================================================================== --- core/trunk/build.sh 2006-09-13 04:00:27 UTC (rev 19) +++ core/trunk/build.sh 2006-09-13 04:10:57 UTC (rev 20) @@ -31,6 +31,7 @@ # default configuration file is ./config_build.sh, unless another file is # specified in command-line. Available config variables: APP_NAME= # short-name, jar and xpi files name. Must be lowercase with no spaces +APP_VERSION=1.0 # version, used in xpi file name CHROME_PROVIDERS= # which chrome providers we have (space-separated list) CLEAN_UP= # delete the jar / "files" when done? (1/0) ROOT_FILES= # put these files in root of xpi (space separated list of leaf filenames) @@ -59,7 +60,7 @@ #set -x # remove any left-over files from previous build -rm -f $DIST_DIR/$APP_NAME.jar $DIST_DIR/$APP_NAME.xpi $DIST_DIR/files +rm -f $DIST_DIR/$APP_NAME.jar $DIST_DIR/$APP_NAME-*.xpi $DIST_DIR/files rm -rf $TMP_DIR $BEFORE_BUILD @@ -118,8 +119,8 @@ fi # generate the XPI file -echo "Generating $APP_NAME.xpi..." -zip -r ../$DIST_DIR/$APP_NAME.xpi * +echo "Generating $APP_NAME-$APP_VERSION.xpi..." +zip -r ../$DIST_DIR/$APP_NAME-$APP_VERSION.xpi * cd "$ROOT_DIR" Modified: core/trunk/config_build.sh =================================================================== --- core/trunk/config_build.sh 2006-09-13 04:00:27 UTC (rev 19) +++ core/trunk/config_build.sh 2006-09-13 04:10:57 UTC (rev 20) @@ -1,6 +1,7 @@ #!/bin/bash # Build config for build.sh APP_NAME=enigwebcore +APP_VERSION=0.1 # relative to SRC_DIR CHROME_PROVIDERS="content locale skin" CLEAN_UP=1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |