From: <ha...@us...> - 2009-11-19 23:03:54
|
Revision: 11765 http://jmol.svn.sourceforge.net/jmol/?rev=11765&view=rev Author: hansonr Date: 2009-11-19 23:03:47 +0000 (Thu, 19 Nov 2009) Log Message: ----------- version=11.9.9_dev # new feature: preliminary customizable mouse bindings: # # bind "MOUSE-ACTION" actionName|"...some script..." # unbind ["MOUSE-ACTION"|all] [actionName|all|"...some script..."] # # mouse actions include: # # CTRL ALT SHIFT LEFT RIGHT MIDDLE WHEEL DOUBLE SINGLE # # action names include: # # _rotate _wheelZoom _rotateZ _rotateZorZoom _translate _slideZoom # _dragSelected _rotateSelected _dragLabel _dragDrawPoint _dragDrawObject # _swipe _spinDrawObjectCW _spinDrawObjectCCW _slab _depth _slabAndDepth # _popupMenu _clickFrank _navTranslate _pickAtom _pickPoint _pickLabel # _pickMeasure _setMeasure _pickIsosurface _pickNavigate _select # _selectNone _selectToggle _selectAndNot _selectOr _selectToggleOr # _reset # # for example: # # bind "CTRL-ALT-LEFT" _popupMenu # unbind "CTRL-ALT-LEFT" _popupMenu # unbind _clickFrank # unbind "CTRL-ALT-LEFT" # # Note that by binding a script to the mouse action, you can divert # Jmol's action to be your own. The script can contain variables # _X, _Y, _DELTAX, _DELTAY, _TIME, and _MODE # which will be filled with data. _MODE values include: # 0 (mouse pressed) # 1 (mouse dragged) # 2 (mouse released) # 3 (mouse wheeled) # Modified Paths: -------------- trunk/Jmol/src/org/jmol/script/ScriptEvaluator.java Modified: trunk/Jmol/src/org/jmol/script/ScriptEvaluator.java =================================================================== --- trunk/Jmol/src/org/jmol/script/ScriptEvaluator.java 2009-11-19 22:49:04 UTC (rev 11764) +++ trunk/Jmol/src/org/jmol/script/ScriptEvaluator.java 2009-11-19 23:03:47 UTC (rev 11765) @@ -4754,10 +4754,10 @@ break; case Token.bind: bind(); - return; + break; case Token.unbind: unbind(); - return; + break; default: error(ERROR_unrecognizedCommand); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |