From: <ha...@us...> - 2009-11-26 17:01:54
|
Revision: 11802 http://jmol.svn.sourceforge.net/jmol/?rev=11802&view=rev Author: hansonr Date: 2009-11-26 17:01:46 +0000 (Thu, 26 Nov 2009) Log Message: ----------- version=11.9.10_dev # new feature: set timeout "name" mSecDelay "script" # if mSecDelay > 0, then the script runs once # if mSecDelay < 0, then the script runs every -mSecDelay milliseconds # if mSecDelay = 0 or script is "", cancels the named timeout # new feature: set timeout "name" OFF # cancels the named timeout # new feature: set timeout OFF # cancels all current timeouts # new feature: show timeouts displays currently set timeout information Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/ActionManager.java Modified: trunk/Jmol/src/org/jmol/viewer/ActionManager.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/ActionManager.java 2009-11-26 16:28:23 UTC (rev 11801) +++ trunk/Jmol/src/org/jmol/viewer/ActionManager.java 2009-11-26 17:01:46 UTC (rev 11802) @@ -1010,9 +1010,11 @@ continue; status++; targetTime += Math.abs(ms); + if (ms > 0) + timeouts.remove(name); if (Logger.debugging) viewer.script(script); - else + else viewer.evalStringQuiet(script); if (ms > 0) break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |