You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(10) |
Jul
(24) |
Aug
(93) |
Sep
(261) |
Oct
(257) |
Nov
(218) |
Dec
(95) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(184) |
Feb
(87) |
Mar
(155) |
Apr
(398) |
May
(201) |
Jun
(35) |
Jul
(68) |
Aug
(92) |
Sep
(52) |
Oct
(111) |
Nov
(135) |
Dec
(116) |
2009 |
Jan
(225) |
Feb
(204) |
Mar
(113) |
Apr
(137) |
May
(220) |
Jun
(199) |
Jul
(196) |
Aug
(98) |
Sep
(100) |
Oct
(179) |
Nov
(164) |
Dec
(72) |
2010 |
Jan
(59) |
Feb
(61) |
Mar
(64) |
Apr
(159) |
May
(107) |
Jun
(252) |
Jul
(180) |
Aug
(96) |
Sep
(82) |
Oct
(58) |
Nov
(43) |
Dec
(53) |
2011 |
Jan
(39) |
Feb
(18) |
Mar
(33) |
Apr
(66) |
May
(48) |
Jun
(124) |
Jul
(112) |
Aug
(62) |
Sep
(45) |
Oct
(102) |
Nov
(47) |
Dec
(37) |
2012 |
Jan
(22) |
Feb
(18) |
Mar
(1) |
Apr
(5) |
May
(18) |
Jun
(13) |
Jul
(9) |
Aug
(38) |
Sep
(3) |
Oct
(7) |
Nov
(24) |
Dec
(6) |
2013 |
Jan
(1) |
Feb
(14) |
Mar
(1) |
Apr
(2) |
May
(3) |
Jun
(4) |
Jul
(9) |
Aug
(4) |
Sep
(7) |
Oct
|
Nov
(1) |
Dec
(4) |
2014 |
Jan
(9) |
Feb
(2) |
Mar
|
Apr
|
May
(4) |
Jun
(2) |
Jul
|
Aug
|
Sep
(6) |
Oct
|
Nov
(1) |
Dec
|
2015 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <san...@us...> - 2011-08-06 13:30:21
|
Revision: 21380 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21380&view=rev Author: sandersson Date: 2011-08-06 13:30:14 +0000 (Sat, 06 Aug 2011) Log Message: ----------- Added Paths: ----------- trunk/qooxdoo-contrib/qooxdoo-rtl/Makefile trunk/qooxdoo-contrib/qooxdoo-rtl/branches/ trunk/qooxdoo-contrib/qooxdoo-rtl/branches/branch_1_4_x/ trunk/qooxdoo-contrib/qooxdoo-rtl/branches/branch_1_5_x/ trunk/qooxdoo-contrib/qooxdoo-rtl/tags/ trunk/qooxdoo-contrib/qooxdoo-rtl/tags/release_1_4_2/ trunk/qooxdoo-contrib/qooxdoo-rtl/tags/release_1_5/ trunk/qooxdoo-contrib/qooxdoo-rtl/trunk/ trunk/qooxdoo-contrib/qooxdoo-rtl/trunk/patch/ trunk/qooxdoo-contrib/qooxdoo-rtl/trunk/resource/ trunk/qooxdoo-contrib/qooxdoo-rtl/trunk/translation/ Removed Paths: ------------- trunk/qooxdoo-contrib/qooxdoo-rtl/patch/ trunk/qooxdoo-contrib/qooxdoo-rtl/resource/ trunk/qooxdoo-contrib/qooxdoo-rtl/translation/ Added: trunk/qooxdoo-contrib/qooxdoo-rtl/Makefile =================================================================== --- trunk/qooxdoo-contrib/qooxdoo-rtl/Makefile (rev 0) +++ trunk/qooxdoo-contrib/qooxdoo-rtl/Makefile 2011-08-06 13:30:14 UTC (rev 21380) @@ -0,0 +1,28 @@ +IS_WINDOWS = $(shell python -c "import sys; print (sys.platform[:3]=='win' or sys.platform[:6]=='cygwin')") + +ifeq ($(IS_WINDOWS), True) + ZIP_SUFFIX = zip +else + ZIP_SUFFIX = tar.gz +endif + +#download-1.4.2: qooxdoo-1.4.2-sdk +#qooxdoo-1.4.2-sdk: 1.4.2/qooxdoo-1.4.2-sdk.$(ZIP_SUFFIX) + +download-1.5: qooxdoo-1.5-sdk +qooxdoo-1.5-sdk: 1.5/qooxdoo-1.5-sdk.$(ZIP_SUFFIX) + +%.zip: + wget http://sourceforge.net/projects/qooxdoo/files/qooxdoo-current/$@/download + unzip $@ + +%.tar.gz: + wget http://sourceforge.net/projects/qooxdoo/files/qooxdoo-current/$@/download + tar xvfz $@ + +download-trunk: download-trunk + +download-trunk: + svn co https://qooxdoo.svn.sourceforge.net/svnroot/qooxdoo/trunk/qooxdoo trunk + svn up trunk + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <d_w...@us...> - 2011-08-05 08:22:42
|
Revision: 21379 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21379&view=rev Author: d_wagner Date: 2011-08-05 08:22:36 +0000 (Fri, 05 Aug 2011) Log Message: ----------- [BUG #5251] added resource dir Added Paths: ----------- trunk/qooxdoo-contrib/SmartTableModel/0.2/demo/searchAsYouType/source/resource/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hel...@us...> - 2011-08-04 20:10:37
|
Revision: 21378 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21378&view=rev Author: hellings Date: 2011-08-04 20:10:31 +0000 (Thu, 04 Aug 2011) Log Message: ----------- Added handling for no callback function given. Modified Paths: -------------- trunk/qooxdoo-contrib/ChromePlugin/trunk/source/class/chromeplugin/middleware/Service.js Property Changed: ---------------- trunk/qooxdoo-contrib/ChromePlugin/trunk/source/class/chromeplugin/middleware/Service.js Modified: trunk/qooxdoo-contrib/ChromePlugin/trunk/source/class/chromeplugin/middleware/Service.js =================================================================== --- trunk/qooxdoo-contrib/ChromePlugin/trunk/source/class/chromeplugin/middleware/Service.js 2011-08-04 17:41:38 UTC (rev 21377) +++ trunk/qooxdoo-contrib/ChromePlugin/trunk/source/class/chromeplugin/middleware/Service.js 2011-08-04 20:10:31 UTC (rev 21378) @@ -88,6 +88,8 @@ * background service implementation. */ var localcallback = function(returnz) { + // If there is no callback + if(!callback) return; // Now package up the returnz and return them returnz = [returnz]; // Get ready for .apply if(argz) Property changes on: trunk/qooxdoo-contrib/ChromePlugin/trunk/source/class/chromeplugin/middleware/Service.js ___________________________________________________________________ Deleted: svn:executable - * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cbo...@us...> - 2011-08-04 17:41:44
|
Revision: 21377 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21377&view=rev Author: cboulanger Date: 2011-08-04 17:41:38 +0000 (Thu, 04 Aug 2011) Log Message: ----------- Added import statement Modified Paths: -------------- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/application/Application.php Modified: trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/application/Application.php =================================================================== --- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/application/Application.php 2011-08-04 17:40:49 UTC (rev 21376) +++ trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/application/Application.php 2011-08-04 17:41:38 UTC (rev 21377) @@ -18,6 +18,7 @@ qcl_import( "qcl_access_model_User" ); // this imports all the other required models qcl_import( "qcl_application_ApplicationCache" ); +qcl_import( "qcl_server_Server" ); /** * Base class for applications. This class mainly provides access to the @@ -67,7 +68,7 @@ * such as database connectivity etc. * @var string */ - protected $iniPath = null; + protected $iniPath = "config/application.ini.php"; /** * The manager for the initial application configuration This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cbo...@us...> - 2011-08-04 17:40:56
|
Revision: 21376 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21376&view=rev Author: cboulanger Date: 2011-08-04 17:40:49 +0000 (Thu, 04 Aug 2011) Log Message: ----------- Revert back to most current version Modified Paths: -------------- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/event/message/Bus.php Modified: trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/event/message/Bus.php =================================================================== --- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/event/message/Bus.php 2011-08-04 15:45:00 UTC (rev 21375) +++ trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/event/message/Bus.php 2011-08-04 17:40:49 UTC (rev 21376) @@ -17,6 +17,7 @@ */ qcl_import("qcl_core_Object"); +qcl_import("qcl_data_store_keyvalue_Session"); /** * Message Bus @@ -67,7 +68,6 @@ * initialized during runtime. Filtering not yet supported, i.e. message name must * match the one that has been used when subscribing the message, i.e. no wildcards! * - * * @param string $filter * @param qcl_core_Object $subscriber * @param string $method Callback method of the subscriber @@ -78,8 +78,13 @@ { $this->raiseError("Invalid parameter."); } + + if ( ! method_exists( $subscriber, $method ) ) + { + throw new BadMethodCallException("Method $method does not exist on given object"); + } - $message_db = $this->messages; + $message_db =& $this->messages; /* * object id @@ -147,17 +152,29 @@ { return true; } - + /** - * Dispatches a message. Filtering not yet supported, i.e. message name must + * Publishes a message. Filtering not yet supported, i.e. message name must * match the one that has been used when subscribing the message, i.e. no wildcards! * * @param qcl_event_message_Message $message Message * @param mixed $data Data dispatched with message * @return void + * @deprecated Renamed to "publish" */ - public function dispatch ( qcl_event_message_Message $message ) + public function dispatch ( qcl_event_message_Message $message ) { + return $this->publish( $message ); + } + + /** + * Publishes a message. Wildcard support exists for local listeners only. + * @param qcl_event_message_Message $message Message + * @param mixed $data Data dispatched with message + * @return void + */ + public function publish( qcl_event_message_Message $message ) + { /* * message data */ @@ -183,22 +200,50 @@ * search message database */ $message_db = $this->messages; - $index = array_search ( $name, $message_db['filters'] ); - - /* - * call registered subscriber methods - */ - if ( $index !== false ) + if ( count ( $message_db['filters'] ) ) { - foreach ( $message_db['data'][$index] as $subscriberData ) + + $index = array_search ( $name, $message_db['filters'] ); + + /* + * call registered subscriber methods if found + */ + if ( $index !== false ) { - list( $subscriberId, $method ) = $subscriberData; - $subscriber = $this->getObjectById( $subscriberId ); - $subscriber->$method( $message ); + foreach ( $message_db['data'][$index] as $subscriberData ) + { + list( $subscriberId, $method ) = $subscriberData; + $subscriber = $this->getObjectById( $subscriberId ); + $subscriber->$method( $message ); + } } - return true; + + /* + * otherwise try the wildcard matching + */ + else + { + $index = 0; + foreach( $message_db['filters'] as $filter ) + { + $pos = strpos( $filter, "*" ); + if( substr( $name, 0, $pos ) == substr( $filter, 0, $pos ) ) + { + /* + * found, call subscribers + */ + foreach ( $message_db['data'][$index] as $subscriberData ) + { + list( $subscriberId, $method ) = $subscriberData; + $subscriber = $this->getObjectById( $subscriberId ); + $subscriber->$method( $message ); + } + } + $index++; + } + } } - + /** * Broadcast message to connected clients */ @@ -218,7 +263,8 @@ { /* * check if user of this session exists, otherwise - * delete the session + * delete the session. This cleans up the session/user data + * on-the-fly. */ try { @@ -240,6 +286,15 @@ continue; } + /* + * do not dispatch if the message should not go to anonymous users + * the client itself + */ + if( $message->isExcludeAnonymousUsers() and $userModel->isAnonymous() ) + { + continue; + } + /* * do not dispatch the message when one of the registered * callbacks returns false @@ -305,6 +360,7 @@ * @param string $name * @param mixed $data * @return bool Whether message was dispatched + * FIXME rename to "publishMessage" or remove */ public function dispatchMessage( $sender, $name, $data ) { @@ -324,6 +380,7 @@ * @param string $name * @param mixed $data * @return bool Whether message was dispatched + * @deprecated use publishClientMessage() instead */ public function dispatchClientMessage( $sender, $name, $data ) { @@ -333,8 +390,23 @@ { $message->setSender( $sender ); } - return $this->dispatch( $message ); + return $this->publish( $message ); } + + /** + * Shorthand method for publishing a message that will be forwarded + * to the client. + * @param qcl_core_Object $sender + * @param string $name + * @param mixed $data + * @return bool Whether message was dispatched + */ + public function publishClientMessage( $name, $data ) + { + qcl_import( "qcl_event_message_ClientMessage" ); + $message = new qcl_event_message_ClientMessage( $name, $data ); + return $this->publish( $message ); + } /** * Broadcasts a message to all connected clients. @@ -346,6 +418,8 @@ * @param bool $excludeOwnSession * Whether the current session should be excluded from the broadcast (Default: false). * @todo use into qcl_server_Response object + * @deprecated Use broadcast() instead + */ public function broadcastClientMessage ( $sender, $name, $data, $excludeOwnSession=false ) { @@ -359,11 +433,32 @@ } return $this->dispatch( $message ); } + + /** + * Broadcasts a message to all connected clients. + * @param mixed $message + * Message name or hash map of messages + * @param mixed $data + * Data dispatched with message + * @param mixed $acl + * Access control data + * @param bool $excludeOwnSession + * Whether the current session should be excluded from the broadcast (Default: false). + */ + public function broadcast( $name, $data, $aclData=null, $excludeOwnSession=false ) + { + qcl_import( "qcl_event_message_ClientMessage" ); + $message = new qcl_event_message_ClientMessage( $name, $data ); + $message->setBroadcast( true ); + $message->setExcludeOwnSession( $excludeOwnSession ); + $message->setAcl( $aclData ); + return $this->publish( $message ); + } /** * Returns broadcasted messages for the client with the given session * id. - * @param int $sessionId + * @param string $sessionId * @return array * */ @@ -389,12 +484,31 @@ * get name and data and delete message */ $messages = array(); + $channels = $this->getChannels(); + while ( $msgModel->loadNext() ) { - $messages[] = array( - 'name' => $msgModel->get( "name" ), - 'data' => unserialize( stripslashes( $msgModel->get("data") ) ) - ); + $channel = $msgModel->get( "name" ); + $data = $msgModel->get("data"); + /* + * check if channel is subscribed + * @todo this should be checked while dispatching and not + * while fetching! But the way it is set up requires the + * session active (since the subscribed channels are stored in + * the session). + */ + if ( array_search( $channel, $channels ) !== false ) + { + //$this->debug( "Sending message to $sessionId, channel $channel", __CLASS__, __LINE__ ); + $messages[] = array( + 'name' => $channel, + 'data' => unserialize( stripslashes( $data ) ) + ); + } + else + { + //$this->debug( "NOT sending message to $sessionId, channel $channel not in channel list " . implode(",",$channels), __CLASS__, __LINE__ ); + } $msgModel->delete(); } @@ -403,5 +517,66 @@ */ return $messages; } + + /** + * Get a list of channels that the client is subscribed to + * @return array + */ + public function getChannels() + { + $store = new qcl_data_store_keyvalue_Session(); + $key = __CLASS__ . "_channels"; + $channels = $store->has( $key ) ? $store->get($key) : array(); + return $channels; + } + + /** + * Adds the given channel to the list of channels that the + * client is listening to + * @param $name + */ + public function addChannel( $name ) + { + $store = new qcl_data_store_keyvalue_Session(); + $key = __CLASS__ . "_channels"; + $channels = $this->getChannels(); + $channels[] = $name; + $store->set($key, array_unique( $channels ) ); + //$this->debug( "Added channel $name for session " . $this->getApplication()->getAccessController()->getSessionId(), __CLASS__, __LINE__ ); + } + + /** + * Returns true if the channel of the given name is subscribed + * by the current user. + * @param string $name + * @return boolean + */ + public function isSubscribedChannel( $name ) + { + return in_array($name, $this->getChannels() ); + } + + /** + * Removes the given channel from the list of channels that the + * client is listening to + * @param $name + */ + public function removeChannel( $name ) + { + $store = new qcl_data_store_keyvalue_Session(); + $key = __CLASS__ . "_channels"; + $store->set($key, array_diff( $this->getChannels(), array( $name ) ) ); + //$this->debug( "Removed channel $name for session " . $this->getApplication()->getAccessController()->getSessionId(), __CLASS__, __LINE__ ); + } + + /** + * Removes all channels + */ + public function removeAllChannels() + { + $store = new qcl_data_store_keyvalue_Session(); + $key = __CLASS__ . "_channels"; + $store->delete($key); + } } ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <d_w...@us...> - 2011-08-04 15:45:06
|
Revision: 21375 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21375&view=rev Author: d_wagner Date: 2011-08-04 15:45:00 +0000 (Thu, 04 Aug 2011) Log Message: ----------- Fixed demo log access Modified Paths: -------------- trunk/qooxdoo-contrib/Simulator/trunk/tool/selenium/simulation/demobrowser/test_demobrowser.js Modified: trunk/qooxdoo-contrib/Simulator/trunk/tool/selenium/simulation/demobrowser/test_demobrowser.js =================================================================== --- trunk/qooxdoo-contrib/Simulator/trunk/tool/selenium/simulation/demobrowser/test_demobrowser.js 2011-08-03 17:55:43 UTC (rev 21374) +++ trunk/qooxdoo-contrib/Simulator/trunk/tool/selenium/simulation/demobrowser/test_demobrowser.js 2011-08-04 15:45:00 UTC (rev 21375) @@ -10,7 +10,7 @@ 'simulatorSvn' : '/home/dwagner/workspace/qooxdoo.contrib/Simulator', 'debug' : true, 'logAll' : false, - 'ignore' : 'data:Gears,showcase:Browser,widget:Iframe,test:Serialize,bom:Iframe,progressive:*,legacy:*', + 'ignore' : 'showcase:Browser,widget:Iframe,test:Serialize,bom:Iframe,progressive:*', 'sampleGlobalErrorLogging' : false, 'shutdownSample' : false, 'reloadBrowser' : false @@ -87,7 +87,7 @@ { var viewer = selenium.browserbot.getCurrentWindow().qx.core.Init.getApplication().viewer; var tree = viewer.tree; - items = tree.getItems(); + var items = tree.getItems(); for (var i=1; i<items.length; i++) { if (items[i].getParent().getLabel() == category) { if (items[i].getLabel() == sample) { @@ -108,7 +108,7 @@ { var viewer = selenium.browserbot.getCurrentWindow().qx.core.Init.getApplication().viewer; var tree = viewer.tree; - items = tree.getItems(); + var items = tree.getItems(); var samples = []; for (var i=1; i<items.length; i++) { if (items[i].getParent().getLabel() == category) { @@ -130,14 +130,16 @@ simulation.Simulation.prototype.sampleRunner = function(script) { var scriptCode = script ? script : runSample; + var nextSampleCategory = "unknown category;" + var nextSampleLabel = "unknown demo"; var skip = false; // If we have an ignore list, check if the next sample is in there. var ignore = this.ignore; if (ignore.length > 0 && scriptCode.indexOf('playNext') > 0 ) { try { - var nextSampleCategory = this.getEval(getNextSampleCategory, "Getting category of next sample"); - var nextSampleLabel = this.getEval(getNextSampleLabel, "Getting label of next sample"); + nextSampleCategory = this.getEval(getNextSampleCategory, "Getting category of next sample"); + nextSampleLabel = this.getEval(getNextSampleLabel, "Getting label of next sample"); // Category "Demos" means there's a category folder selected, // so look at the first sample inside. @@ -242,29 +244,11 @@ this.openLog(); print(category + " - " + currentSample + ": Processing log"); - var sampleLog = this.getEval(this.qxLog, "Getting log for sample " + category + " - " + currentSample); + var sampleLog = String(this.getEval(this.qxLog, "Getting log for sample " + category + " - " + currentSample)); - //this.log('Last loaded demo: ' + category + ' - ' + currentSample, "debug"); - - var expectedLogEntries = [ - "Load runtime", - "Main runtime", - "Finalize runtime" - ]; - - if (this.getConfigSetting("shutdownSample", false)) { - expectedLogEntries.push("ObjectRegistry: Disposed"); - } - - if (sampleLog) { - for (var i = 0, l = expectedLogEntries.length; i < l; i++) { - if (sampleLog.indexOf(expectedLogEntries[i]) < 0) { - errWarn = true; - } - } - } - else { + if (!sampleLog) { this.log("Unable to get log for sample " + category + "-" + currentSample, "error"); + return [category,currentSample]; } if (this.getConfigSetting("sampleGlobalErrorLogging")) { @@ -277,14 +261,13 @@ } } - //Packages.java.lang.Thread.sleep(120000); - // we're only interested in logs containing warnings or errors var isErrWarn = false; if (sampleLog.indexOf('level-warn') > 0 || sampleLog.indexOf('level-error') > 0) { this.log("Sample " + category + "-" + currentSample + " has incomplete log!","warn"); isErrWarn = true; } + if (isErrWarn || this.getConfigSetting("logAll")) { /* Selenium uses http get requests to pass messages to the server log. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <de...@us...> - 2011-08-03 17:55:48
|
Revision: 21374 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21374&view=rev Author: derrell Date: 2011-08-03 17:55:43 +0000 (Wed, 03 Aug 2011) Log Message: ----------- Do not allow a delay of zero Modified Paths: -------------- trunk/qooxdoo-contrib/RpcJs/trunk/demo/finch/bootstrap.js Modified: trunk/qooxdoo-contrib/RpcJs/trunk/demo/finch/bootstrap.js =================================================================== --- trunk/qooxdoo-contrib/RpcJs/trunk/demo/finch/bootstrap.js 2011-08-03 17:55:14 UTC (rev 21373) +++ trunk/qooxdoo-contrib/RpcJs/trunk/demo/finch/bootstrap.js 2011-08-03 17:55:43 UTC (rev 21374) @@ -27,6 +27,10 @@ window.setTimeout = function (fn,delay) { + if (delay === 0) + { + delay = 1; + } var id = counter++; ids[id] = new JavaAdapter(java.util.TimerTask,{run: fn}); timer.schedule(ids[id],delay); @@ -45,6 +49,10 @@ window.setInterval = function (fn,delay) { + if (delay === 0) + { + delay = 1; + } var id = counter++; ids[id] = new JavaAdapter(java.util.TimerTask,{run: fn}); timer.schedule(ids[id],delay,delay); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <de...@us...> - 2011-08-03 17:55:20
|
Revision: 21373 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21373&view=rev Author: derrell Date: 2011-08-03 17:55:14 +0000 (Wed, 03 Aug 2011) Log Message: ----------- Ensure that the handler for an Input object is loaded and available Modified Paths: -------------- trunk/qooxdoo-contrib/UploadWidget/trunk/source/class/uploadwidget/UploadButton.js Modified: trunk/qooxdoo-contrib/UploadWidget/trunk/source/class/uploadwidget/UploadButton.js =================================================================== --- trunk/qooxdoo-contrib/UploadWidget/trunk/source/class/uploadwidget/UploadButton.js 2011-08-01 20:32:41 UTC (rev 21372) +++ trunk/qooxdoo-contrib/UploadWidget/trunk/source/class/uploadwidget/UploadButton.js 2011-08-03 17:55:14 UTC (rev 21373) @@ -21,6 +21,12 @@ ************************************************************************ */ +/* +The 'change' event on the input field requires that this handler be available: +#use(qx.event.handler.Input) +*/ + + /** * An upload button which allows selection of a file through the browser fileselector. * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cbo...@us...> - 2011-08-01 20:32:51
|
Revision: 21372 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21372&view=rev Author: cboulanger Date: 2011-08-01 20:32:41 +0000 (Mon, 01 Aug 2011) Log Message: ----------- Added phpmailer library (replaces qcl_util_system_Mail in the trunk) Added Paths: ----------- trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/ trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/LICENSE trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/README trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/aboutus.html trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/changelog.txt trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/class.phpmailer.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/class.pop3.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/class.smtp.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/extras/ trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/extras/htmlfilter.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/ trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-ar.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-br.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-ca.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-ch.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-cz.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-de.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-dk.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-es.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-et.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-fi.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-fo.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-fr.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-hu.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-it.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-ja.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-nl.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-no.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-pl.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-ro.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-ru.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-se.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-tr.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-zh.php trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/language/phpmailer.lang-zh_cn.php Added: trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/LICENSE =================================================================== --- trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/LICENSE (rev 0) +++ trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/LICENSE 2011-08-01 20:32:41 UTC (rev 21372) @@ -0,0 +1,504 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + <one line to give the library's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + <signature of Ty Coon>, 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + Added: trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/README =================================================================== --- trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/README (rev 0) +++ trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/README 2011-08-01 20:32:41 UTC (rev 21372) @@ -0,0 +1,218 @@ +/******************************************************************* +* The http://phpmailer.codeworxtech.com/ website now carries a few * +* advertisements through the Google Adsense network. Please visit * +* the advertiser sites and help us offset some of our costs. * +* Thanks .... * +********************************************************************/ + +PHPMailer +Full Featured Email Transfer Class for PHP +========================================== + +Version 5.0.0 (April 02, 2009) + +With the release of this version, we are initiating a new version numbering +system to differentiate from the PHP4 version of PHPMailer. + +Most notable in this release is fully object oriented code. + +We now have available the PHPDocumentor (phpdocs) documentation. This is +separate from the regular download to keep file sizes down. Please see the +download area of http://phpmailer.codeworxtech.com. + +We also have created a new test script (see /test_script) that you can use +right out of the box. Copy the /test_script folder directly to your server (in +the same structure ... with class.phpmailer.php and class.smtp.php in the +folder above it. Then launch the test script with: +http://www.yourdomain.com/phpmailer/test_script/index.php +from this one script, you can test your server settings for mail(), sendmail (or +qmail), and SMTP. This will email you a sample email (using contents.html for +the email body) and two attachments. One of the attachments is used as an inline +image to demonstrate how PHPMailer will automatically detect if attachments are +the same source as inline graphics and only include one version. Once you click +the Submit button, the results will be displayed including any SMTP debug +information and send status. We will also display a version of the script that +you can cut and paste to include in your projects. Enjoy! + +Version 2.3 (November 08, 2008) + +We have removed the /phpdoc from the downloads. All documentation is now on +the http://phpmailer.codeworxtech.com website. + +The phpunit.php has been updated to support PHP5. + +For all other changes and notes, please see the changelog. + +Donations are accepted at PayPal with our id "pa...@wo...". + +Version 2.2 (July 15 2008) + +- see the changelog. + +Version 2.1 (June 04 2008) + +With this release, we are announcing that the development of PHPMailer for PHP5 +will be our focus from this date on. We have implemented all the enhancements +and fixes from the latest release of PHPMailer for PHP4. + +Far more important, though, is that this release of PHPMailer (v2.1) is +fully tested with E_STRICT error checking enabled. + +** NOTE: WE HAVE A NEW LANGUAGE VARIABLE FOR DIGITALLY SIGNED S/MIME EMAILS. + IF YOU CAN HELP WITH LANGUAGES OTHER THAN ENGLISH AND SPANISH, IT WOULD BE + APPRECIATED. + +We have now added S/MIME functionality (ability to digitally sign emails). +BIG THANKS TO "sergiocambra" for posting this patch back in November 2007. +The "Signed Emails" functionality adds the Sign method to pass the private key +filename and the password to read it, and then email will be sent with +content-type multipart/signed and with the digital signature attached. + +A quick note on E_STRICT: + +- In about half the test environments the development version was subjected + to, an error was thrown for the date() functions (used at line 1565 and 1569). + This is NOT a PHPMailer error, it is the result of an incorrectly configured + PHP5 installation. The fix is to modify your 'php.ini' file and include the + date.timezone = America/New York + directive, (for your own server timezone) +- If you do get this error, and are unable to access your php.ini file, there is + a workaround. In your PHP script, add + date_default_timezone_set('America/Toronto'); + + * do NOT try to use + $myVar = date_default_timezone_get(); + as a test, it will throw an error. + +We have also included more example files to show the use of "sendmail", "mail()", +"smtp", and "gmail". + +We are also looking for more programmers to join the volunteer development team. +If you have an interest in this, please let us know. + +Enjoy! + + +Version 2.1.0beta1 & beta2 + +please note, this is BETA software +** DO NOT USE THIS IN PRODUCTION OR LIVE PROJECTS +INTENDED STRICTLY FOR TESTING + +** NOTE: + +As of November 2007, PHPMailer has a new project team headed by industry +veteran Andy Prevost (codeworxtech). The first release in more than two +years will focus on fixes, adding ease-of-use enhancements, provide +basic compatibility with PHP4 and PHP5 using PHP5 backwards compatibility +features. A new release is planned before year-end 2007 that will provide +full compatiblity with PHP4 and PHP5, as well as more bug fixes. + +We are looking for project developers to assist in restoring PHPMailer to +its leadership position. Our goals are to simplify use of PHPMailer, provide +good documentation and examples, and retain backward compatibility to level +1.7.3 standards. + +If you are interested in helping out, visit http://sourceforge.net/projects/phpmailer +and indicate your interest. + +** + +http://phpmailer.sourceforge.net/ + +This software is licenced under the LGPL. Please read LICENSE for information on the +software availability and distribution. + +Class Features: +- Send emails with multiple TOs, CCs, BCCs and REPLY-TOs +- Redundant SMTP servers +- Multipart/alternative emails for mail clients that do not read HTML email +- Support for 8bit, base64, binary, and quoted-printable encoding +- Uses the same methods as the very popular AspEmail active server (COM) component +- SMTP authentication +- Native language support +- Word wrap, and more! + +Why you might need it: + +Many PHP developers utilize email in their code. The only PHP function +that supports this is the mail() function. However, it does not expose +any of the popular features that many email clients use nowadays like +HTML-based emails and attachments. There are two proprietary +development tools out there that have all the functionality built into +easy to use classes: AspEmail(tm) and AspMail. Both of these +programs are COM components only available on Windows. They are also a +little pricey for smaller projects. + +Since I do Linux development I�ve missed these tools for my PHP coding. +So I built a version myself that implements the same methods (object +calls) that the Windows-based components do. It is open source and the +LGPL license allows you to place the class in your proprietary PHP +projects. + + +Installation: + +Copy class.phpmailer.php into your php.ini include_path. If you are +using the SMTP mailer then place class.smtp.php in your path as well. +In the language directory you will find several files like +phpmailer.lang-en.php. If you look right before the .php extension +that there are two letters. These represent the language type of the +translation file. For instance "en" is the English file and "br" is +the Portuguese file. Chose the file that best fits with your language +and place it in the PHP include path. If your language is English +then you have nothing more to do. If it is a different language then +you must point PHPMailer to the correct translation. To do this, call +the PHPMailer SetLanguage method like so: + +// To load the Portuguese version +$mail->SetLanguage("br", "/optional/path/to/language/directory/"); + +That's it. You should now be ready to use PHPMailer! + + +A Simple Example: + +<?php +require("class.phpmailer.php"); + +$mail = new PHPMailer(); + +$mail->IsSMTP(); // set mailer to use SMTP +$mail->Host = "smtp1.example.com;smtp2.example.com"; // specify main and backup server +$mail->SMTPAuth = true; // turn on SMTP authentication +$mail->Username = "jswan"; // SMTP username +$mail->Password = "secret"; // SMTP password + +$mail->From = "fr...@ex..."; +$mail->FromName = "Mailer"; +$mail->AddAddress("jo...@ex...", "Josh Adams"); +$mail->AddAddress("el...@ex..."); // name is optional +$mail->AddReplyTo("in...@ex...", "Information"); + +$mail->WordWrap = 50; // set word wrap to 50 characters +$mail->AddAttachment("/var/tmp/file.tar.gz"); // add attachments +$mail->AddAttachment("/tmp/image.jpg", "new.jpg"); // optional name +$mail->IsHTML(true); // set email format to HTML + +$mail->Subject = "Here is the subject"; +$mail->Body = "This is the HTML message body <b>in bold!</b>"; +$mail->AltBody = "This is the body in plain text for non-HTML mail clients"; + +if(!$mail->Send()) +{ + echo "Message could not be sent. <p>"; + echo "Mailer Error: " . $mail->ErrorInfo; + exit; +} + +echo "Message has been sent"; +?> + +CHANGELOG + +See ChangeLog.txt + +Download: http://sourceforge.net/project/showfiles.php?group_id=26031 + +Andy Prevost Added: trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/aboutus.html =================================================================== --- trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/aboutus.html (rev 0) +++ trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/aboutus.html 2011-08-01 20:32:41 UTC (rev 21372) @@ -0,0 +1,169 @@ +<html> +<head> +<style> +body, p, li, td { + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; +} +ul { + margin:0 0px 0 15px; + padding:0; +} +div.width { + width: 760px; + text-align: left; +} +</style> +<script> +<!-- +var popsite="http://phpmailer.codeworxtech.com" +var withfeatures="width=960,height=760,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0" +var once_per_session=0 +function get_cookie(Name) { + var search = Name + "=" + var returnvalue = ""; + if (document.cookie.length > 0) { + offset = document.cookie.indexOf(search) + if (offset != -1) { // if cookie exists + offset += search.length + // set index of beginning of value + end = document.cookie.indexOf(";", offset); + // set index of end of cookie value + if (end == -1) + end = document.cookie.length; + returnvalue=unescape(document.cookie.substring(offset, end)) + } + } + return returnvalue; +} +function loadornot(){ + if (get_cookie('popsite')=='') { + loadpopsite() + document.cookie="popsite=yes" + } +} +function loadpopsite(){ + win2=window.open(popsite,"",withfeatures) + win2.blur() + window.focus() +} +if (once_per_session==0) { + loadpopsite() +} else { + loadornot() +} +--> +</script> +</head> +<body> +<center> +<div class="width"> +<hr> +The http://phpmailer.codeworxtech.com/ website now carries a few +advertisements through the Google Adsense network to help offset +some of our costs.<br /> +Thanks ....<br /> +<hr> +<p>PHPMailer is the world's leading email transport class and downloaded an +average of more than 32,000 each month. In March 2009, PHPMailer was downloaded +more than 31,000 times -- that's an average of 1,000 downloads daily. Our thanks +to our new users and loyal users. We understand you have many choices available +to select from and we thank you for select our fast and stable tool for your +website and projects.</p> +<p>Credits:<br> +PHPMailer's original founder is Brent Matzelle. The current team is:<br> +Project Administrator: Andy Prevost (codeworxtech), +<a href="mailto:cod...@us..."> +co...@us...</a><br> +Author: Andy Prevost (codeworxtech) cod...@us...<br> +Author: Marcus Bointon (coolbru) <a href="mailto:co...@us..."> +co...@us...</a></p> +<p>PHPMailer is used in many projects ranging from Open Source to commercial +packages. Our LGPL licensing terms are very flexible and allow for including +PHPMailer to enhance projects of all types. If you discover PHPMailer being used +in a project, please let us know about it.</p> +<p><strong>WHY USE OUR TOOLS & WHAT'S IN IT FOR YOU?</strong></p> +<p>A valid question. We're developers too. We've been writing software, primarily for the internet, for more than 15 years. Along the way, there are two major things that had tremendous impact of our company: PHP and Open Source. PHP is without doubt the most popular platform for the internet. There has been more progress in this area of technology because of Open Source software than in any other IT segment. We have used many open source tools, some as learning tools, some as components in projects we were working on. To us, it's not about popularity ... we're committed to robust, stable, and efficient tools you can use to get your projects in your user's hands quickly. So the shorter answer: what's in it for you? rapid development and rapid deployment without fuss and with straight forward open source licensing.</p> +<p>Now, here's our team:</p> +<table width="100%" cellpadding="5" style="border-collapse: collapse" border="1"> + <tr> + <th><b>About Andy Prevost, AKA "codeworxtech".</b></th> + <th><b>About Marcus Bointon, AKA "coolbru".</b></th> + </tr> + <tr> + <td width="50%" valign="top"> + <p><a href="http://www.codeworxtech.com">www.codeworxtech.com</a> for more information.<br> + Web design, web applications, forms: <a href="http://www.worxstudio.com">WorxStudio.com</a><br /> + </p> + <p>Our company, <strong>Worx International Inc.</strong>, is the publisher of several Open Source applications and developer tools as well as several commercial PHP applications. The Open Source applications are ttCMS and DCP Portal. The Open Source developer tools include QuickComponents (QuickSkin and QuickCache) and now PHPMailer. + We have staff and offices in the United States, Caribbean, the Middle + East, and our primary development center in Canada. Our company is represented by + agents and resellers globally.</p> + <p><strong>Worx International Inc.</strong> is at the forefront of developing PHP applications. Our staff are all Zend Certified university educated and experts at object oriented programming. While <strong>Worx International Inc.</strong> can handle any project from trouble shooting programs written by others all the way to finished mission-critical applications, we specialize in taking projects from inception all the way through to implementation - on budget, and on time. If you need help with your projects, we're the team to get it done right at a reasonable price.</p> + <p>Over the years, there have been a number of tools that have been constant favorites in all of our projects. We have become the project administrators for most of these tools.</p> + <p>Our developer tools are all Open Source. Here's a brief description:</p> + <ul> + <li><span style="background-color: #FFFF00"><strong>PHPMailer</strong></span>. Originally authored by Brent Matzelle, PHPMailer is the leading "email transfer class" for PHP. PHPMailer is downloaded more than + 26000 times each and every month by developers looking for a fast, stable, simple email solution. We used it ourselves for years as our favorite tool. It's always been small (the entire footprint is + less than 100 Kb), stable, and as complete a solution as you can find. + Other tools are nowhere near as simple. Our thanks to Brent Matzelle for this superb tool - our commitment is to keep it lean, keep it focused, and compliant with standards. Visit the PHPMailer website at + <a href="http://phpmailer.codeworxtech.com/">http://phpmailer.codeworxtech.com/</a>. <br /> + Please note: <strong>all of our focus is now on the PHPMailer for PHP5.</strong><br /> + <span style="background-color: #FFFF00">PS. While you are at it, please visit our sponsor's sites, click on their ads. + It helps offset some of our costs.</span><br /> + Want to help? We're looking for progressive developers to join our team of volunteer professionals working on PHPMailer. Our entire focus is on PHPMailer + for PHP5. If you are interested, let us know.<br /> + <br /> + </li> + <li><strong><span style="background-color: #FFFF00">QuickCache</span></strong>. Originally authored by Jean Pierre Deckers as jpCache, QuickCache is an HTTP OpCode caching strategy that works on your entire site with only one line of code at the top of your script. The cached pages can be stored as files or as database objects. The benefits are absolutely astounding: bandwidth savings of up to 80% and screen display times increased by 8 - 10x. Visit the QuickCache website at + <a href="http://quickcache.codeworxtech.com/">http://quickcache.codeworxtech.com/</a>.<br /> + <br /> + </li> + <li><strong><span style="background-color: #FFFF00">QuickSkin</span></strong>. Originally authored by Philipp v. Criegern and named "SmartTemplate". The project was taken over by Manuel 'EndelWar' Dalla Lana and now by "codeworxtech". QuickSkin is one of the truly outstanding templating engines available, but has always been confused with Smarty Templating Engine. QuickSkin is even more relevant today than when it was launched. It's a small footprint with big impact on your projects. It features a built in caching technology, token based substitution, and works on the concept of one single HTML file as the template. The HTML template file can contain variable information making it one small powerful tool for your developer tool kit. Visit the QuickSkin website at + <a href="http://quickskin.codeworxtech.com/">http://quickskin.codeworxtech.com/</a>.<br /> + <br /> + </li> + </ul> + <p>We're committed to PHP and to the Open Source community.</p> + <p>Opportunities with <strong>Worx International Inc.</strong>:</p> + <ul> + <li><span style="background-color: #FFFF00">Resellers/Agents</span>: We're always interested in talking with companies that + want to represent + <strong>Worx International Inc.</strong> in their markets. We also have private label programs for our commercial products (in certain circumstances).</li> + <li>Programmers/Developers: We are usually fully staffed, however, if you would like to be considered for a career with + <strong>Worx International Inc.</strong>, we would be pleased to hear from you.<br /> + A few things to note:<br /> + <ul> + <li>experience level does not matter: from fresh out of college to multi-year experience - it's your + creative mind and a positive attitude we want</li> + <li>if you contact us looking for employment, include a cover letter, indicate what type of work/career you are looking for and expected compensation</li> + <li>if you are representing someone else looking for work, do not contact us. We have an exclusive relationship with a recruiting partner already and not interested in altering the arrangement. We will not hire your candidate under any circumstances unless they wish to approach us individually.</li> + <li>any contact that ignores any of these points will be discarded</li> + </ul></li> + <li>Affiliates/Partnerships: We are interested in partnering with other firms who are leaders in their field. We clearly understand that successful companies are built on successful relationships in all industries world-wide. We currently have innovative relationships throughout the world that are mutually beneficial. Drop us a line and let's talk.</li> + </ul> + Regards,<br /> + Andy Prevost (aka, codeworxtech)<br /> + <a href="mailto:cod...@us...">cod...@us...</a><br /> + <br /> + We now also offer website design. hosting, and remote forms processing. Visit <a href="http://www.worxstudio.com/" target="_blank">WorxStudio.com</a> for more information.<br /> + </td> + <td width="50%" valign="top"> + <p>Marcus is the technical director of <a href="http://www.synchromedia.co.uk/">Synchromedia Limited</a>, a UK-based company providing online business services. Synchromedia's main services are:</p> + <h2>Smartmessages.net</h2> + <p><a href="https://www.smartmessages.net/"><img src="http://www.synchromedia.co.uk/uploads/images/smlogo.gif" width="292" height="48" alt="Smartmessages.net logo" /><br />Smartmessages.net</a> is Synchromedia's large-scale mailing list management system, providing email delivery services for a wide range of businesses, from sole traders to corporates. + We pride ourselves on personal service, and realise that every one of your subscribers is a precious asset to be handled with care. + We provide fast, reliable, high-volume delivery (some of our customers have lists of more than 1,000,000 subscribers) with fine-grained tracking while ensuring you stay fully compliant with UK, EC and US data protection laws. Smartmessages of course uses PHPMailer at its heart!</p> + <h2>info@hand</h2> + <p><a href="http://www.synchromedia.co.uk/what-we-do/info-at-hand-crm/"><img src="http://www.synchromedia.co.uk/uploads/images/infoathand-large.png" width="250" height="40" alt="info@hand logo" /></a><br />Synchromedia is the official UK distributor of <a href="http://www.thelongreach.com/">info@hand</a>, a class-leading open-source web-based CRM system. We provide licenses, hosting, planning, support and training for this very fully-featured system at very competitive prices. info@hand also uses PHPMailer!</p> + <h2>How can we help you?</h2> + <p>In addition to our headline services, we also provide consulting, development, hosting and sysadmin services, so if you just need a simple web hosting package, we can do that too. Not surprisingly, we know rather a lot about email, so you can talk to us about that too.</p> + <p>Please <a href="http://www.synchromedia.co.uk/about-us/contact-us/">contact us</a> if you'd like to know more.</p> + <p>Marcus is a regular attendee at <a href="http://www.phplondon.org/">PHP London</a>, and occasionally speaks on email at technical conferences.</p> + </td> + </tr> +</table> +</div> +</center> +</body> +</html> Added: trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/changelog.txt =================================================================== --- trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/changelog.txt (rev 0) +++ trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/phpmailer/changelog.txt 2011-08-01 20:32:41 UTC (rev 21372) @@ -0,0 +1,415 @@ +ChangeLog + +NOTE: THIS VERSION OF PHPMAILER IS DESIGNED FOR PHP5/PHP6. + IT WILL NOT WORK WITH PHP4. + +Version 5.2 (July 19, 2011) +* protected MIME body and header +* better DKIM DNS Resource Record support +* better aly handling +* htmlfilter class added to extras +* moved to Apache Extras + +Version 5.1 (October 20, 2009) +* fixed filename issue with AddStringAttachment (thanks to Tony) +* fixed "SingleTo" property, now works with Senmail, Qmail, and SMTP in + addition to PHP mail() +* added DKIM digital signing functionality + New properties: + - DKIM_domain (sets the domain name) + - DKIM_private (holds DKIM private key) + - DKIM_passphrase (holds your DKIM passphrase) + - DKIM_selector (holds the DKIM "selector") + - DKIM_identity (holds the identifying email address) +* added callback function support + - callback function parameters include: + result, to, cc, bcc, subject and body + * see the test/test_callback.php file for usage. +* added "auto" identity functionality + - can automatically add: + - Return-path (if Sender not set) + - Reply-To (if ReplyTo not set) + - can be disabled: + - $mail->SetFrom('you...@yo...','First Last',false); + - or by adding the $mail->Sender and/or $mail->ReplyTo properties + Note: "auto" identity added to help with emails ending up in spam + or junk boxes because of missing headers + +Version 5.0.2 (May 24, 2009) +* Fix for missing attachments when inline graphics are present +* Fix for missing Cc in header when using SMTP (mail was sent, + but not displayed in header -- Cc receiver only saw email To: + line and no Cc line, but did get the email (To receiver + saw same) + +Version 5.0.1 (April 05, 2009) +* Temporary fix for missing attachments + +Version 5.0.0 (April 02, 2009) + +* With the release of this version, we are initiating a new version numbering + system to differentiate from the PHP4 version of PHPMailer. +* Most notable in this release is fully object oriented code. +class.smtp.php: +* Refactored class.smtp.php to support new exception handling + code size reduced from 29.2 Kb to 25.6 Kb +* Removed unnecessary functions from class.smtp.php: + public function Expand($name) { + public function Help($keyword="") { + public function Noop() { + public function Send($from) { + public function SendOrMail($from) { + public function Verify($name) { +class.phpmailer.php: +* Refactored class.phpmailer.php with new exception handling +* Changed processing functionality of Sendmail and Qmail so they cannot be + inadvertently used +* removed getFile() function, just became a simple wrapper for + file_get_contents() +* added check for PHP version (will gracefully exit if not at least PHP 5.0) +class.phpmailer.php enhancements +* enhanced code to check if an attachment source is the same as an embedded or + inline graphic source to eliminate duplicate attachments +New /test_script +* We have written a test script you can use to test the script as part of your + installation. Once you press submit, the test script will send a multi-mime + email with either the message you type in or an HTML email with an inline + graphic. Two attachments are included in the email (one of the attachments + is also the inline graphic so you can see that only one copy of the graphic + is sent in the email). The test script will also display the functional + script that you can copy/paste to your editor to duplicate the functionality. +New examples +* All new examples in both basic and advanced modes. Advanced examples show + Exception handling. +PHPDocumentator (phpdocs) documentation for PHPMailer version 5.0.0 +* all new documentation + +Please note: the website has been updated to reflect the changes in PHPMailer +version 5.0.0. http://phpmailer.codeworxtech.com/ + +Version 2.3 (November 06, 2008) + +* added Arabic language (many thanks to Bahjat Al Mostafa) +* removed English language from language files and made it a default within + class.phpmailer.php - if no language is found, it will default to use + the english language translation +* fixed public/private declarations +* corrected line 1728, $basedir to $directory +* added $sign_cert_file to avoid improper duplicate use of $sign_key_file +* corrected $this->Hello on line 612 to $this->Helo +* changed default of $LE to "\r\n" to comply with RFC 2822. Can be set by the user + if default is not acceptable +* removed trim() from return results in EncodeQP +* /test and three files it contained are removed from version 2.3 +* fixed phpunit.php for compliance with PHP5 +* changed $this->AltBody = $textMsg; to $this->AltBody = html_entity_decode($textMsg); +* We have removed the /phpdoc from the downloads. All documentation is now on + the http://phpmailer.codeworxtech.com website. + +Version 2.2.1 () July 19 2008 + +* fixed line 1092 in class.smtp.php (my apologies, error on my part) + +Version 2.2 () July 15 2008 + +* Fixed redirect issue (display of UTF-8 in thank you redirect) +* fixed error in getResponse function declaration (class.pop3.php) +* PHPMailer now PHP6 compliant +* fixed line 1092 in class.smtp.php (endless loop from missing = sign) + +Version 2.1 (Wed, June 04 2008) + +** NOTE: WE HAVE A NEW LANGUAGE VARIABLE FOR DIGITALLY SIGNED S/MIME EMAILS. + IF YOU CAN HELP WITH LANGUAGES OTHER THAN ENGLISH AND SPANISH, IT WOULD BE + APPRECIATED. + +* added S/MIME functionality (ability to digitally sign emails) + BIG THANKS TO "sergiocambra" for posting this patch back in November 2007. + The "Signed Emails" functionality adds the Sign method to pass the private key + filename and the password to read it, and then email will be sent with + content-type multipart/signed and with the digital signature attached. +* fully compatible with E_STRICT error level + - Please note: + In about half the test environments this development version was subjected + to, an error was thrown for the date() functions used (line 1565 and 1569). + This is NOT a PHPMailer error, it is the result of an incorrectly configured + PHP5 installation. The fix is to modify your 'php.ini' file and include the + date.timezone = America/New York + directive, to your own server timezone + - If you do get this error, and are unable to access your php.ini file: + In your PHP script, add + date_default_timezone_set('America/Toronto'); + - do not try to use + $myVar = date_default_timezone_get(); + as a test, it will throw an error. +* added ability to define path (mainly for embedded im... [truncated message content] |
From: <cbo...@us...> - 2011-08-01 19:09:37
|
Revision: 21371 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21371&view=rev Author: cboulanger Date: 2011-08-01 19:09:31 +0000 (Mon, 01 Aug 2011) Log Message: ----------- Locally adding Github API classes; ignore in SVN Property Changed: ---------------- trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib/ Property changes on: trunk/qooxdoo-contrib/qcl-php/0.2/services/class/qcl/lib ___________________________________________________________________ Added: svn:ignore + Github This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cbo...@us...> - 2011-08-01 18:45:46
|
Revision: 21370 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21370&view=rev Author: cboulanger Date: 2011-08-01 18:45:40 +0000 (Mon, 01 Aug 2011) Log Message: ----------- Locally adding Github API classes ignore in SVN Property Changed: ---------------- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/ Property changes on: trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib ___________________________________________________________________ Added: svn:ignore + Github This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cbo...@us...> - 2011-07-31 22:05:24
|
Revision: 21369 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21369&view=rev Author: cboulanger Date: 2011-07-31 22:05:14 +0000 (Sun, 31 Jul 2011) Log Message: ----------- Added phpmailer class in qcl/lib/phpmailer. This replaces the qcl_util_system_Mail class, which had lots of issues. Please use the phpmailer class instead. Modified Paths: -------------- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/util/system/Mail.php Added Paths: ----------- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/html2text/ trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/html2text/class.html2text.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/ trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/LICENSE trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/README trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/aboutus.html trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/changelog.txt trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/class.phpmailer.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/class.pop3.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/class.smtp.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/extras/ trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/extras/htmlfilter.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/ trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-ar.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-br.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-ca.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-ch.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-cz.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-de.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-dk.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-es.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-et.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-fi.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-fo.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-fr.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-hu.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-it.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-ja.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-nl.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-no.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-pl.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-ro.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-ru.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-se.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-tr.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-zh.php trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/language/phpmailer.lang-zh_cn.php Added: trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/html2text/class.html2text.php =================================================================== --- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/html2text/class.html2text.php (rev 0) +++ trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/html2text/class.html2text.php 2011-07-31 22:05:14 UTC (rev 21369) @@ -0,0 +1,489 @@ +<?php + +/************************************************************************* + * * + * class.html2text.inc * + * * + ************************************************************************* + * * + * Converts HTML to formatted plain text * + * * + * Copyright (c) 2005-2007 Jon Abernathy <jo...@ch...> * + * All rights reserved. * + * * + * This script is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * The GNU General Public License can be found at * + * http://www.gnu.org/copyleft/gpl.html. * + * * + * This script is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * Author(s): Jon Abernathy <jo...@ch...> * + * * + * Last modified: 08/08/07 * + * * + *************************************************************************/ + + +/** + * Takes HTML and converts it to formatted, plain text. + * + * Thanks to Alexander Krug (http://www.krugar.de/) to pointing out and + * correcting an error in the regexp search array. Fixed 7/30/03. + * + * Updated set_html() function's file reading mechanism, 9/25/03. + * + * Thanks to Joss Sanglier (http://www.dancingbear.co.uk/) for adding + * several more HTML entity codes to the $search and $replace arrays. + * Updated 11/7/03. + * + * Thanks to Darius Kasperavicius (http://www.dar.dar.lt/) for + * suggesting the addition of $allowed_tags and its supporting function + * (which I slightly modified). Updated 3/12/04. + * + * Thanks to Justin Dearing for pointing out that a replacement for the + * <TH> tag was missing, and suggesting an appropriate fix. + * Updated 8/25/04. + * + * Thanks to Mathieu Collas (http://www.myefarm.com/) for finding a + * display/formatting bug in the _build_link_list() function: email + * readers would show the left bracket and number ("[1") as part of the + * rendered email address. + * Updated 12/16/04. + * + * Thanks to Wojciech Bajon (http://histeria.pl/) for submitting code + * to handle relative links, which I hadn't considered. I modified his + * code a bit to handle normal HTTP links and MAILTO links. Also for + * suggesting three additional HTML entity codes to search for. + * Updated 03/02/05. + * + * Thanks to Jacob Chandler for pointing out another link condition + * for the _build_link_list() function: "https". + * Updated 04/06/05. + * + * Thanks to Marc Bertrand (http://www.dresdensky.com/) for + * suggesting a revision to the word wrapping functionality; if you + * specify a $width of 0 or less, word wrapping will be ignored. + * Updated 11/02/06. + * + * *** Big housecleaning updates below: + * + * Thanks to Colin Brown (http://www.sparkdriver.co.uk/) for + * suggesting the fix to handle </li> and blank lines (whitespace). + * Christian Basedau (http://www.movetheweb.de/) also suggested the + * blank lines fix. + * + * Special thanks to Marcus Bointon (http://www.synchromedia.co.uk/), + * Christian Basedau, Norbert Laposa (http://ln5.co.uk/), + * Bas van de Weijer, and Marijn van Butselaar + * for pointing out my glaring error in the <th> handling. Marcus also + * supplied a host of fixes. + * + * Thanks to Jeffrey Silverman (http://www.newtnotes.com/) for pointing + * out that extra spaces should be compressed--a problem addressed with + * Marcus Bointon's fixes but that I had not yet incorporated. + * + * Thanks to Daniel Schledermann (http://www.typoconsult.dk/) for + * suggesting a valuable fix with <a> tag handling. + * + * Thanks to Wojciech Bajon (again!) for suggesting fixes and additions, + * including the <a> tag handling that Daniel Schledermann pointed + * out but that I had not yet incorporated. I haven't (yet) + * incorporated all of Wojciech's changes, though I may at some + * future time. + * + * *** End of the housecleaning updates. Updated 08/08/07. + * + * @author Jon Abernathy <jo...@ch...> + * @version 1.0.0 + * @since PHP 4.0.2 + */ +class html2text +{ + + /** + * Contains the HTML content to convert. + * + * @var string $html + * @access public + */ + var $html; + + /** + * Contains the converted, formatted text. + * + * @var string $text + * @access public + */ + var $text; + + /** + * Maximum width of the formatted text, in columns. + * + * Set this value to 0 (or less) to ignore word wrapping + * and not constrain text to a fixed-width column. + * + * @var integer $width + * @access public + */ + var $width = 70; + + /** + * List of preg* regular expression patterns to search for, + * used in conjunction with $replace. + * + * @var array $search + * @access public + * @see $replace + */ + var $search = array( + "/\r/", // Non-legal carriage return + "/[\n\t]+/", // Newlines and tabs + '/[ ]{2,}/', // Runs of spaces, pre-handling + '/<script[^>]*>.*?<\/script>/i', // <script>s -- which strip_tags supposedly has problems with + '/<style[^>]*>.*?<\/style>/i', // <style>s -- which strip_tags supposedly has problems with + //'/<!-- .* -->/', // Comments -- which strip_tags might have problem a with + '/<h[123][^>]*>(.*?)<\/h[123]>/ie', // H1 - H3 + '/<h[456][^>]*>(.*?)<\/h[456]>/ie', // H4 - H6 + '/<p[^>]*>/i', // <P> + '/<br[^>]*>/i', // <br> + '/<b[^>]*>(.*?)<\/b>/ie', // <b> + '/<strong[^>]*>(.*?)<\/strong>/ie', // <strong> + '/<i[^>]*>(.*?)<\/i>/i', // <i> + '/<em[^>]*>(.*?)<\/em>/i', // <em> + '/(<ul[^>]*>|<\/ul>)/i', // <ul> and </ul> + '/(<ol[^>]*>|<\/ol>)/i', // <ol> and </ol> + '/<li[^>]*>(.*?)<\/li>/i', // <li> and </li> + '/<li[^>]*>/i', // <li> + '/<a [^>]*href="([^"]+)"[^>]*>(.*?)<\/a>/ie', + // <a href=""> + '/<hr[^>]*>/i', // <hr> + '/(<table[^>]*>|<\/table>)/i', // <table> and </table> + '/(<tr[^>]*>|<\/tr>)/i', // <tr> and </tr> + '/<td[^>]*>(.*?)<\/td>/i', // <td> and </td> + '/<th[^>]*>(.*?)<\/th>/ie', // <th> and </th> + '/&(nbsp|#160);/i', // Non-breaking space + '/&(quot|rdquo|ldquo|#8220|#8221|#147|#148);/i', + // Double quotes + '/&(apos|rsquo|lsquo|#8216|#8217);/i', // Single quotes + '/>/i', // Greater-than + '/</i', // Less-than + '/&(amp|#38);/i', // Ampersand + '/&(copy|#169);/i', // Copyright + '/&(trade|#8482|#153);/i', // Trademark + '/&(reg|#174);/i', // Registered + '/&(mdash|#151|#8212);/i', // mdash + '/&(ndash|minus|#8211|#8722);/i', // ndash + '/&(bull|#149|#8226);/i', // Bullet + '/&(pound|#163);/i', // Pound sign + '/&(euro|#8364);/i', // Euro sign + '/&[^&;]+;/i', // Unknown/unhandled entities + '/[ ]{2,}/' // Runs of spaces, post-handling + ); + + /** + * List of pattern replacements corresponding to patterns searched. + * + * @var array $replace + * @access public + * @see $search + */ + var $replace = array( + '', // Non-legal carriage return + ' ', // Newlines and tabs + ' ', // Runs of spaces, pre-handling + '', // <script>s -- which strip_tags supposedly has problems with + '', // <style>s -- which strip_tags supposedly has problems with + //'', // Comments -- which strip_tags might have problem a with + "strtoupper(\"\n\n\\1\n\n\")", // H1 - H3 + "ucwords(\"\n\n\\1\n\n\")", // H4 - H6 + "\n\n\t", // <P> + "\n", // <br> + 'strtoupper("\\1")', // <b> + 'strtoupper("\\1")', // <strong> + '_\\1_', // <i> + '_\\1_', // <em> + "\n\n", // <ul> and </ul> + "\n\n", // <ol> and </ol> + "\t* \\1\n", // <li> and </li> + "\n\t* ", // <li> + '$this->_build_link_list("\\1", "\\2")', + // <a href=""> + "\n-------------------------\n", // <hr> + "\n\n", // <table> and </table> + "\n", // <tr> and </tr> + "\t\t\\1\n", // <td> and </td> + "strtoupper(\"\t\t\\1\n\")", // <th> and </th> + ' ', // Non-breaking space + '"', // Double quotes + "'", // Single quotes + '>', + '<', + '&', + '(c)', + '(tm)', + '(R)', + '--', + '-', + '*', + '\xA3', + 'EUR', // Euro sign. \x80 ? + '', // Unknown/unhandled entities + ' ' // Runs of spaces, post-handling + ); + + /** + * Contains a list of HTML tags to allow in the resulting text. + * + * @var string $allowed_tags + * @access public + * @see set_allowed_tags() + */ + var $allowed_tags = ''; + + /** + * Contains the base URL that relative links should resolve to. + * + * @var string $url + * @access public + */ + var $url; + + /** + * Indicates whether content in the $html variable has been converted yet. + * + * @var boolean $_converted + * @access private + * @see $html, $text + */ + var $_converted = false; + + /** + * Contains URL addresses from links to be rendered in plain text. + * + * @var string $_link_list + * @access private + * @see _build_link_list() + */ + var $_link_list = ''; + + /** + * Number of valid links detected in the text, used for plain text + * display (rendered similar to footnotes). + * + * @var integer $_link_count + * @access private + * @see _build_link_list() + */ + var $_link_count = 0; + + /** + * Constructor. + * + * If the HTML source string (or file) is supplied, the class + * will instantiate with that source propagated, all that has + * to be done it to call get_text(). + * + * @param string $source HTML content + * @param boolean $from_file Indicates $source is a file to pull content from + * @access public + * @return void + */ + function html2text( $source = '', $from_file = false ) + { + if ( !empty($source) ) { + $this->set_html($source, $from_file); + } + $this->set_base_url(); + } + + /** + * Loads source HTML into memory, either from $source string or a file. + * + * @param string $source HTML content + * @param boolean $from_file Indicates $source is a file to pull content from + * @access public + * @return void + */ + function set_html( $source, $from_file = false ) + { + $this->html = $source; + + if ( $from_file && file_exists($source) ) { + $fp = fopen($source, 'r'); + $this->html = fread($fp, filesize($source)); + fclose($fp); + } + + $this->_converted = false; + } + + /** + * Returns the text, converted from HTML. + * + * @access public + * @return string + */ + function get_text() + { + if ( !$this->_converted ) { + $this->_convert(); + } + + return $this->text; + } + + /** + * Prints the text, converted from HTML. + * + * @access public + * @return void + */ + function print_text() + { + print $this->get_text(); + } + + /** + * Alias to print_text(), operates identically. + * + * @access public + * @return void + * @see print_text() + */ + function p() + { + print $this->get_text(); + } + + /** + * Sets the allowed HTML tags to pass through to the resulting text. + * + * Tags should be in the form "<p>", with no corresponding closing tag. + * + * @access public + * @return void + */ + function set_allowed_tags( $allowed_tags = '' ) + { + if ( !empty($allowed_tags) ) { + $this->allowed_tags = $allowed_tags; + } + } + + /** + * Sets a base URL to handle relative links. + * + * @access public + * @return void + */ + function set_base_url( $url = '' ) + { + if ( empty($url) ) { + if ( !empty($_SERVER['HTTP_HOST']) ) { + $this->url = 'http://' . $_SERVER['HTTP_HOST']; + } else { + $this->url = ''; + } + } else { + // Strip any trailing slashes for consistency (relative + // URLs may already start with a slash like "/file.html") + if ( substr($url, -1) == '/' ) { + $url = substr($url, 0, -1); + } + $this->url = $url; + } + } + + /** + * Workhorse function that does actual conversion. + * + * First performs custom tag replacement specified by $search and + * $replace arrays. Then strips any remaining HTML tags, reduces whitespace + * and newlines to a readable format, and word wraps the text to + * $width characters. + * + * @access private + * @return void + */ + function _convert() + { + // Variables used for building the link list + $this->_link_count = 0; + $this->_link_list = ''; + + $text = trim(stripslashes($this->html)); + + // Run our defined search-and-replace + $text = preg_replace($this->search, $this->replace, $text); + + // Strip any other HTML tags + $text = strip_tags($text, $this->allowed_tags); + + // Bring down number of empty lines to 2 max + $text = preg_replace("/\n\s+\n/", "\n\n", $text); + $text = preg_replace("/[\n]{3,}/", "\n\n", $text); + + // Add link list + if ( !empty($this->_link_list) ) { + $text .= "\n\nLinks:\n------\n" . $this->_link_list; + } + + // Wrap the text to a readable format + // for PHP versions >= 4.0.2. Default width is 75 + // If width is 0 or less, don't wrap the text. + if ( $this->width > 0 ) { + $text = wordwrap($text, $this->width); + } + + $this->text = $text; + + $this->_converted = true; + } + + /** + * Helper function called by preg_replace() on link replacement. + * + * Maintains an internal list of links to be displayed at the end of the + * text, with numeric indices to the original point in the text they + * appeared. Also makes an effort at identifying and handling absolute + * and relative links. + * + * @param string $link URL of the link + * @param string $display Part of the text to associate number with + * @access private + * @return string + */ + function _build_link_list( $link, $display ) + { + if ( substr($link, 0, 7) == 'http://' || substr($link, 0, 8) == 'https://' || + substr($link, 0, 7) == 'mailto:' ) { + $this->_link_count++; + $this->_link_list .= "[" . $this->_link_count . "] $link\n"; + $additional = ' [' . $this->_link_count . ']'; + } elseif ( substr($link, 0, 11) == 'javascript:' ) { + // Don't count the link; ignore it + $additional = ''; + // what about href="#anchor" ? + } else { + $this->_link_count++; + $this->_link_list .= "[" . $this->_link_count . "] " . $this->url; + if ( substr($link, 0, 1) != '/' ) { + $this->_link_list .= '/'; + } + $this->_link_list .= "$link\n"; + $additional = ' [' . $this->_link_count . ']'; + } + + return $display . $additional; + } + +} + +?> Added: trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/LICENSE =================================================================== --- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/LICENSE (rev 0) +++ trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/LICENSE 2011-07-31 22:05:14 UTC (rev 21369) @@ -0,0 +1,504 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + <one line to give the library's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + <signature of Ty Coon>, 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + Added: trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/README =================================================================== --- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/README (rev 0) +++ trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/README 2011-07-31 22:05:14 UTC (rev 21369) @@ -0,0 +1,218 @@ +/******************************************************************* +* The http://phpmailer.codeworxtech.com/ website now carries a few * +* advertisements through the Google Adsense network. Please visit * +* the advertiser sites and help us offset some of our costs. * +* Thanks .... * +********************************************************************/ + +PHPMailer +Full Featured Email Transfer Class for PHP +========================================== + +Version 5.0.0 (April 02, 2009) + +With the release of this version, we are initiating a new version numbering +system to differentiate from the PHP4 version of PHPMailer. + +Most notable in this release is fully object oriented code. + +We now have available the PHPDocumentor (phpdocs) documentation. This is +separate from the regular download to keep file sizes down. Please see the +download area of http://phpmailer.codeworxtech.com. + +We also have created a new test script (see /test_script) that you can use +right out of the box. Copy the /test_script folder directly to your server (in +the same structure ... with class.phpmailer.php and class.smtp.php in the +folder above it. Then launch the test script with: +http://www.yourdomain.com/phpmailer/test_script/index.php +from this one script, you can test your server settings for mail(), sendmail (or +qmail), and SMTP. This will email you a sample email (using contents.html for +the email body) and two attachments. One of the attachments is used as an inline +image to demonstrate how PHPMailer will automatically detect if attachments are +the same source as inline graphics and only include one version. Once you click +the Submit button, the results will be displayed including any SMTP debug +information and send status. We will also display a version of the script that +you can cut and paste to include in your projects. Enjoy! + +Version 2.3 (November 08, 2008) + +We have removed the /phpdoc from the downloads. All documentation is now on +the http://phpmailer.codeworxtech.com website. + +The phpunit.php has been updated to support PHP5. + +For all other changes and notes, please see the changelog. + +Donations are accepted at PayPal with our id "pa...@wo...". + +Version 2.2 (July 15 2008) + +- see the changelog. + +Version 2.1 (June 04 2008) + +With this release, we are announcing that the development of PHPMailer for PHP5 +will be our focus from this date on. We have implemented all the enhancements +and fixes from the latest release of PHPMailer for PHP4. + +Far more important, though, is that this release of PHPMailer (v2.1) is +fully tested with E_STRICT error checking enabled. + +** NOTE: WE HAVE A NEW LANGUAGE VARIABLE FOR DIGITALLY SIGNED S/MIME EMAILS. + IF YOU CAN HELP WITH LANGUAGES OTHER THAN ENGLISH AND SPANISH, IT WOULD BE + APPRECIATED. + +We have now added S/MIME functionality (ability to digitally sign emails). +BIG THANKS TO "sergiocambra" for posting this patch back in November 2007. +The "Signed Emails" functionality adds the Sign method to pass the private key +filename and the password to read it, and then email will be sent with +content-type multipart/signed and with the digital signature attached. + +A quick note on E_STRICT: + +- In about half the test environments the development version was subjected + to, an error was thrown for the date() functions (used at line 1565 and 1569). + This is NOT a PHPMailer error, it is the result of an incorrectly configured + PHP5 installation. The fix is to modify your 'php.ini' file and include the + date.timezone = America/New York + directive, (for your own server timezone) +- If you do get this error, and are unable to access your php.ini file, there is + a workaround. In your PHP script, add + date_default_timezone_set('America/Toronto'); + + * do NOT try to use + $myVar = date_default_timezone_get(); + as a test, it will throw an error. + +We have also included more example files to show the use of "sendmail", "mail()", +"smtp", and "gmail". + +We are also looking for more programmers to join the volunteer development team. +If you have an interest in this, please let us know. + +Enjoy! + + +Version 2.1.0beta1 & beta2 + +please note, this is BETA software +** DO NOT USE THIS IN PRODUCTION OR LIVE PROJECTS +INTENDED STRICTLY FOR TESTING + +** NOTE: + +As of November 2007, PHPMailer has a new project team headed by industry +veteran Andy Prevost (codeworxtech). The first release in more than two +years will focus on fixes, adding ease-of-use enhancements, provide +basic compatibility with PHP4 and PHP5 using PHP5 backwards compatibility +features. A new release is planned before year-end 2007 that will provide +full compatiblity with PHP4 and PHP5, as well as more bug fixes. + +We are looking for project developers to assist in restoring PHPMailer to +its leadership position. Our goals are to simplify use of PHPMailer, provide +good documentation and examples, and retain backward compatibility to level +1.7.3 standards. + +If you are interested in helping out, visit http://sourceforge.net/projects/phpmailer +and indicate your interest. + +** + +http://phpmailer.sourceforge.net/ + +This software is licenced under the LGPL. Please read LICENSE for information on the +software availability and distribution. + +Class Features: +- Send emails with multiple TOs, CCs, BCCs and REPLY-TOs +- Redundant SMTP servers +- Multipart/alternative emails for mail clients that do not read HTML email +- Support for 8bit, base64, binary, and quoted-printable encoding +- Uses the same methods as the very popular AspEmail active server (COM) component +- SMTP authentication +- Native language support +- Word wrap, and more! + +Why you might need it: + +Many PHP developers utilize email in their code. The only PHP function +that supports this is the mail() function. However, it does not expose +any of the popular features that many email clients use nowadays like +HTML-based emails and attachments. There are two proprietary +development tools out there that have all the functionality built into +easy to use classes: AspEmail(tm) and AspMail. Both of these +programs are COM components only available on Windows. They are also a +little pricey for smaller projects. + +Since I do Linux development I�ve missed these tools for my PHP coding. +So I built a version myself that implements the same methods (object +calls) that the Windows-based components do. It is open source and the +LGPL license allows you to place the class in your proprietary PHP +projects. + + +Installation: + +Copy class.phpmailer.php into your php.ini include_path. If you are +using the SMTP mailer then place class.smtp.php in your path as well. +In the language directory you will find several files like +phpmailer.lang-en.php. If you look right before the .php extension +that there are two letters. These represent the language type of the +translation file. For instance "en" is the English file and "br" is +the Portuguese file. Chose the file that best fits with your language +and place it in the PHP include path. If your language is English +then you have nothing more to do. If it is a different language then +you must point PHPMailer to the correct translation. To do this, call +the PHPMailer SetLanguage method like so: + +// To load the Portuguese version +$mail->SetLanguage("br", "/optional/path/to/language/directory/"); + +That's it. You should now be ready to use PHPMailer! + + +A Simple Example: + +<?php +require("class.phpmailer.php"); + +$mail = new PHPMailer(); + +$mail->IsSMTP(); // set mailer to use SMTP +$mail->Host = "smtp1.example.com;smtp2.example.com"; // specify main and backup server +$mail->SMTPAuth = true; // turn on SMTP authentication +$mail->Username = "jswan"; // SMTP username +$mail->Password = "secret"; // SMTP password + +$mail->From = "fr...@ex..."; +$mail->FromName = "Mailer"; +$mail->AddAddress("jo...@ex...", "Josh Adams"); +$mail->AddAddress("el...@ex..."); // name is optional +$mail->AddReplyTo("in...@ex...", "Information"); + +$mail->WordWrap = 50; // set word wrap to 50 characters +$mail->AddAttachment("/var/tmp/file.tar.gz"); // add attachments +$mail->AddAttachment("/tmp/image.jpg", "new.jpg"); // optional name +$mail->IsHTML(true); // set email format to HTML + +$mail->Subject = "Here is the subject"; +$mail->Body = "This is the HTML message body <b>in bold!</b>"; +$mail->AltBody = "This is the body in plain text for non-HTML mail clients"; + +if(!$mail->Send()) +{ + echo "Message could not be sent. <p>"; + echo "Mailer Error: " . $mail->ErrorInfo; + exit; +} + +echo "Message has been sent"; +?> + +CHANGELOG + +See ChangeLog.txt + +Download: http://sourceforge.net/project/showfiles.php?group_id=26031 + +Andy Prevost Added: trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/aboutus.html =================================================================== --- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/aboutus.html (rev 0) +++ trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/lib/phpmailer/aboutus.html 2011-07-31 22:05:14 UTC (rev 21369) @@ -0,0 +1,169 @@ +<html> +<head> +<style> +body, p, li, td { + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; +} +ul { + margin:0 0px 0 15px; + padding:0; +} +div.width { + width: 760px; + text-align: left; +} +</style> +<script> +<!-- +var popsite="http://phpmailer.codeworxtech.com" +var withfeatures="width=960,height=760,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0" +var once_per_session=0 +functi... [truncated message content] |
From: <cbo...@us...> - 2011-07-31 19:16:12
|
Revision: 21368 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21368&view=rev Author: cboulanger Date: 2011-07-31 19:16:05 +0000 (Sun, 31 Jul 2011) Log Message: ----------- Added "jpeg" extension to jpg mime type Modified Paths: -------------- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/core/functions.php Modified: trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/core/functions.php =================================================================== --- trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/core/functions.php 2011-07-31 19:02:12 UTC (rev 21367) +++ trunk/qooxdoo-contrib/qcl-php/trunk/services/class/qcl/core/functions.php 2011-07-31 19:16:05 UTC (rev 21368) @@ -515,14 +515,15 @@ { case "pdf": $ctype="application/pdf"; break; case "txt": $ctype="text/plain"; break; - case "exe": throw new InvalidArgumentException("Executables are not allowed"); + case "exe": throw new InvalidArgumentException(".exe files are not allowed"); case "zip": $ctype="application/zip"; break; case "doc": $ctype="application/msword"; break; case "xls": $ctype="application/vnd.ms-excel"; break; case "ppt": $ctype="application/vnd.ms-powerpoint"; break; case "gif": $ctype="image/gif"; break; case "png": $ctype="image/png"; break; - case "jpg": $ctype="image/jpg"; break; + case "jpg": + case "jpeg": $ctype="image/jpg"; break; default: $ctype="application/octet-stream"; } return $ctype; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <de...@us...> - 2011-07-31 19:02:19
|
Revision: 21367 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21367&view=rev Author: derrell Date: 2011-07-31 19:02:12 +0000 (Sun, 31 Jul 2011) Log Message: ----------- 105 is different than '105'. query() now knows that. Modified Paths: -------------- trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/sim/Dbif.js Modified: trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/sim/Dbif.js =================================================================== --- trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/sim/Dbif.js 2011-07-31 15:59:59 UTC (rev 21366) +++ trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/sim/Dbif.js 2011-07-31 19:02:12 UTC (rev 21367) @@ -194,31 +194,73 @@ case "String": case "LongString": case "Date": - ret += - "entry[\"" + criterium.field + "\"] === " + - "\"" + criterium.value + "\" "; + if (typeof criterium.value != "string") + { + qx.Bootstrap.warn( + "Expected criterium value to be string, " + + "got " + typeof(criterium.value)); + ret += "false"; + } + else + { + ret += + "entry[\"" + criterium.field + "\"] === " + + "\"" + criterium.value + "\" "; + } break; case "Key": case "Integer": case "Float": - ret += - "entry[\"" + criterium.field + "\"] === " + criterium.value; + if (typeof criterium.value != "number") + { + qx.Bootstrap.warn( + "Expected criterium value to be number, " + + "got " + typeof(criterium.value)); + ret += "false"; + } + else + { + ret += + "entry[\"" + criterium.field + "\"] === " + + criterium.value; + } break; case "KeyArray": case "StringArray": case "LongStringArray": - ret += - "qx.lang.Array.contains(entry[\"" + - criterium.field + "\"], " + "\"" + criterium.value + "\")"; + if (typeof criterium.value != "string") + { + qx.Bootstrap.warn( + "Expected criterium value to be string, " + + "got " + typeof(criterium.value)); + ret += "false"; + } + else + { + ret += + "qx.lang.Array.contains(entry[\"" + + criterium.field + "\"], " + + "\"" + criterium.value + "\")"; + } break; case "IntegerArray": case "FloatArray": - ret += - "qx.lang.Array.contains(entry[\"" + - criterium.field + "\"], " + criterium.value + ")"; + if (typeof criterium.value != "number") + { + qx.Bootstrap.warn( + "Expected criterium value to be string, " + + "got " + typeof(criterium.value)); + ret += "false"; + } + else + { + ret += + "qx.lang.Array.contains(entry[\"" + + criterium.field + "\"], " + criterium.value + ")"; + } break; default: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sc...@us...> - 2011-07-31 16:00:05
|
Revision: 21366 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21366&view=rev Author: scro34 Date: 2011-07-31 15:59:59 +0000 (Sun, 31 Jul 2011) Log Message: ----------- Updated to qooxdoo 1.5 Modified Paths: -------------- trunk/qooxdoo-contrib/DarkTheme/trunk/Manifest.json trunk/qooxdoo-contrib/DarkTheme/trunk/config.json trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/Manifest.json trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/config.json trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/source/class/darktheme/demo/Application.js trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/source/class/darktheme/demo/Canvas.js trunk/qooxdoo-contrib/DarkTheme/trunk/source/class/darktheme/theme/Appearance.js trunk/qooxdoo-contrib/DarkTheme/trunk/source/class/darktheme/theme/Color.js trunk/qooxdoo-contrib/DarkTheme/trunk/source/class/darktheme/theme/Decoration.js Modified: trunk/qooxdoo-contrib/DarkTheme/trunk/Manifest.json =================================================================== --- trunk/qooxdoo-contrib/DarkTheme/trunk/Manifest.json 2011-07-31 15:58:32 UTC (rev 21365) +++ trunk/qooxdoo-contrib/DarkTheme/trunk/Manifest.json 2011-07-31 15:59:59 UTC (rev 21366) @@ -18,7 +18,7 @@ ], "version" : "trunk", - "qooxdoo-versions": ["1.4"] + "qooxdoo-versions": ["1.4", "1.5"] }, "provides" : Modified: trunk/qooxdoo-contrib/DarkTheme/trunk/config.json =================================================================== --- trunk/qooxdoo-contrib/DarkTheme/trunk/config.json 2011-07-31 15:58:32 UTC (rev 21365) +++ trunk/qooxdoo-contrib/DarkTheme/trunk/config.json 2011-07-31 15:59:59 UTC (rev 21366) @@ -29,7 +29,7 @@ { "APPLICATION" : "darktheme", "APPLICATION_MAIN_CLASS" : "${APPLICATION}.demo.Demo", - "QOOXDOO_PATH" : "../../qooxdoo/1.4.1", + "QOOXDOO_PATH" : "../../qooxdoo/1.5", "QXTHEME" : "qx.theme.Modern", "API_EXCLUDE" : ["qx.test.*", "darktheme.demo.*", "${APPLICATION}.theme.*", "${APPLICATION}.test.*"], "LOCALES" : [ "en" ], Modified: trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/Manifest.json =================================================================== --- trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/Manifest.json 2011-07-31 15:58:32 UTC (rev 21365) +++ trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/Manifest.json 2011-07-31 15:59:59 UTC (rev 21366) @@ -18,7 +18,7 @@ ], "version" : "trunk", - "qooxdoo-versions": ["1.4"] + "qooxdoo-versions": ["1.4", "1.5"] }, "provides" : Modified: trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/config.json =================================================================== --- trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/config.json 2011-07-31 15:58:32 UTC (rev 21365) +++ trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/config.json 2011-07-31 15:59:59 UTC (rev 21366) @@ -32,11 +32,11 @@ "let" : { "APPLICATION" : "darktheme.demo", - "QOOXDOO_PATH" : "../../../../qooxdoo/1.4.1", + "QOOXDOO_PATH" : "../../../../qooxdoo/1.5", "QXTHEME" : "darktheme.DarkTheme", "API_EXCLUDE" : ["qx.test.*", "${APPLICATION}.theme.*", "${APPLICATION}.test.*"], "LOCALES" : [ "en" ], - "CACHE" : "${TMPDIR}/cache", + "CACHE" : "${TMPDIR}/qx${QOOXDOO_VERSION}/cache", "ROOT" : "." }, Modified: trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/source/class/darktheme/demo/Application.js =================================================================== --- trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/source/class/darktheme/demo/Application.js 2011-07-31 15:58:32 UTC (rev 21365) +++ trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/source/class/darktheme/demo/Application.js 2011-07-31 15:59:59 UTC (rev 21366) @@ -64,7 +64,7 @@ this.base(arguments); // Enable logging in debug variant - if (qx.core.Variant.isSet("qx.debug", "on")) + if ((qx.core.Environment.get("qx.debug"))) { // support native logging capabilities, e.g. Firebug for Firefox qx.log.appender.Native; @@ -454,7 +454,7 @@ var label = new qx.ui.basic.Atom("DarkTheme Demo"); label.set({alignY: "middle", font: "bold"}); - var version = new qx.ui.basic.Atom(qx.core.Setting.get("qx.version"), "darktheme.demo/logo.png"); + var version = new qx.ui.basic.Atom(qx.core.Environment.get("qx.version"), "darktheme.demo/logo.png"); version.set({alignY: "middle", font: "bold"}); header.add(label); Modified: trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/source/class/darktheme/demo/Canvas.js =================================================================== --- trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/source/class/darktheme/demo/Canvas.js 2011-07-31 15:58:32 UTC (rev 21365) +++ trunk/qooxdoo-contrib/DarkTheme/trunk/demo/default/source/class/darktheme/demo/Canvas.js 2011-07-31 15:59:59 UTC (rev 21366) @@ -32,7 +32,7 @@ }); win1.setLayout(new qx.ui.layout.Canvas()); - if (qx.core.Variant.isSet("qx.client", "mshtml")) + if ((qx.core.Environment.get("engine.name") === "mshtml")) { var canvas1 = new qx.ui.container.Composite(new qx.ui.layout.HBox()); canvas1.add(new qx.ui.basic.Label("Canvas is not support in Internet Explorer!").set({ @@ -60,7 +60,7 @@ }); win2.setLayout(new qx.ui.layout.Canvas()); - if (qx.core.Variant.isSet("qx.client", "mshtml")) + if ((qx.core.Environment.get("engine.name") === "mshtml")) { var canvas2 = new qx.ui.container.Composite(new qx.ui.layout.HBox()); canvas2.add(new qx.ui.basic.Label("Canvas is not support in Internet Explorer!").set({ Modified: trunk/qooxdoo-contrib/DarkTheme/trunk/source/class/darktheme/theme/Appearance.js =================================================================== --- trunk/qooxdoo-contrib/DarkTheme/trunk/source/class/darktheme/theme/Appearance.js 2011-07-31 15:58:32 UTC (rev 21365) +++ trunk/qooxdoo-contrib/DarkTheme/trunk/source/class/darktheme/theme/Appearance.js 2011-07-31 15:59:59 UTC (rev 21366) @@ -91,11 +91,6 @@ decorator = "button-checked"; textColor = undefined; } - else if (states.disabled) - { - decorator = "button-disabled"; - textColor = undefined; - } else if (states.pressed) { decorator = "button-checked"; Modified: trunk/qooxdoo-contrib/DarkTheme/trunk/source/class/darktheme/theme/Color.js =================================================================== --- trunk/qooxdoo-contrib/DarkTheme/trunk/source/class/darktheme/theme/Color.js 2011-07-31 15:58:32 UTC (rev 21365) +++ trunk/qooxdoo-contrib/DarkTheme/trunk/source/class/darktheme/theme/Color.js 2011-07-31 15:59:59 UTC (rev 21366) @@ -55,7 +55,7 @@ "background-window": "#525252", // selection - "background-selected": "#398E9D", + "background-selected": "#3E646E", /* --------------------------------------------------------------------------- @@ -139,9 +139,9 @@ // own table colors "table-focus-indicator": "#80B4EF", - "table-row-background-focused-selected": "#398E9D", - "table-row-background-focused": "#80B4EF", - "table-row-background-selected": "#398E9D", + "table-row-background-focused-selected": "#3E646E", + "table-row-background-focused": "transparent", + "table-row-background-selected": "#3E646E", // equal to "background-pane" and "background-odd" "table-row-background-even": "#F3F3F3", Modified: trunk/qooxdoo-contrib/DarkTheme/trunk/source/class/darktheme/theme/Decoration.js =================================================================== --- trunk/qooxdoo-contrib/DarkTheme/trunk/source/class/darktheme/theme/Decoration.js 2011-07-31 15:58:32 UTC (rev 21365) +++ trunk/qooxdoo-contrib/DarkTheme/trunk/source/class/darktheme/theme/Decoration.js 2011-07-31 15:59:59 UTC (rev 21366) @@ -916,6 +916,22 @@ backgroundRepeat: "scale" } }, + + "toolbar-blank" : + { + decorator: qx.ui.decoration.Single, + + style: + { + backgroundColor: "transparent", + + width: 1, + color: "transparent", + colorBottom: "border-separator", + + style: "solid" + } + }, "toolbar-light": { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sc...@us...> - 2011-07-31 15:58:38
|
Revision: 21365 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21365&view=rev Author: scro34 Date: 2011-07-31 15:58:32 +0000 (Sun, 31 Jul 2011) Log Message: ----------- Minor fix in Manifest.json Modified Paths: -------------- trunk/qooxdoo-contrib/DarkTheme/0.1/demo/default/Manifest.json trunk/qooxdoo-contrib/DarkTheme/0.1/demo/default/config.json Modified: trunk/qooxdoo-contrib/DarkTheme/0.1/demo/default/Manifest.json =================================================================== --- trunk/qooxdoo-contrib/DarkTheme/0.1/demo/default/Manifest.json 2011-07-31 14:59:13 UTC (rev 21364) +++ trunk/qooxdoo-contrib/DarkTheme/0.1/demo/default/Manifest.json 2011-07-31 15:58:32 UTC (rev 21365) @@ -17,7 +17,7 @@ } ], - "version" : "trunk", + "version" : "0.1", "qooxdoo-versions": ["1.0", "1.1", "1.2", "1.3"] }, Modified: trunk/qooxdoo-contrib/DarkTheme/0.1/demo/default/config.json =================================================================== --- trunk/qooxdoo-contrib/DarkTheme/0.1/demo/default/config.json 2011-07-31 14:59:13 UTC (rev 21364) +++ trunk/qooxdoo-contrib/DarkTheme/0.1/demo/default/config.json 2011-07-31 15:58:32 UTC (rev 21365) @@ -32,11 +32,11 @@ "let" : { "APPLICATION" : "darktheme.demo", - "QOOXDOO_PATH" : "../../../../qooxdoo/1.3.1", + "QOOXDOO_PATH" : "../../../../qooxdoo/1.3", "QXTHEME" : "darktheme.DarkTheme", "API_EXCLUDE" : ["qx.test.*", "${APPLICATION}.theme.*", "${APPLICATION}.test.*"], "LOCALES" : [ "en" ], - "CACHE" : "${TMPDIR}/cache", + "CACHE" : "${TMPDIR}/qx${QOOXDOO_VERSION}/cache", "ROOT" : "." }, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sc...@us...> - 2011-07-31 14:59:20
|
Revision: 21364 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21364&view=rev Author: scro34 Date: 2011-07-31 14:59:13 +0000 (Sun, 31 Jul 2011) Log Message: ----------- Created version 0.1 from trunk Modified Paths: -------------- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/Manifest.json trunk/qooxdoo-contrib/SilverBlueTheme/0.1/config.json trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/Manifest.json trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/config.json trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Application.js trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Button.js trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/CalculatorLogic.js trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/CheckBox.js trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/MenuBar.js trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/RadioButton.js trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/SplitPane.js trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/TableWindow.js trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Tree.js trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Window.js trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/script/silverbluetheme.demo.js trunk/qooxdoo-contrib/SilverBlueTheme/trunk/Manifest.json trunk/qooxdoo-contrib/SilverBlueTheme/trunk/config.json trunk/qooxdoo-contrib/SilverBlueTheme/trunk/demo/default/Manifest.json trunk/qooxdoo-contrib/SilverBlueTheme/trunk/demo/default/config.json trunk/qooxdoo-contrib/SilverBlueTheme/trunk/demo/default/source/class/silverbluetheme/demo/Application.js trunk/qooxdoo-contrib/SilverBlueTheme/trunk/demo/default/source/class/silverbluetheme/demo/Canvas.js trunk/qooxdoo-contrib/SilverBlueTheme/trunk/source/class/silverbluetheme/theme/Font.js Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/Manifest.json =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/Manifest.json 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/Manifest.json 2011-07-31 14:59:13 UTC (rev 21364) @@ -17,8 +17,8 @@ } ], - "version" : "trunk", - "qooxdoo-versions": ["1.0", "1.1", "1.2", "1.3", "1.4"] + "version" : "0.1", + "qooxdoo-versions": ["1.0", "1.1", "1.2", "1.3"] }, "provides" : Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/config.json =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/config.json 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/config.json 2011-07-31 14:59:13 UTC (rev 21364) @@ -29,11 +29,11 @@ { "APPLICATION" : "silverbluetheme", "APPLICATION_MAIN_CLASS" : "${APPLICATION}.demo.Demo", - "QOOXDOO_PATH" : "../../qooxdoo/1.3", + "QOOXDOO_PATH" : "../../qooxdoo/1.2", "QXTHEME" : "silverbluetheme.theme.Theme", "API_EXCLUDE" : ["qx.test.*", "silverbluetheme.demo.*", "${APPLICATION}.theme.*", "${APPLICATION}.test.*"], "LOCALES" : [ "en" ], - "CACHE" : "${TMPDIR}/cache", + "CACHE" : "${TMPDIR}/qx${QOOXDOO_VERSION}/cache", "ROOT" : "." } Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/Manifest.json =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/Manifest.json 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/Manifest.json 2011-07-31 14:59:13 UTC (rev 21364) @@ -17,8 +17,8 @@ } ], - "version" : "trunk", - "qooxdoo-versions": ["1.0", "1.1", "1.2", "1.3", "1.4"] + "version" : "0.1", + "qooxdoo-versions": ["1.0", "1.1", "1.2", "1.3"] }, "provides" : Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/config.json =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/config.json 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/config.json 2011-07-31 14:59:13 UTC (rev 21364) @@ -32,11 +32,11 @@ "let" : { "APPLICATION" : "silverbluetheme.demo", - "QOOXDOO_PATH" : "../../../../qooxdoo/1.4", + "QOOXDOO_PATH" : "../../../../qooxdoo/1.3", "QXTHEME" : "silverbluetheme.SilverBlueTheme", "API_EXCLUDE" : ["qx.test.*", "${APPLICATION}.theme.*", "${APPLICATION}.test.*"], "LOCALES" : [ "en" ], - "CACHE" : "${TMPDIR}/cache", + "CACHE" : "${TMPDIR}/qx${QOOXDOO_VERSION}/cache", "ROOT" : "." }, Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Application.js =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Application.js 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Application.js 2011-07-31 14:59:13 UTC (rev 21364) @@ -154,7 +154,6 @@ widgetButton.add(new qx.ui.form.ListItem("Menu")); widgetButton.add(new qx.ui.form.ListItem("MenuBar")); widgetButton.add(new qx.ui.form.ListItem("Popup")); - widgetButton.add(new qx.ui.form.ListItem("ProgressBar")); widgetButton.add(new qx.ui.form.ListItem("RadioButton")); widgetButton.add(new qx.ui.form.ListItem("RadioButtonGroup")); widgetButton.add(new qx.ui.form.ListItem("Resizer")); @@ -245,6 +244,7 @@ var label = new qx.ui.basic.Atom(headerStr); label.set({alignY: "middle", font: "bold", rich: true}); + var strVersion = qx.core.Setting.get("qx.version"); var version = new qx.ui.basic.Atom(qx.core.Setting.get("qx.version"), "silverbluetheme.demo/logo.png"); version.set({alignY: "middle", font: "bold"}); @@ -287,7 +287,6 @@ stack.add(new silverbluetheme.demo.Menu()); stack.add(new silverbluetheme.demo.MenuBar()); stack.add(new silverbluetheme.demo.Popup()); - stack.add(new silverbluetheme.demo.ProgressBar()); stack.add(new silverbluetheme.demo.RadioButton()); stack.add(new silverbluetheme.demo.RadioButtonGroup()); stack.add(new silverbluetheme.demo.Resizer()); Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Button.js =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Button.js 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Button.js 2011-07-31 14:59:13 UTC (rev 21364) @@ -26,7 +26,6 @@ this.addNormalButtons(container); this.addToggleButton(container); - this.addToggleButtonGroup(container); this.addRepeatButton(container); this.addHoverButton(container); @@ -57,18 +56,6 @@ }, this); }, - addToggleButtonGroup: function(container) - { - var button1 = new qx.ui.form.ToggleButton("On"); - var button2 = new qx.ui.form.ToggleButton("Off"); - - var group = new qx.ui.form.RadioGroup(); - group.add(button1, button2); - - container.add(button1); - container.add(button2); - }, - addRepeatButton : function(container) { var button = new qx.ui.form.RepeatButton(null, "icon/22/actions/list-add.png"); Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/CalculatorLogic.js =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/CalculatorLogic.js 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/CalculatorLogic.js 2011-07-31 14:59:13 UTC (rev 21364) @@ -270,6 +270,7 @@ * * @param currentOperation {var} desired operation to compute * @return {void} + * @lint ignoreDeprecated(alert) */ calculate : function(currentOperation) { Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/CheckBox.js =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/CheckBox.js 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/CheckBox.js 2011-07-31 14:59:13 UTC (rev 21364) @@ -17,6 +17,8 @@ members: { + __checkBoxes: null, + _createControls: function() { var layout = new qx.ui.layout.VBox(8); @@ -28,13 +30,12 @@ var cbTowel = new qx.ui.form.CheckBox("Towel"); var cbBeer = new qx.ui.form.CheckBox("Beer"); var cbBT = new qx.ui.form.CheckBox("Bathing togs"); - cbBT.setTriState(true); var btOk = new qx.ui.form.Button("OK"); btOk.addListener("execute", this._onExecute, this); btOk.setAllowGrowX(false); - this._checkBoxes = [ cbOil, cbTowel, cbBeer, cbBT ]; + this.__checkBoxes = [ cbOil, cbTowel, cbBeer, cbBT ]; this.addListenerOnce("appear", function(e) { @@ -47,9 +48,12 @@ }, this); }, + /** + * @lint ignoreDeprecated(alert) + */ _onExecute : function(e) { - var cbs = this._checkBoxes; + var cbs = this.__checkBoxes; var count = 0; var str = ""; Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/MenuBar.js =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/MenuBar.js 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/MenuBar.js 2011-07-31 14:59:13 UTC (rev 21364) @@ -17,6 +17,15 @@ members: { + __newCommand: null, + __openCommand: null, + __saveCommand: null, + __undoCommand: null, + __redoCommand: null, + __cutCommand: null, + __copyCommand: null, + __pasteCommand: null, + _createControls: function() { var layout = new qx.ui.layout.Canvas(); @@ -91,31 +100,31 @@ createCommands : function() { - this._newCommand = new qx.ui.core.Command("Ctrl+N"); - this._newCommand.addListener("execute", this.debugCommand); + this.__newCommand = new qx.ui.core.Command("Ctrl+N"); + this.__newCommand.addListener("execute", this.debugCommand); - this._openCommand = new qx.ui.core.Command("Ctrl+O"); - this._openCommand.addListener("execute", this.debugCommand); + this.__openCommand = new qx.ui.core.Command("Ctrl+O"); + this.__openCommand.addListener("execute", this.debugCommand); - this._saveCommand = new qx.ui.core.Command("Ctrl+S"); - this._saveCommand.addListener("execute", this.debugCommand); + this.__saveCommand = new qx.ui.core.Command("Ctrl+S"); + this.__saveCommand.addListener("execute", this.debugCommand); - this._undoCommand = new qx.ui.core.Command("Ctrl+Z"); - this._undoCommand.addListener("execute", this.debugCommand); + this.__undoCommand = new qx.ui.core.Command("Ctrl+Z"); + this.__undoCommand.addListener("execute", this.debugCommand); - this._redoCommand = new qx.ui.core.Command("Ctrl+R"); - this._redoCommand.addListener("execute", this.debugCommand); + this.__redoCommand = new qx.ui.core.Command("Ctrl+R"); + this.__redoCommand.addListener("execute", this.debugCommand); - this._cutCommand = new qx.ui.core.Command("Ctrl+X"); - this._cutCommand.addListener("execute", this.debugCommand); + this.__cutCommand = new qx.ui.core.Command("Ctrl+X"); + this.__cutCommand.addListener("execute", this.debugCommand); - this._copyCommand = new qx.ui.core.Command("Ctrl+C"); - this._copyCommand.addListener("execute", this.debugCommand); + this.__copyCommand = new qx.ui.core.Command("Ctrl+C"); + this.__copyCommand.addListener("execute", this.debugCommand); - this._pasteCommand = new qx.ui.core.Command("Ctrl+P"); - this._pasteCommand.addListener("execute", this.debugCommand); + this.__pasteCommand = new qx.ui.core.Command("Ctrl+P"); + this.__pasteCommand.addListener("execute", this.debugCommand); - this._pasteCommand.setEnabled(false); + this.__pasteCommand.setEnabled(false); }, @@ -148,10 +157,10 @@ { var menu = new qx.ui.menu.Menu; - var newButton = new qx.ui.menu.Button("New", "icon/16/actions/document-new.png", this._newCommand); - var openButton = new qx.ui.menu.Button("Open", "icon/16/actions/document-open.png", this._openCommand); + var newButton = new qx.ui.menu.Button("New", "icon/16/actions/document-new.png", this.__newCommand); + var openButton = new qx.ui.menu.Button("Open", "icon/16/actions/document-open.png", this.__openCommand); var closeButton = new qx.ui.menu.Button("Close"); - var saveButton = new qx.ui.menu.Button("Save", "icon/16/actions/document-save.png", this._saveCommand); + var saveButton = new qx.ui.menu.Button("Save", "icon/16/actions/document-save.png", this.__saveCommand); var saveAsButton = new qx.ui.menu.Button("Save as...", "icon/16/actions/document-save-as.png"); var printButton = new qx.ui.menu.Button("Print", "icon/16/actions/document-print.png"); var exitButton = new qx.ui.menu.Button("Exit", "icon/16/actions/application-exit.png"); @@ -179,11 +188,11 @@ { var menu = new qx.ui.menu.Menu; - var undoButton = new qx.ui.menu.Button("Undo", "icon/16/actions/edit-undo.png", this._undoCommand); - var redoButton = new qx.ui.menu.Button("Redo", "icon/16/actions/edit-redo.png", this._redoCommand); - var cutButton = new qx.ui.menu.Button("Cut", "icon/16/actions/edit-cut.png", this._cutCommand); - var copyButton = new qx.ui.menu.Button("Copy", "icon/16/actions/edit-copy.png", this._copyCommand); - var pasteButton = new qx.ui.menu.Button("Paste", "icon/16/actions/edit-paste.png", this._pasteCommand); + var undoButton = new qx.ui.menu.Button("Undo", "icon/16/actions/edit-undo.png", this.__undoCommand); + var redoButton = new qx.ui.menu.Button("Redo", "icon/16/actions/edit-redo.png", this.__redoCommand); + var cutButton = new qx.ui.menu.Button("Cut", "icon/16/actions/edit-cut.png", this.__cutCommand); + var copyButton = new qx.ui.menu.Button("Copy", "icon/16/actions/edit-copy.png", this.__copyCommand); + var pasteButton = new qx.ui.menu.Button("Paste", "icon/16/actions/edit-paste.png", this.__pasteCommand); undoButton.addListener("execute", this.debugButton); redoButton.addListener("execute", this.debugButton); @@ -426,9 +435,9 @@ destruct : function() { - this._disposeObjects("_newCommand", "_openCommand", "_saveCommand", - "_undoCommand", "_redoCommand", "_cutCommand", "_copyCommand", - "_pasteCommand"); + this._disposeObjects("__newCommand", "__openCommand", "__saveCommand", + "__undoCommand", "__redoCommand", "__cutCommand", "__copyCommand", + "__pasteCommand"); } }); Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/RadioButton.js =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/RadioButton.js 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/RadioButton.js 2011-07-31 14:59:13 UTC (rev 21364) @@ -62,6 +62,7 @@ * Reads the label of the selected radio button and * raises a alert box with this information in it. * @param e {qx.event.type.Data} The incoming data event + * @lint ignoreDeprecated(alert) */ _onChangeSelection : function(e) { Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/SplitPane.js =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/SplitPane.js 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/SplitPane.js 2011-07-31 14:59:13 UTC (rev 21364) @@ -17,6 +17,10 @@ members: { + __pane: null, + __container1: null, + __container2: null, + _createControls: function() { var layout = new qx.ui.layout.Canvas(); @@ -71,8 +75,8 @@ container2.add(button); container2.add(label); - this._container1 = container1; - this._container2 = container2; + this.__container1 = container1; + this.__container2 = container2; // Add the first container to the pane. Flex = 0 means that this child should not grow pane.add(container1, 0); @@ -135,18 +139,18 @@ if(data == "both") { - this._container1.show(); - this._container2.show(); + this.__container1.show(); + this.__container2.show(); } else if(data == "first") { - this._container1.show(); - this._container2.exclude(); + this.__container1.show(); + this.__container2.exclude(); } else if(data == "second") { - this._container1.exclude(); - this._container2.show(); + this.__container1.exclude(); + this.__container2.show(); } }, @@ -209,7 +213,7 @@ destruct : function() { - this._disposeObjects("__pane", "_container1", "_container2"); + this._disposeObjects("__pane", "__container1", "__container2"); } }); Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/TableWindow.js =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/TableWindow.js 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/TableWindow.js 2011-07-31 14:59:13 UTC (rev 21364) @@ -18,8 +18,9 @@ members : { - table: null, - nextId: 0, + __table: null, + __tableModel: null, + __nextId: 0, _createControls: function() { @@ -40,7 +41,7 @@ var rowData = this.createRandomRows(50); // table model - var tableModel = this._tableModel = new qx.ui.table.model.Simple(); + var tableModel = this.__tableModel = new qx.ui.table.model.Simple(); tableModel.setColumns([ "ID", "A number", "A date", "Boolean" ]); tableModel.setData(rowData); tableModel.setColumnEditable(1, true); @@ -48,7 +49,7 @@ tableModel.setColumnSortable(3, false); // table - var table = this.table = new qx.ui.table.Table(tableModel); + var table = this.__table = new qx.ui.table.Table(tableModel); table.set({ width: 450, @@ -78,7 +79,7 @@ var dateRange = 400 * 24 * 60 * 60 * 1000; // 400 days for (var row = 0; row < rowCount; row++) { var date = new Date(now + Math.random() * dateRange - dateRange / 2); - rowData.push([ this.nextId++, Math.random() * 10000, date, (Math.random() > 0.5) ]); + rowData.push([ this.__nextId++, Math.random() * 10000, date, (Math.random() > 0.5) ]); } return rowData; }, @@ -94,8 +95,8 @@ button = new qx.ui.toolbar.Button("Change row with ID 10", "icon/22/actions/edit-undo.png"); button.addListener("execute", function(evt) { var rowData = this.createRandomRows(1); - for (var i = 1; i < this._tableModel.getColumnCount(); i++) { - this._tableModel.setValue(i, 10, rowData[0][i]); + for (var i = 1; i < this.__tableModel.getColumnCount(); i++) { + this.__tableModel.setValue(i, 10, rowData[0][i]); } this.info("Row 10 changed"); }, this); @@ -104,15 +105,15 @@ button = new qx.ui.toolbar.Button("Add 10 rows", "icon/22/actions/list-add.png"); button.addListener("execute", function(evt) { var rowData = this.createRandomRows(10); - this._tableModel.addRows(rowData); + this.__tableModel.addRows(rowData); this.info("10 rows added"); }, this); part.add(button); button = new qx.ui.toolbar.Button("Remove 5 rows", "icon/22/actions/list-remove.png"); button.addListener("execute", function(evt) { - var rowCount = this._tableModel.getRowCount(); - this._tableModel.removeRows(rowCount-5, 5); + var rowCount = this.__tableModel.getRowCount(); + this.__tableModel.removeRows(rowCount-5, 5); this.info("5 rows removed"); }, this); part.add(button); @@ -136,21 +137,21 @@ checkBox = new qx.ui.toolbar.CheckBox("Keep first row"); checkBox.set({ - value: this.table.getKeepFirstVisibleRowComplete(), + value: this.__table.getKeepFirstVisibleRowComplete(), toolTip: new qx.ui.tooltip.ToolTip( "Whether the the first visible row should " + "be rendered completely when scrolling." ) }); checkBox.addListener("changeValue", function(evt) { - this.table.setKeepFirstVisibleRowComplete(this.getValue()); + this.__table.setKeepFirstVisibleRowComplete(this.getValue()); }, checkBox); part.add(checkBox); checkBox = new qx.ui.toolbar.CheckBox("Change ID sort method"); checkBox.set({ - value: this.table.getKeepFirstVisibleRowComplete(), + value: this.__table.getKeepFirstVisibleRowComplete(), toolTip: new qx.ui.tooltip.ToolTip("Demonstrate use of alternate sorting algorithm.") }); checkBox.addListener("changeValue", function(evt) Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Tree.js =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Tree.js 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Tree.js 2011-07-31 14:59:13 UTC (rev 21364) @@ -92,7 +92,9 @@ return tree; }, - + /** + * @lint ignoreDeprecated(alert) + */ getCommandFrame : function(tree) { var commandFrame = new qx.ui.groupbox.GroupBox("Control"); Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Window.js =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Window.js 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/class/silverbluetheme/demo/Window.js 2011-07-31 14:59:13 UTC (rev 21364) @@ -226,7 +226,9 @@ return wm1; }, - + /** + * @lint ignoreDeprecated(alert) + */ getModalWindow2 : function() { var wm2 = new qx.ui.window.Window("Second Modal Dialog"); Modified: trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/script/silverbluetheme.demo.js =================================================================== --- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/script/silverbluetheme.demo.js 2011-07-31 10:52:15 UTC (rev 21363) +++ trunk/qooxdoo-contrib/SilverBlueTheme/0.1/demo/default/source/script/silverbluetheme.demo.js 2011-07-31 14:59:13 UTC (rev 21364) @@ -5,29 +5,25 @@ qx.$$start = new Date(); if (!window.qxsettings) qxsettings = {}; -var settings = {"qx.application":"silverbluetheme.demo.Application","qx.revision":"unknown","qx.theme":"silverbluetheme.SilverBlueTheme","qx.version":"1.4"}; +var settings = {"qx.application":"silverbluetheme.demo.Application","qx.theme":"silverbluetheme.SilverBlueTheme","qx.version":"1.2"}; for (var k in settings) qxsettings[k] = settings[k]; if (!window.qxvariants) qxvariants = {}; var variants = {}; for (var k in variants) qxvariants[k] = variants[k]; -if (!qx.$$environment) qx.$$environment = {}; -var envinfo = {"qx.application":"silverbluetheme.demo.Application","qx.revision":"unknown","qx.theme":"silverbluetheme.SilverBlueTheme","qx.version":"1.4"}; -for (var k in envinfo) qx.$$environment[k] = envinfo[k]; - if (!qx.$$libraries) qx.$$libraries = {}; -var libinfo = {"__out__":{"sourceUri":"script"},"qx":{"resourceUri":"../../../../../qooxdoo/1.4/framework/source/resource","sourceUri":"../../../../../qooxdoo/1.4/framework/source/class","version":"1.4"},"silverbluetheme":{"resourceUri":"../../../source/resource","sourceUri":"../../../source/class","version":"trunk"},"silverbluetheme.demo":{"resourceUri":"../source/resource","sourceUri":"../source/class","version":"trunk"}}; +var libinfo = {"__out__":{"sourceUri":"script"},"qx":{"resourceUri":"../../../../../qooxdoo/1.2/framework/source/resource","sourceUri":"../../../../../qooxdoo/1.2/framework/source/class","version":"1.2"},"silverbluetheme":{"resourceUri":"../../../source/resource","sourceUri":"../../../source/class","version":"0.1"},"silverbluetheme.demo":{"resourceUri":"../source/resource","sourceUri":"../source/class","version":"0.1"}}; for (var k in libinfo) qx.$$libraries[k] = libinfo[k]; @@ Diff output truncated at 100000 characters. @@ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sc...@us...> - 2011-07-31 10:52:22
|
Revision: 21363 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21363&view=rev Author: scro34 Date: 2011-07-31 10:52:15 +0000 (Sun, 31 Jul 2011) Log Message: ----------- SilverBlueTheme 0.1 created Added Paths: ----------- trunk/qooxdoo-contrib/SilverBlueTheme/0.1/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sc...@us...> - 2011-07-31 10:12:37
|
Revision: 21362 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21362&view=rev Author: scro34 Date: 2011-07-31 10:12:31 +0000 (Sun, 31 Jul 2011) Log Message: ----------- Added qx 1.5 to Manifest.json Modified Paths: -------------- trunk/qooxdoo-contrib/GraydientTheme/trunk/Manifest.json trunk/qooxdoo-contrib/GraydientTheme/trunk/demo/default/Manifest.json trunk/qooxdoo-contrib/GraydientTheme/trunk/demo/default/config.json trunk/qooxdoo-contrib/GraydientTheme/trunk/demo/default/source/script/graydienttheme.demo.js Modified: trunk/qooxdoo-contrib/GraydientTheme/trunk/Manifest.json =================================================================== --- trunk/qooxdoo-contrib/GraydientTheme/trunk/Manifest.json 2011-07-29 16:25:53 UTC (rev 21361) +++ trunk/qooxdoo-contrib/GraydientTheme/trunk/Manifest.json 2011-07-31 10:12:31 UTC (rev 21362) @@ -18,7 +18,7 @@ ], "version" : "trunk", - "qooxdoo-versions": ["1.4"] + "qooxdoo-versions": ["1.4", "1.5"] }, "provides" : Modified: trunk/qooxdoo-contrib/GraydientTheme/trunk/demo/default/Manifest.json =================================================================== --- trunk/qooxdoo-contrib/GraydientTheme/trunk/demo/default/Manifest.json 2011-07-29 16:25:53 UTC (rev 21361) +++ trunk/qooxdoo-contrib/GraydientTheme/trunk/demo/default/Manifest.json 2011-07-31 10:12:31 UTC (rev 21362) @@ -18,7 +18,7 @@ ], "version" : "trunk", - "qooxdoo-versions": ["1.4"] + "qooxdoo-versions": ["1.4", "1.5"] }, "provides" : Modified: trunk/qooxdoo-contrib/GraydientTheme/trunk/demo/default/config.json =================================================================== --- trunk/qooxdoo-contrib/GraydientTheme/trunk/demo/default/config.json 2011-07-29 16:25:53 UTC (rev 21361) +++ trunk/qooxdoo-contrib/GraydientTheme/trunk/demo/default/config.json 2011-07-31 10:12:31 UTC (rev 21362) @@ -37,7 +37,7 @@ "let" : { "APPLICATION" : "graydienttheme.demo", - "QOOXDOO_PATH" : "../../../../qooxdoo/1.4.1", + "QOOXDOO_PATH" : "../../../../qooxdoo/1.5", "QXTHEME" : "graydienttheme.GraydientTheme", "API_EXCLUDE" : ["qx.test.*", "${APPLICATION}.theme.*", "${APPLICATION}.test.*"], "LOCALES" : [ "en" ], Modified: trunk/qooxdoo-contrib/GraydientTheme/trunk/demo/default/source/script/graydienttheme.demo.js =================================================================== --- trunk/qooxdoo-contrib/GraydientTheme/trunk/demo/default/source/script/graydienttheme.demo.js 2011-07-29 16:25:53 UTC (rev 21361) +++ trunk/qooxdoo-contrib/GraydientTheme/trunk/demo/default/source/script/graydienttheme.demo.js 2011-07-31 10:12:31 UTC (rev 21362) @@ -4,32 +4,24 @@ qx.$$start = new Date(); -if (!window.qxsettings) qxsettings = {}; -var settings = {"qx.application":"graydienttheme.demo.Application","qx.revision":"unknown","qx.theme":"graydienttheme.GraydientTheme","qx.version":"1.4"}; -for (var k in settings) qxsettings[k] = settings[k]; - -if (!window.qxvariants) qxvariants = {}; -var variants = {}; -for (var k in variants) qxvariants[k] = variants[k]; - if (!qx.$$environment) qx.$$environment = {}; -var envinfo = {"qx.application":"graydienttheme.demo.Application","qx.revision":"unknown","qx.theme":"graydienttheme.GraydientTheme","qx.version":"1.4"}; +var envinfo = {"qx.application":"graydienttheme.demo.Application","qx.revision":"unknown","qx.theme":"graydienttheme.GraydientTheme","qx.version":"1.5"}; for (var k in envinfo) qx.$$environment[k] = envinfo[k]; if (!qx.$$libraries) qx.$$libraries = {}; -var libinfo = {"__out__":{"sourceUri":"script"},"graydienttheme":{"resourceUri":"../../../source/resource","sourceUri":"../../../source/class","version":"trunk"},"graydienttheme.demo":{"resourceUri":"../source/resource","sourceUri":"../source/class","version":"trunk"},"qx":{"resourceUri":"../../../../../qooxdoo/1.4/framework/source/resource","sourceUri":"../../../../../qooxdoo/1.4/framework/source/class","version":"1.4"}}; +var libinfo = {"__out__":{"sourceUri":"script"},"graydienttheme":{"resourceUri":"../../../source/resource","sourceUri":"../../../source/class","version":"trunk"},"graydienttheme.demo":{"resourceUri":"../source/resource","sourceUri":"../source/class","version":"trunk"},"qx":{"resourceUri":"../../../../../qooxdoo/1.5/framework/source/resource","sourceUri":"../../../../../qooxdoo/1.5/framework/source/class","version":"1.5"}}; for (var k in libinfo) qx.$$libraries[k] = libinfo[k]; @@ Diff output truncated at 100000 characters. @@ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <d_w...@us...> - 2011-07-29 16:26:00
|
Revision: 21361 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21361&view=rev Author: d_wagner Date: 2011-07-29 16:25:53 +0000 (Fri, 29 Jul 2011) Log Message: ----------- Begun rewrite after substantial changes to Playground GUI Modified Paths: -------------- trunk/qooxdoo-contrib/Simulator/trunk/tool/selenium/simulation/playground/test_playground.js Modified: trunk/qooxdoo-contrib/Simulator/trunk/tool/selenium/simulation/playground/test_playground.js =================================================================== --- trunk/qooxdoo-contrib/Simulator/trunk/tool/selenium/simulation/playground/test_playground.js 2011-07-29 11:00:29 UTC (rev 21360) +++ trunk/qooxdoo-contrib/Simulator/trunk/tool/selenium/simulation/playground/test_playground.js 2011-07-29 16:25:53 UTC (rev 21361) @@ -7,8 +7,7 @@ 'testBrowser' : '*custom /usr/lib/firefox-3.0.10/firefox -no-remote -P selenium-3', 'autHost' : 'http://localhost', 'autPath' : '/~dwagner/workspace/qooxdoo.trunk/application/playground/build/index.html', - 'simulatorSvn' : '/home/dwagner/workspace/qooxdoo.contrib/Simulator', - 'editor' : 'Ace' + 'simulatorSvn' : '/home/dwagner/workspace/qooxdoo.contrib/Simulator' }; var args = arguments ? arguments : ""; @@ -26,448 +25,93 @@ var selWin = simulation.Simulation.SELENIUMWINDOW; var qxAppInst = simulation.Simulation.QXAPPINSTANCE; -var locators = { - menuButton : 'qxhv=qx.ui.container.Composite/[@classname="playground.view.Toolbar"]/qx.ui.toolbar.MenuButton', - syntaxHighlightingButton : 'qxh=qx.ui.container.Composite/[@classname="playground.view.Toolbar"]/qx.ui.form.ToggleButton', - editorTextArea : 'qxh=qx.ui.container.Composite/qx.ui.splitpane.Pane/[@classname="playground.view.Editor"]/qx.ui.form.TextArea', - runButton : 'qxh=qx.ui.container.Composite/[@classname="playground.view.Toolbar"]/child[0]', - playgroundApplication : 'qxhv=qx.ui.container.Composite/qx.ui.splitpane.Pane/qx.ui.splitpane.Pane/[@classname=playground.view.PlayArea]/[@classname=playground.view.RiaPlayArea]/qx.ui.container.Scroll/qx.ui.root.Inline', - logButton : 'qxh=qx.ui.container.Composite/[@classname="playground.view.Toolbar"]/qx.ui.toolbar.CheckBox', - gitHubButton : 'qxh=qx.ui.container.Composite/[@classname="playground.view.Toolbar"]/child[3]', - gistMenu : 'qxh=[@classname="playground.view.gist.GistMenu"]', - gistUserNameField : 'qxh=[@classname="playground.view.gist.GistMenu"]/child[0]/qx.ui.form.TextField', - gistLoadButton : 'qxh=[@classname="playground.view.gist.GistMenu"]/[@classname="playground.view.gist.UserNameMenuItem"]/qx.ui.form.Button', - gistMenuButton : 'qxh=[@classname="playground.view.gist.GistMenu"]/child[5]', - shortenUrlButton : 'qxh=qx.ui.container.Composite/[@classname="playground.view.Toolbar"]/[@label="URL"]', - labelFromUrlCode : 'qxhv=qx.ui.container.Composite/qx.ui.splitpane.Pane/qx.ui.splitpane.Pane/[@classname=playground.view.PlayArea]/[@classname=playground.view.RiaPlayArea]/qx.ui.container.Scroll/qx.ui.root.Inline/[@value=Code loaded from URL parameter]' -}; - -var getLogHtml = function() +simulation.Simulation.prototype.initLocators = function() { - var logWidget = selenium.getQxWidgetByLocator('qxhv=qx.ui.container.Composite/qx.ui.splitpane.Pane/*/qx.ui.embed.Html'); - return logWidget.getContentElement().getDomElement().innerHTML; -}; - -var getSampleNames = function(sampleMenuButtonLocator) -{ - var menuWidget = selenium.getQxWidgetByLocator(sampleMenuButtonLocator); - var kids = menuWidget.getMenu().getChildren(); - var sampleNames = ""; - for(var i=0,l=kids.length; i<l; i++) { - if (kids[i].isVisible()) { - sampleNames += kids[i].getLabel() + ","; - } - } - return sampleNames; -}; - -simulation.Simulation.prototype.isSampleLoaded = function(sample) -{ - var sampleLoaded = false; - var log = "Checking if " + sample + " was loaded."; - print(log); - var tmp = "Starting application '" + sample + "'"; - var logHtml = selWin + ".qx.Simulation.getLogHtml()"; - var check = logHtml + '.indexOf("' + tmp + '") > 0'; - var isLoaded = this.getEval(check, log); - if (isLoaded == "true") { - sampleLoaded = true; - } - return sampleLoaded; -}; - -simulation.Simulation.prototype.isSampleStarted = function(sample) -{ - var sampleStarted = false; - var log = "Checking if sample " + sample + " was started successfully."; - print(log); - var logHtml = selWin + ".qx.Simulation.getLogHtml()"; - var check = logHtml + ".indexOf('Successfully started') > 0"; - var isStarted = this.getEval(check, log); - if (isStarted == "true") { - sampleStarted = true; - } + this.locators = { + header : "qxhv=*/[@classname=playground.view.Header]", + toolbar : "qxhv=*/[@classname=playground.view.Toolbar]", + samples : "qxhv=*/qx.ui.splitpane.Pane/child[0]/[@classname=playground.view.Samples]", + editor : "qxhv=*/qx.ui.splitpane.Pane/child[0]/[@classname=playground.view.Editor]", + playArea : "qxhv=child[0]/qx.ui.splitpane.Pane/child[1]/[@classname=playground.view.PlayArea]", + logView : "qxhv=child[0]/qx.ui.splitpane.Pane/child[1]/[@classname=qxc.ui.logpane.LogView]" + }; - var logMsgs = this.getEval(logHtml, "Getting log output from sample " + sample); - if (this.logSampleWarnings(logMsgs, sample)) { - sampleStarted = false; - } - - return sampleStarted; -}; + this.locators.headerButtonDesktop = this.locators.header + "/[@label=Desktop]"; + this.locators.headerButtonMobile = this.locators.header + "/[@label=Mobile]"; + this.locators.toolbarButtonRun = this.locators.toolbar + "/[@label=Run]"; + this.locators.toolbarButtonSamples = this.locators.toolbar + "/[@label=Samples]"; + this.locators.toolbarButtonSyntax = this.locators.toolbar + "/[@label=Syntax Highlighting]"; + this.locators.toolbarButtonLog = this.locators.toolbar + "/[@label=Log]"; + this.locators.toolbarButtonShorten = this.locators.toolbar + "/[@label=Shorten URL]"; + this.locators.toolbarButtonApi = this.locators.toolbar + "/[@label=API Viewer]"; + this.locators.toolbarButtonManual = this.locators.toolbar + "/[@label=Manual]"; + this.locators.toolbarButtonDemo = this.locators.toolbar + "/[@label=Demo Browser]"; + this.locators.samplesList = this.locators.samples + "/qx.ui.list.List"; + this.locators.samplesListWidgetCell = this.locators.samplesList + "/qx.ui.virtual.core.Pane/qx.ui.container.Composite/qx.ui.virtual.layer.WidgetCell"; + this.locators.samplesFileMenu = this.locators.samples + "/qx.ui.toolbar.ToolBar"; + this.locators.samplesButtonSave = this.locators.samplesFileMenu + "/[@icon=drive-harddisk]"; + this.locators.samplesButtonDelete = this.locators.samplesFileMenu + "/[@icon=user-trash]"; + this.locators.samplesButtonRename = this.locators.samplesFileMenu + "/[@icon=insert-text]"; + this.locators.playAreaRia = this.locators.playArea + "/[@classname=playground.view.RiaPlayArea]"; + this.locators.playAreaRiaButtonMaximize = this.locators.playAreaRia + "/*/qx.ui.form.Button"; + this.locators.playAreaRiaRoot = this.locators.playAreaRia + "/qx.ui.container.Scroll/qx.ui.root.Inline"; + this.locators.logViewButtonClear = this.locators.logView + "/*/[@label=Clear]"; + this.locators.logViewEmbedHtml = this.locators.logView + "/qx.ui.embed.Html"; +} -simulation.Simulation.prototype.logSampleWarnings = function(logCont, sample) -{ - var reg = /(<div class="?level-(?:warn|error)"?>.*<\/div>)/gi; - foundErrors = false; - logWarn = reg.exec(logCont); - try { - if (logWarn) { - var level = "warn"; - if (logWarn[1].indexOf("level-error") > 0 ) { - foundErrors = true; - level = error; - } - this.log("Found errors and/or warnings in sample " + sample, "warn"); - this.log(logWarn[1], level); - } - } - catch(ex) {} - - return foundErrors; -}; -simulation.Simulation.prototype.getAceActive = function() +simulation.Simulation.prototype.getSampleLabels = function() { - try { - return this.__sel.isVisible('xpath=//div[contains(@class, "ace_editor")]'); - } catch(ex) { - this.log("Unable to check syntax highlighting: " + ex, "error"); - return false; - } -}; - -simulation.Simulation.prototype.getCodeMirrorActive = function() -{ - try { - var codeMirrorIframe = this.__sel.isVisible('xpath=//iframe[@class="code-mirror-iframe"]'); - var codeMirrorHighlight = this.__sel.isElementPresent('xpath=//span[@class="js-keyword"]'); - codeMirrorHighlight = new String(codeMirrorHighlight); - if (codeMirrorIframe && codeMirrorHighlight == "true") { - return true; - } else { - return false; - } - } catch(ex) { - this.log("Unable to check syntax highlighting: " + ex, "error"); - return false; - } -}; - -simulation.Simulation.prototype.checkEdit = function(sampleName) -{ - try { - this.qxClick(locators.syntaxHighlightingButton, '', 'Deactivating syntax highlighting'); - var newButtonLabel = "Simulator was here"; - var playAreaCode = new String(this.__sel.getQxObjectFunction(locators.editorTextArea, 'getValue')); - var modifiedCode = playAreaCode.replace(/First Button/, newButtonLabel); - this.__sel.type(locators.editorTextArea, modifiedCode); - this.qxClick(locators.syntaxHighlightingButton, '', 'Deactivating syntax highlighting'); - this.qxClick(locators.runButton, '', 'Pressing Run button'); - } catch(ex) { - this.log("Could not edit sample " + sampleName + ": " + ex, "error"); - return false; - } + var sampleLabelGetter = 'var labels = [];' + + 'for (var i=0; i<this.getChildren().length; i++) {' + + 'var kid = this.getChildren()[i];' + + 'if (kid.classname === "qx.ui.form.ListItem") {' + + 'labels.push(kid.getLabel());' + + '}' + + '}' + + 'return labels;'; + var resultJson = this.__sel.getRunInContext(this.locators.samplesListWidgetCell, sampleLabelGetter); + eval("var result = " + resultJson); - var modifiedSampleName = sampleName + " (modified)"; - - var sampleLoaded = this.isSampleLoaded(modifiedSampleName); - var sampleStarted = this.isSampleStarted(modifiedSampleName); - - this.logGlobalErrors(); - this.clearGlobalErrorStore(); - - if (!sampleLoaded || !sampleStarted) { - this.log("Modified sample " + sampleName + " did not start correctly!", "error"); - return false; - } - - try { - var playAppButtonLoc = locators.playgroundApplication + '/qx.ui.form.Button'; - var playAppButtonLabel = new String(this.__sel.getQxObjectFunction(playAppButtonLoc, 'getLabel')); - if (playAppButtonLabel == newButtonLabel) { - this.log("Successfully ran modified sample " + sampleName, "info"); - } else { - this.log("Modification of sample " + sampleName + " failed!", "error"); - } - } catch(ex) { - this.log("Error checking modified sample " + sampleName + ": " + ex, "error"); - return false; - } - - return true; - + return eval(result); }; -simulation.Simulation.prototype.checkUrlParameter = function(pattern) +simulation.Simulation.prototype.testSamples = function() { - var agent = this.getEval('navigator.userAgent'); - if (/MSIE (6|7|8)\.0/.exec(agent)) { - return; + var sampleNames = this.getSampleLabels(); + for (var i=0, l=sampleNames.length; i<l; i++) { + var sampleName = sampleNames[i]; + this.log("Selecting sample " + sampleName, "debug"); + this.__sel.qxClickAt(this.locators.samplesList + "/*/[@label=" + sampleName + "]"); + //TODO: replace with sample load check + java.lang.Thread.sleep(2000); + this.logGlobalErrors(); + this.clearGlobalErrorStore(); } - - this.log("checkUrlParameter: Unloading Playground", "debug"); - // For some reason this throws a "currentDocument is null" - // Selenium error even though it works. - try { - this.__sel.open(this.getConfigSetting("autHost")); - } catch(ex) { - } - - var codeParameter = "#%7B%22code%22%3A%20%22var%2520label%2520%253D%2520new%2520qx.ui.basic.Label(%2522Code%2520loaded%2520from%2520URL%2520parameter%2522)%253B%250Athis.getRoot().add(label)%253B%22%7D"; - - var urlWithParam = this.getConfigSetting("autHost") + "" - + this.getConfigSetting("autPath") + codeParameter; - - this.log("checkUrlParameter: Reloading Playground with code in URL", "debug"); - this.qxOpen(urlWithParam); - var isAppReady = this.waitForCondition(simulation.Simulation.ISQXAPPREADY, 60000, - "Waiting for qooxdoo application"); - - if (!isAppReady) { - this.log("checkUrlParameter: Application did not reload correctly!", "error"); - return; - } - this.addGlobalErrorHandler(); - - try { - this.__sel.qxClick(locators.labelFromUrlCode); - this.log("checkUrlParameter: Code from URL executed correctly", "info"); - } - catch(ex) { - this.log("checkUrlParameter: " + ex.message, "error"); - } }; -simulation.Simulation.prototype.checkSyntaxHighlighting = function(editor) -{ - var browser = this.getConfigSetting("testBrowser").toLowerCase(); - if( browser.indexOf("firefox") >= 0 && browser.indexOf("1.5") >= 0 ) { - this.log("Skipping syntax highlighting check in Firefox 1.5", "info"); - return; - } - - // Check if syntax highlighting is on - if (!this["get" + editor + "Active"]()) { - this.qxClick(locators.syntaxHighlightingButton, '', 'Activating syntax highlighting'); - } - - if (this["get" + editor + "Active"]()) { - this.log("Syntax highlighting is active", "info"); - // Turn off syntax highlighting - this.qxClick(locators.syntaxHighlightingButton, '', 'Deactivating syntax highlighting'); - Packages.java.lang.Thread.sleep(500); - if (this["get" + editor + "Active"]()) { - this.log("Syntax highlighting was not deactivated!", "error"); - } else { - this.log("Syntax highlighting deactivated correctly", "info"); - } - // And turn it on again - this.qxClick(locators.syntaxHighlightingButton, '', 'Deactivating syntax highlighting'); - Packages.java.lang.Thread.sleep(500); - if (this["get" + editor + "Active"]()) { - this.log("Syntax highlighting reactivated correctly", "info"); - } else { - this.log("Syntax highlighting was not reactivated!", "error"); - } - } else { - this.log("Syntax highlighting is not active!", "error"); - } -}; - simulation.Simulation.prototype.runTest = function() { - //this.__sel.windowmaximize(); - // Make sure the locale is 'en' to simplify dealing with log messages. - var setLocale = "qx.locale.Manager.getInstance().setLocale('en')"; - this.runScript(setLocale, "Setting application locale to EN"); - - // Open log pane - this.qxClick(locators.logButton, "", 'Opening log pane'); - - // Add log html getter - this.addOwnFunction("getLogHtml", getLogHtml); - - // Load the first sample again to make sure we get the english log output. - this.qxClick(locators.runButton, '', 'Pressing Run button'); - - this.addOwnFunction("getSampleNames", getSampleNames); - var sampleNames = this.getEval(selWin + ".qx.Simulation.getSampleNames('" + locators.menuButton +"');", "Getting sample names"); - sampleNames = String(sampleNames); - var sampleArr = sampleNames.split(","); - print("Found " + sampleArr.length + " samples: " + sampleArr); - - // Log any errors that might have occurred since the application was started - this.logGlobalErrors(); - this.clearGlobalErrorStore(); - - locators.sampleMenuLocator = locators.menuButton + '/qx.ui.menu.Menu'; - - // Click the menu button so the menu is created - this.qxClick(locators.menuButton, '', 'Clicking menu button'); - var sampleMenuFirstChild = this.__sel.getQxObjectFunction(locators.sampleMenuLocator + '/child[0]', 'toString'); - - if (sampleMenuFirstChild.indexOf("MenuSlideBar") > 0) { - locators.sampleMenuLocator += '/qx.ui.menu.MenuSlideBar'; - } - // Close the menu - this.qxClick(locators.menuButton, '', 'Clicking menu button'); - - var editor = this.getConfigSetting("editor"); - if (editor) { - this.checkSyntaxHighlighting(editor); - } - - var editOk = this.checkEdit(sampleArr[0]); - + this.initLocators(); /* - * This opens a TinyURL window which sends a request to PayPal that causes a - * certificate warning to pop up, breaking the test. - if (editOk) { - this.checkUrlShortening(); - } + Run initial sample + Check for AUT errors + Open/close samples pane */ - - this.checkSampleLoad(sampleArr); - - //this.checkGistFromList(); - - this.checkUrlParameter(); - -}; + this.testSamples(); + /* + Check syntax highlighting toggle + Modify code, run, check result in play area + Save modified sample + Rename saved sample + Delete saved sample + Check for AUT errors -simulation.Simulation.prototype.checkSampleLoad = function(sampleArr) -{ - // Select and check each sample - for (var i=0; i<sampleArr.length; i++) { - if (sampleArr[i] !== "") { - // Webbrowser and YQL Binding cause mixed content warning popups in IE - // when SSL is used. - if ( (sampleArr[i] == "Webbrowser" || sampleArr[i] == "YQL Binding") - && this.getConfigSetting("autHost").indexOf("https:") == 0 - && this.getConfigSetting("testBrowser").indexOf("iexplore") >= 0 ) { - this.log("Skipping sample " + sampleArr[i] + " in IE/SSL", "info"); - continue; - } - this.__sel.chooseOkOnNextConfirmation(); - print("Selecting next sample: " + sampleArr[i]); - this.qxClick(locators.menuButton, '', 'Clicking menu button'); - this.qxClick(locators.sampleMenuLocator + '/child[' + i + ']', '', 'Selecting sample ' + sampleArr[i]); - - try { - this.__sel.getConfirmation(); - } catch(ex) { - // An exception here just means there was no dialog box - } - - Packages.java.lang.Thread.sleep(2000); - - var sampleLoaded = this.isSampleLoaded(sampleArr[i]); - var sampleStarted = this.isSampleStarted(sampleArr[i]); - - this.logGlobalErrors(); - this.clearGlobalErrorStore(); - - if (sampleLoaded && sampleStarted) { - print(sampleArr[i] + " loaded and started."); - this.log("Sample " + sampleArr[i] + " started without errors.", "info"); - } - else { - this.log(sampleArr[i] + " did not load and/or start correctly.", "error"); - } - } - } -}; - -simulation.Simulation.prototype.checkGistFromList = function() -{ - this.qxClick(locators.gitHubButton, "", "Clicking Gist button"); - var filterActive = String(this.__sel.getQxObjectFunction(locators.gistMenu + "/child[1]", "getValue")); - if (filterActive == "true") { - this.log("Gist filter is active", "info"); - } - else { - this.qxClick(locators.gistMenu + "/child[1]", "", "Activating Gist filter"); - } - - // Loading the gist list won't work unless the text field's list item is - // focused (qx bug #3456), so we click it first. - this.qxClick(locators.gistUserNameField, ""); - this.qxType(locators.gistUserNameField, "danielwagner"); - - // Selenium Bug: http://jira.openqa.org/browse/SEL-646 - // Pressing Return only works in IE and FF, so click the button instead for - // the other browsers. - var browser = this.getConfigSetting("testBrowser"); - if (browser.indexOf("googlechrome") >= 0 || browser.indexOf("opera") >= 0 - || browser.indexOf("safari") >= 0) { - this.qxClick(locators.gistLoadButton, "", "Clicking Gist load button"); - } - else { - this.__sel.keyPress(locators.gistUserNameField, "13"); - } - - var checkGistReady = function() - { - try { - var item = selenium.getQxWidgetByLocator('qxh=[@classname="playground.view.gist.GistMenu"]/child[5]'); - if (item.getLabel().toString().indexOf("[qx]") >= 0) { - return true; - } - } catch(ex) { - return false; - } - }; - - this.addOwnFunction("checkGistReady", checkGistReady); - - try { - this.__sel.waitForCondition("selenium.browserbot.getCurrentWindow().qx.Simulation.checkGistReady()", 25000); - } - catch(ex) { - this.log("Gists not loaded after 25 seconds", "warn"); - return; - } - - var gistLabel = this.__sel.getQxObjectFunction(locators.gistMenu + '/child[5]', "getLabel"); - this.log("Found a Gist with the label " + gistLabel, "info"); - this.qxClick(locators.gistMenu + '/child[5]', "", "Selecting Gist"); - - Packages.java.lang.Thread.sleep(3000); - - var sampleStarted = this.isSampleStarted(gistLabel); - - this.logGlobalErrors(); - this.clearGlobalErrorStore(); - - if (sampleStarted) { - this.log("Gist " + gistLabel + " started without errors.", "info"); - } - else { - this.log("Gist " + gistLabel + " did not load and/or start correctly.", "error"); - } - + */ }; -simulation.Simulation.prototype.checkGistFromUrl = function() -{ - var url = this.getConfigSetting("autHost") + this.getConfigSetting("autPath") + "#gist=279900"; - this.__sel.open(url); -}; -simulation.Simulation.prototype.checkUrlShortening = function() -{ - this.qxClick(locators.shortenUrlButton, "", "Clicking Shorten URL"); - Packages.java.lang.Thread.sleep(2000); - var winTitles = this.__sel.getAllWindowTitles(); - var found = false; - for (prop in winTitles) { - if (winTitles[prop].match(/tinyurl/i)) { - found = true; - break; - } - } - if (found) { - this.log("TinyURL.com window opened", "info"); - } - else { - this.log("TinyURL.com window not opened!", "error"); - } - -}; - - // - Main -------------------------------------------------------------------- (function() { @@ -501,7 +145,7 @@ } mySim.log(msg + "<br/>" + ex, "error"); } - + mySim.logGlobalErrors(); mySim.logResults(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <spa...@us...> - 2011-07-29 11:00:36
|
Revision: 21360 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21360&view=rev Author: spackers Date: 2011-07-29 11:00:29 +0000 (Fri, 29 Jul 2011) Log Message: ----------- minor fixes Modified Paths: -------------- trunk/qooxdoo-contrib/UploadMgr/trunk/Manifest.json trunk/qooxdoo-contrib/UploadMgr/trunk/config.json trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/AbstractHandler.js trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/Application.js trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/File.js trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/FormHandler.js trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/MUploadButton.js trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/UploadButton.js trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/XhrHandler.js Added Paths: ----------- trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/UploadMgr.js Removed Paths: ------------- trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/Uploader.js Modified: trunk/qooxdoo-contrib/UploadMgr/trunk/Manifest.json =================================================================== --- trunk/qooxdoo-contrib/UploadMgr/trunk/Manifest.json 2011-07-29 00:42:47 UTC (rev 21359) +++ trunk/qooxdoo-contrib/UploadMgr/trunk/Manifest.json 2011-07-29 11:00:29 UTC (rev 21360) @@ -1,7 +1,7 @@ { "info" : { - "name" : "com.zenesis.qx.upload", + "name" : "UploadMgr", "summary" : "Uploader widget", "description" : "Library for uploading files, with progress feedback and doesn't block UI", Modified: trunk/qooxdoo-contrib/UploadMgr/trunk/config.json =================================================================== --- trunk/qooxdoo-contrib/UploadMgr/trunk/config.json 2011-07-29 00:42:47 UTC (rev 21359) +++ trunk/qooxdoo-contrib/UploadMgr/trunk/config.json 2011-07-29 11:00:29 UTC (rev 21360) @@ -1,5 +1,5 @@ { - "name" : "com.zenesis.qx.upload", + "name" : "UploadMgr", "include" : [ Modified: trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/AbstractHandler.js =================================================================== --- trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/AbstractHandler.js 2011-07-29 00:42:47 UTC (rev 21359) +++ trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/AbstractHandler.js 2011-07-29 11:00:29 UTC (rev 21360) @@ -1,6 +1,6 @@ /* *********************************************************************** - com.zenesis.qx.upload contrib - provides an API for uploading one or multiple files + UploadMgr - provides an API for uploading one or multiple files with progress feedback (on modern browsers), does not block the user interface during uploads, supports cancelling uploads. @@ -31,7 +31,7 @@ /** * Constructor - * @param uploader {com.zenesis.qx.upload.Uploader} controller for uploading + * @param uploader {com.zenesis.qx.upload.UploadMgr} controller for uploading */ construct: function(uploader) { this.base(arguments); @@ -177,7 +177,7 @@ /** * Returns the uploader - * @returns {com.zenesis.qx.upload.Uploader} + * @returns {com.zenesis.qx.upload.UploadMgr} */ _getUploader: function() { return this.__uploader; Modified: trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/Application.js =================================================================== --- trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/Application.js 2011-07-29 00:42:47 UTC (rev 21359) +++ trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/Application.js 2011-07-29 11:00:29 UTC (rev 21360) @@ -1,6 +1,6 @@ /* *********************************************************************** - com.zenesis.qx.upload contrib - provides an API for uploading one or multiple files + UploadMgr - provides an API for uploading one or multiple files with progress feedback (on modern browsers), does not block the user interface during uploads, supports cancelling uploads. @@ -72,19 +72,18 @@ var btn = new com.zenesis.qx.upload.UploadButton("Add File(s)", "com/zenesis/qx/upload/test.png"); var lst = new qx.ui.form.List(); - /* - * Uploader controls the upload process; btn is the widget that will have the input[type=file] - * attached, and "/demoupload" is the path files will be uploaded to (i.e. it's the value used - * for the form's action attribute) - */ - var uploader = new com.zenesis.qx.upload.Uploader(btn, "/demoupload"); + // Uploader controls the upload process; btn is the widget that will have the input[type=file] + // attached, and "/demoupload" is the path files will be uploaded to (i.e. it's the value used + // for the form's action attribute) + // + var uploader = new com.zenesis.qx.upload.UploadMgr(btn, "/demoupload"); uploader.addListener("addFile", function(evt) { var file = evt.getData(), item = new qx.ui.form.ListItem(file.getFilename(), null, file); lst.add(item); // On modern browsers (ie not IE) we will get progress updates - var listenerId = file.addListener("changeProgress", function(evt) { + var progressListenerId = file.addListener("changeProgress", function(evt) { this.debug("Upload " + file.getFilename() + ": " + evt.getData() + " / " + file.getSize() + " - " + Math.round(evt.getData() / file.getSize() * 100) + "%"); item.setLabel(file.getFilename() + ": " + evt.getData() + " / " + file.getSize() + " - " + @@ -92,7 +91,7 @@ }, this); // All browsers can at least get changes in state (ie "uploading", "cancelled", and "uploaded") - file.addListener("changeState", function(evt) { + var stateListenerId = file.addListener("changeState", function(evt) { var state = evt.getData(); this.debug(file.getFilename() + ": state=" + state + ", file size=" + file.getSize() + ", progress=" + file.getProgress()); @@ -104,8 +103,10 @@ else if (state == "cancelled") item.setLabel(file.getFilename() + " (Cancelled)"); - if (state == "uploaded" || state == "cancelled") - file.removeListenerById(listenerId); + if (state == "uploaded" || state == "cancelled") { + file.removeListenerById(stateListenerId); + file.removeListenerById(progressListenerId); + } }, this); @@ -114,9 +115,7 @@ doc.add(btn, { left: 50, top: 50 }); - /* - * Create a button to cancel the upload selected in the list - */ + // Create a button to cancel the upload selected in the list var btnCancel = new qx.ui.form.Button("Cancel download", "qx/icon/Oxygen/22/actions/process-stop.png"); btnCancel.set({ enabled: false }); lst.addListener("changeSelection", function(evt) { @@ -133,22 +132,19 @@ uploader.cancel(file); }, this); - /* - * Auto upload? (default=true) - */ + // Auto upload? (default=true) var cbx = new qx.ui.form.CheckBox("Automatically Upload"); cbx.setValue(true); cbx.addListener("changeValue", function(evt) { uploader.setAutoUpload(evt.getData()); }, this); - /* - * add them to the UI - */ + // add them to the UI lst.set({ width: 350 }); doc.add(cbx, { left: 170, top: 50 }); doc.add(lst, { left: 170, top: 65 }); doc.add(btnCancel, { left: 540, top: 50 }); + } } }); Modified: trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/File.js =================================================================== --- trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/File.js 2011-07-29 00:42:47 UTC (rev 21359) +++ trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/File.js 2011-07-29 11:00:29 UTC (rev 21360) @@ -1,6 +1,6 @@ /* *********************************************************************** - com.zenesis.qx.upload contrib - provides an API for uploading one or multiple files + UploadMgr - provides an API for uploading one or multiple files with progress feedback (on modern browsers), does not block the user interface during uploads, supports cancelling uploads. Modified: trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/FormHandler.js =================================================================== --- trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/FormHandler.js 2011-07-29 00:42:47 UTC (rev 21359) +++ trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/FormHandler.js 2011-07-29 11:00:29 UTC (rev 21360) @@ -1,6 +1,6 @@ /* *********************************************************************** - com.zenesis.qx.upload contrib - provides an API for uploading one or multiple files + UploadMgr - provides an API for uploading one or multiple files with progress feedback (on modern browsers), does not block the user interface during uploads, supports cancelling uploads. Modified: trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/MUploadButton.js =================================================================== --- trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/MUploadButton.js 2011-07-29 00:42:47 UTC (rev 21359) +++ trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/MUploadButton.js 2011-07-29 11:00:29 UTC (rev 21360) @@ -1,6 +1,6 @@ /* *********************************************************************** - com.zenesis.qx.upload contrib - provides an API for uploading one or multiple files + UploadMgr - provides an API for uploading one or multiple files with progress feedback (on modern browsers), does not block the user interface during uploads, supports cancelling uploads. Modified: trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/UploadButton.js =================================================================== --- trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/UploadButton.js 2011-07-29 00:42:47 UTC (rev 21359) +++ trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/UploadButton.js 2011-07-29 11:00:29 UTC (rev 21360) @@ -1,6 +1,6 @@ /* *********************************************************************** - com.zenesis.qx.upload contrib - provides an API for uploading one or multiple files + UploadMgr - provides an API for uploading one or multiple files with progress feedback (on modern browsers), does not block the user interface during uploads, supports cancelling uploads. Copied: trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/UploadMgr.js (from rev 21357, trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/Uploader.js) =================================================================== --- trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/UploadMgr.js (rev 0) +++ trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/UploadMgr.js 2011-07-29 11:00:29 UTC (rev 21360) @@ -0,0 +1,259 @@ +/* *********************************************************************** + + UploadMgr - provides an API for uploading one or multiple files + with progress feedback (on modern browsers), does not block the user + interface during uploads, supports cancelling uploads. + + http://qooxdoo.org + + Copyright: + 2011 Zenesis Limited, http://www.zenesis.com + + License: + LGPL: http://www.gnu.org/licenses/lgpl.html + EPL: http://www.eclipse.org/org/documents/epl-v10.php + + This software is provided under the same licensing terms as Qooxdoo, + please see the LICENSE file in the Qooxdoo project's top-level directory + for details. + + Authors: + * John Spackman (joh...@ze...) + +************************************************************************/ + +/** + * Manages uploading of files to the server; this class can use any suitable + * widget to attach the input[type=file] to, provided the widget includes + * com.zenesis.qx.upload.MUploadButton. + * + * Uploader will use XhrHandler to upload via XMLHttpRequest if supported or + * will fall back to FormHandler. + */ +qx.Class.define("com.zenesis.qx.upload.UploadMgr", { + extend: qx.core.Object, + + construct: function(widget, uploadUrl) { + this.base(arguments); + if (widget) + this.setWidget(widget); + if (uploadUrl) + this.setUploadUrl(uploadUrl); + if (com.zenesis.qx.upload.XhrHandler.isSupported()) + this.__uploadHandler = new com.zenesis.qx.upload.XhrHandler(this); + else + this.__uploadHandler = new com.zenesis.qx.upload.FormHandler(this); + }, + + events: { + /** + * Fired when a file is added to the queue; data is the com.zenesis.qx.upload.File + */ + "addFile": "qx.event.type.Data", + + /** + * Fired when a file starts to be uploaded; data is the com.zenesis.qx.upload.File + */ + "beginUpload": "qx.event.type.Data", + + /** + * Fired when a file has been uploaded; data is the com.zenesis.qx.upload.File + */ + "completeUpload": "qx.event.type.Data", + + /** + * Fired when a file upload has been cancelled; data is the com.zenesis.qx.upload.File + */ + "cancelUpload": "qx.event.type.Data" + }, + + properties: { + /** + * The widget to add the input[type=file] to; this would typically be an instance + * of com.zenesis.qx.upload.UploadButton (see com.zenesis.qx.upload.MUploadButton + * for implementing for other widgets) + */ + widget: { + check: "qx.ui.core.Widget", + init: null, + nullable: true, + apply: "_applyWidget", + event: "changeWidget" + }, + + /** + * The URL to upload to + */ + uploadUrl: { + check: "String", + nullable: false, + init: "", + event: "changeUploadUrl" + }, + + /** + * Whether to automatically start uploading when a file is added (default=true) + */ + autoUpload: { + check: "Boolean", + init: true, + nullable: false, + event: "changeAutoUpload", + apply: "_applyAutoUpload" + }, + + /** + * Whether to support multiple files (default=true); this is not supported on + * older browsers + */ + multiple: { + check: "Boolean", + init: true, + nullable: false, + event: "changeMultiple", + apply: "_applyMultiple" + } + }, + + members: { + __appearListenerId: null, + __inputElement: null, + __uploadHandler: null, + + /** + * Callback for changes to the widget property + * @param value + * @param oldValue + * @param name + */ + _applyWidget: function(value, oldValue, name) { + if (oldValue && this.__appearListenerId) { + oldValue.removeListener(this.__appearListenerId); + } + this.__appearListenerId = null; + if (value) { + this.__appearListenerId = value.addListenerOnce("appear", function(evt) { + value.getContainerElement().addAt(this._createInputElement(), 0); + }, this); + } + }, + + /** + * Callback for changes to the autoUpload property + * @param value + * @param oldValue + */ + _applyAutoUpload: function(value, oldValue) { + this.__uploadHandler.beginUploads(); + }, + + /** + * Callback for changes to the multiple property + * @param value + * @param oldValue + */ + _applyMultiple: function(value, oldValue) { + if (this.__inputElement) { + if (value) + this.__inputElement.setAttribute("multiple", "multiple"); + else + this.__inputElement.removeAttribute("multiple"); + } + }, + + /** + * Cancels a file being uploaded + * @param file + */ + cancel: function(file) { + this.__uploadHandler.cancel(file); + }, + + /** + * Cancels all files being uploaded + * @param file + */ + cancelAll: function() { + this.__uploadHandler.cancelAll(); + }, + + /** + * Creates the input[type=file] element + * @returns + */ + _createInputElement: function() { + var control; + // styling the input[type=file] + // element is a bit tricky. Some browsers just ignore the normal + // css style input. Firefox is especially tricky in this regard. + // since we are providing our one look via the underlying qooxdoo + // button anyway, all we have todo is position the ff upload + // button over the button element. This is tricky in itself + // as the ff upload button consists of a text and a button element + // which are not css accessible themselfes. So the best we can do, + // is align to the top right corner of the upload widget and set its + // font so large that it will cover even realy large underlying buttons. + var css = { + position : "absolute", + cursor : "pointer", + hideFocus : "true", + zIndex: this.getWidget().getZIndex() + 11, + opacity: 0, + // align to the top right hand corner + top: '0px', + right: '0px', + // ff ignores the width setting pick a realy large font size to get + // a huge button that covers the area of the upload button + fontFamily: 'Arial', + // from valums.com/ajax-upload: 4 persons reported this, the max values that worked for them were 243, 236, 236, 118 + fontSize: '118px' + }; + if ((qx.core.Environment && qx.core.Environment.get('browser.name') == 'ie' && qx.core.Environment.get('browser.version') < 9 ) + || ( ! qx.core.Environment && qx.bom.client.Engine.MSHTML && qx.bom.client.Engine.VERSION < 9.0)) { + css.filter = 'alpha(opacity=0)'; + css.width = '200%'; + css.height = '100%'; + } + + control = new qx.html.Element('input',css,{ + type : 'file', + name : 'myinput' + }); + if (this.getMultiple()) + control.setAttribute("multiple", "multiple"); + control.addListener("change", this._onInputChange, this); + this.__inputElement = control; + + return control; + }, + + /** + * Resets the input element - ie discards the current one (which presumably has already + * been queued for uploading) and creates a new one + */ + _resetInputElement: function() { + var el = this.__inputElement, + widget = this.getWidget(); + if (!el) + return; + el.removeListener("change", this._onInputChange, this); + widget.getContainerElement().remove(el); + widget.getContainerElement().addAt(this._createInputElement(), 0); + }, + + /** + * Callback for changes to the input[ty=file]'s value, ie this is called when the user + * has selected a file to upload + * @param evt + */ + _onInputChange: function(evt) { + var el = this.__inputElement; + this._resetInputElement(); + + this.__uploadHandler.addFile(el.getDomElement()); + if (this.getAutoUpload()) + this.__uploadHandler.beginUploads(); + this._resetInputElement(); + } + } +}); \ No newline at end of file Deleted: trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/Uploader.js =================================================================== --- trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/Uploader.js 2011-07-29 00:42:47 UTC (rev 21359) +++ trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/Uploader.js 2011-07-29 11:00:29 UTC (rev 21360) @@ -1,259 +0,0 @@ -/* *********************************************************************** - - com.zenesis.qx.upload contrib - provides an API for uploading one or multiple files - with progress feedback (on modern browsers), does not block the user - interface during uploads, supports cancelling uploads. - - http://qooxdoo.org - - Copyright: - 2011 Zenesis Limited, http://www.zenesis.com - - License: - LGPL: http://www.gnu.org/licenses/lgpl.html - EPL: http://www.eclipse.org/org/documents/epl-v10.php - - This software is provided under the same licensing terms as Qooxdoo, - please see the LICENSE file in the Qooxdoo project's top-level directory - for details. - - Authors: - * John Spackman (joh...@ze...) - -************************************************************************/ - -/** - * Manages uploading of files to the server; this class can use any suitable - * widget to attach the input[type=file] to, provided the widget includes - * com.zenesis.qx.upload.MUploadButton. - * - * Uploader will use XhrHandler to upload via XMLHttpRequest if supported or - * will fall back to FormHandler. - */ -qx.Class.define("com.zenesis.qx.upload.Uploader", { - extend: qx.core.Object, - - construct: function(widget, uploadUrl) { - this.base(arguments); - if (widget) - this.setWidget(widget); - if (uploadUrl) - this.setUploadUrl(uploadUrl); - if (com.zenesis.qx.upload.XhrHandler.isSupported()) - this.__uploadHandler = new com.zenesis.qx.upload.XhrHandler(this); - else - this.__uploadHandler = new com.zenesis.qx.upload.FormHandler(this); - }, - - events: { - /** - * Fired when a file is added to the queue; data is the com.zenesis.qx.upload.File - */ - "addFile": "qx.event.type.Data", - - /** - * Fired when a file starts to be uploaded; data is the com.zenesis.qx.upload.File - */ - "beginUpload": "qx.event.type.Data", - - /** - * Fired when a file has been uploaded; data is the com.zenesis.qx.upload.File - */ - "completeUpload": "qx.event.type.Data", - - /** - * Fired when a file upload has been cancelled; data is the com.zenesis.qx.upload.File - */ - "cancelUpload": "qx.event.type.Data" - }, - - properties: { - /** - * The widget to add the input[type=file] to; this would typically be an instance - * of com.zenesis.qx.upload.UploadButton (see com.zenesis.qx.upload.MUploadButton - * for implementing for other widgets) - */ - widget: { - check: "qx.ui.core.Widget", - init: null, - nullable: true, - apply: "_applyWidget", - event: "changeWidget" - }, - - /** - * The URL to upload to - */ - uploadUrl: { - check: "String", - nullable: false, - init: "", - event: "changeUploadUrl" - }, - - /** - * Whether to automatically start uploading when a file is added (default=true) - */ - autoUpload: { - check: "Boolean", - init: true, - nullable: false, - event: "changeAutoUpload", - apply: "_applyAutoUpload" - }, - - /** - * Whether to support multiple files (default=true); this is not supported on - * older browsers - */ - multiple: { - check: "Boolean", - init: true, - nullable: false, - event: "changeMultiple", - apply: "_applyMultiple" - } - }, - - members: { - __appearListenerId: null, - __inputElement: null, - __uploadHandler: null, - - /** - * Callback for changes to the widget property - * @param value - * @param oldValue - * @param name - */ - _applyWidget: function(value, oldValue, name) { - if (oldValue && this.__appearListenerId) { - oldValue.removeListener(this.__appearListenerId); - } - this.__appearListenerId = null; - if (value) { - this.__appearListenerId = value.addListenerOnce("appear", function(evt) { - value.getContainerElement().addAt(this._createInputElement(), 0); - }, this); - } - }, - - /** - * Callback for changes to the autoUpload property - * @param value - * @param oldValue - */ - _applyAutoUpload: function(value, oldValue) { - this.__uploadHandler.beginUploads(); - }, - - /** - * Callback for changes to the multiple property - * @param value - * @param oldValue - */ - _applyMultiple: function(value, oldValue) { - if (this.__inputElement) { - if (value) - this.__inputElement.setAttribute("multiple", "multiple"); - else - this.__inputElement.removeAttribute("multiple"); - } - }, - - /** - * Cancels a file being uploaded - * @param file - */ - cancel: function(file) { - this.__uploadHandler.cancel(file); - }, - - /** - * Cancels all files being uploaded - * @param file - */ - cancelAll: function() { - this.__uploadHandler.cancelAll(); - }, - - /** - * Creates the input[type=file] element - * @returns - */ - _createInputElement: function() { - var control; - // styling the input[type=file] - // element is a bit tricky. Some browsers just ignore the normal - // css style input. Firefox is especially tricky in this regard. - // since we are providing our one look via the underlying qooxdoo - // button anyway, all we have todo is position the ff upload - // button over the button element. This is tricky in itself - // as the ff upload button consists of a text and a button element - // which are not css accessible themselfes. So the best we can do, - // is align to the top right corner of the upload widget and set its - // font so large that it will cover even realy large underlying buttons. - var css = { - position : "absolute", - cursor : "pointer", - hideFocus : "true", - zIndex: this.getWidget().getZIndex() + 11, - opacity: 0, - // align to the top right hand corner - top: '0px', - right: '0px', - // ff ignores the width setting pick a realy large font size to get - // a huge button that covers the area of the upload button - fontFamily: 'Arial', - // from valums.com/ajax-upload: 4 persons reported this, the max values that worked for them were 243, 236, 236, 118 - fontSize: '118px' - }; - if ((qx.core.Environment && qx.core.Environment.get('browser.name') == 'ie' && qx.core.Environment.get('browser.version') < 9 ) - || ( ! qx.core.Environment && qx.bom.client.Engine.MSHTML && qx.bom.client.Engine.VERSION < 9.0)) { - css.filter = 'alpha(opacity=0)'; - css.width = '200%'; - css.height = '100%'; - } - - control = new qx.html.Element('input',css,{ - type : 'file', - name : 'myinput' - }); - if (this.getMultiple()) - control.setAttribute("multiple", "multiple"); - control.addListener("change", this._onInputChange, this); - this.__inputElement = control; - - return control; - }, - - /** - * Resets the input element - ie discards the current one (which presumably has already - * been queued for uploading) and creates a new one - */ - _resetInputElement: function() { - var el = this.__inputElement, - widget = this.getWidget(); - if (!el) - return; - el.removeListener("change", this._onInputChange, this); - widget.getContainerElement().remove(el); - widget.getContainerElement().addAt(this._createInputElement(), 0); - }, - - /** - * Callback for changes to the input[ty=file]'s value, ie this is called when the user - * has selected a file to upload - * @param evt - */ - _onInputChange: function(evt) { - var el = this.__inputElement; - this._resetInputElement(); - - this.__uploadHandler.addFile(el.getDomElement()); - if (this.getAutoUpload()) - this.__uploadHandler.beginUploads(); - this._resetInputElement(); - } - } -}); \ No newline at end of file Modified: trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/XhrHandler.js =================================================================== --- trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/XhrHandler.js 2011-07-29 00:42:47 UTC (rev 21359) +++ trunk/qooxdoo-contrib/UploadMgr/trunk/source/class/com/zenesis/qx/upload/XhrHandler.js 2011-07-29 11:00:29 UTC (rev 21360) @@ -1,6 +1,6 @@ /* *********************************************************************** - com.zenesis.qx.upload contrib - provides an API for uploading one or multiple files + UploadMgr - provides an API for uploading one or multiple files with progress feedback (on modern browsers), does not block the user interface during uploads, supports cancelling uploads. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <de...@us...> - 2011-07-29 00:42:53
|
Revision: 21359 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21359&view=rev Author: derrell Date: 2011-07-29 00:42:47 +0000 (Fri, 29 Jul 2011) Log Message: ----------- more composite key fixes: remove() Modified Paths: -------------- trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/appengine/Dbif.js trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/sim/Dbif.js Modified: trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/appengine/Dbif.js =================================================================== --- trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/appengine/Dbif.js 2011-07-28 21:29:23 UTC (rev 21358) +++ trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/appengine/Dbif.js 2011-07-29 00:42:47 UTC (rev 21359) @@ -539,12 +539,33 @@ remove : function(entity) { var entityData = entity.getData(); - var key = entityData[entity.getEntityKeyProperty()]; + var keyProperty = entity.getEntityKeyProperty(); var type = entity.getEntityType(); + var propertyName; + var fields; + var key; + var keyFields = []; var dbKey; var datastore; var Datastore; + // Are we working with a composite key? + if (qx.lang.Type.getClass(keyProperty) == "Array") + { + // Yup. Build the composite key from these fields + keyProperty.forEach( + function(fieldName) + { + keyFields.push(entityData[fieldName]); + }); + key = rpcjs.sim.Dbif._buildCompositeKey(keyFields); + } + else + { + // Retrieve the (single field) key + key = entityData[keyProperty]; + } + // Create the database key value Datastore = Packages.com.google.appengine.api.datastore; dbKey = Datastore.KeyFactory.createKey(type, key); Modified: trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/sim/Dbif.js =================================================================== --- trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/sim/Dbif.js 2011-07-28 21:29:23 UTC (rev 21358) +++ trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/sim/Dbif.js 2011-07-29 00:42:47 UTC (rev 21359) @@ -441,9 +441,30 @@ remove : function(entity) { var entityData = entity.getData(); - var key = entityData[entity.getEntityKeyProperty()]; + var keyProperty = entity.getEntityKeyProperty(); var type = entity.getEntityType(); + var propertyName; + var fields; + var key; + var keyFields = []; + // Are we working with a composite key? + if (qx.lang.Type.getClass(keyProperty) == "Array") + { + // Yup. Build the composite key from these fields + keyProperty.forEach( + function(fieldName) + { + keyFields.push(entityData[fieldName]); + }); + key = rpcjs.sim.Dbif._buildCompositeKey(keyFields); + } + else + { + // Retrieve the (single field) key + key = entityData[keyProperty]; + } + delete rpcjs.sim.Dbif.Database[type][key]; // Write it to Web Storage This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <de...@us...> - 2011-07-28 21:29:29
|
Revision: 21358 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21358&view=rev Author: derrell Date: 2011-07-28 21:29:23 +0000 (Thu, 28 Jul 2011) Log Message: ----------- Fix composite keys in put() Modified Paths: -------------- trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/appengine/Dbif.js trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/sim/Dbif.js Modified: trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/appengine/Dbif.js =================================================================== --- trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/appengine/Dbif.js 2011-07-28 09:33:34 UTC (rev 21357) +++ trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/appengine/Dbif.js 2011-07-28 21:29:23 UTC (rev 21358) @@ -366,14 +366,32 @@ var Datastore; var entityData = entity.getData(); var keyProperty = entity.getEntityKeyProperty(); - var key = entityData[keyProperty]; var type = entity.getEntityType(); var propertyName; var propertyType; var fields; var fieldName; var data; + var key; + var keyFields = []; + // Are we working with a composite key? + if (qx.lang.Type.getClass(keyProperty) == "Array") + { + // Yup. Build the composite key from these fields + keyProperty.forEach( + function(fieldName) + { + keyFields.push(entityData[fieldName]); + }); + key = rpcjs.appengine.Dbif._buildCompositeKey(keyFields); + } + else + { + // Retrieve the (single field) key + key = entityData[keyProperty]; + } + // Ensure that there's either a real key or no key; not empty string if (key == "") { @@ -422,7 +440,7 @@ case "Array": // Build a composite key string from these key values - key = this.constructor._buildCompositeKey(key); + key = rpcjs.appengine.Dbif._buildCompositeKey(key); break; case "String": Modified: trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/sim/Dbif.js =================================================================== --- trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/sim/Dbif.js 2011-07-28 09:33:34 UTC (rev 21357) +++ trunk/qooxdoo-contrib/RpcJs/trunk/source/class/rpcjs/sim/Dbif.js 2011-07-28 21:29:23 UTC (rev 21358) @@ -340,11 +340,29 @@ var data = {}; var entityData = entity.getData(); var keyProperty = entity.getEntityKeyProperty(); - var key = entityData[keyProperty]; var type = entity.getEntityType(); var propertyName; var fields; + var key; + var keyFields = []; + // Are we working with a composite key? + if (qx.lang.Type.getClass(keyProperty) == "Array") + { + // Yup. Build the composite key from these fields + keyProperty.forEach( + function(fieldName) + { + keyFields.push(entityData[fieldName]); + }); + key = rpcjs.sim.Dbif._buildCompositeKey(keyFields); + } + else + { + // Retrieve the (single field) key + key = entityData[keyProperty]; + } + // Get the field names for this entity type fields = entity.getDatabaseProperties().fields; @@ -377,7 +395,7 @@ // If there's no key, then generate a new key if (isNaN(key)) { - key = String(this.constructor.__nextKey++); + key = String(rpcjs.sim.Dbif.__nextKey++); } // Save this key in the key field @@ -386,7 +404,7 @@ case "Array": // Build a composite key string from these key values - key = this.constructor._buildCompositeKey(key); + key = rpcjs.sim.Dbif._buildCompositeKey(key); break; case "String": This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <spa...@us...> - 2011-07-28 09:33:41
|
Revision: 21357 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21357&view=rev Author: spackers Date: 2011-07-28 09:33:34 +0000 (Thu, 28 Jul 2011) Log Message: ----------- Added Paths: ----------- trunk/qooxdoo-contrib/UploadMgr/ Removed Paths: ------------- trunk/qooxdoo-contrib/upload-mgr/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <spa...@us...> - 2011-07-28 09:13:43
|
Revision: 21356 http://qooxdoo-contrib.svn.sourceforge.net/qooxdoo-contrib/?rev=21356&view=rev Author: spackers Date: 2011-07-28 09:13:32 +0000 (Thu, 28 Jul 2011) Log Message: ----------- Added Paths: ----------- trunk/qooxdoo-contrib/upload-mgr/ Removed Paths: ------------- trunk/qooxdoo-contrib/file-uploader/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |