[Laszlo-dev] For Review: Change 20070124-maxcarlson-1 Summary: Add LzCursor support for DHTML, fix LzCursor support in SWF
Max Carlson
max at openlaszlo.org
Wed Jan 24 12:08:54 PST 2007
Change 20070124-maxcarlson-1 by maxcarlson at max-carlsons-
computer.local on 2007-01-24 11:54:03 PST
in /Users/maxcarlson/openlaszlo/legals
Summary: Add LzCursor support for DHTML, fix LzCursor support in SWF
New Features: Add LzCursor support for DHTML, fix LzCursor support in
SWF
Bugs Fixed: LPP-2624 - DHTML: implement cursor control, LPP-2584 -
Lzpix: problem with multi-selecting images in Safari 2.0.4, dhtml
Technical Reviewer: promanik
QA Reviewer: hminsky
Doc Reviewer: (pending)
Documentation:
Release Notes: You can now set custom cursors in DHTML and SWF. If
you plan to use custom cursors across DHTML and SWF, be sure you're
using appropriate cursor IDs for DHTML (see http://www.quirksmode.org/
css/cursor.html for more info), and make sure you've included
resources named after those IDs for SWF. See test/cursors.lzx for an
example.
Details: Adds consistent support for custom cursors across dhtml and
swf.
test/* - added testcase that exercises cursor functionality
LzMouseKernel.as - added global LzCursor APIs
LzSprite.as - Added setCursor()
LzKeyboardKernel.js - added fix for LPP-2584 where Safari has alt key
also send control key event by setting alt_key_sends_control quirk to
true.
LzSprite.js - Added alt_key_sends_control and
hand_pointer_for_clickable quirks. hand_pointer_for_clickable is
true by default to be more consistent with swf.
alt_key_sends_control is turned on only by Safari. Added
setShowHandCursor() and setCursor().
LzMouseKernel.js - added global LzCursor APIs
LzCursor.as - Now calls sprite LzMouseKernel APIs for global cursor
control.
platform/dhtml/LzCursor.js - no longer needed.
Library.lzs - Clean up includes for cursor.o
LaszloView.lzs - setCursor() calls sprite implementation
Tests: test/cursors.lzx should perform consistently across SWF and
DHTML - except I wasn't able to find a wait cursor that looks like a
watch for swf, and global cursors only work for clickable items in
DHTML.
Files:
A test/cursors.lzx
A test/resources/png/cursor_wait.png
A test/resources/png/cursor_crosshair.png
M WEB-INF/lps/lfc/kernel/swf/LzMouseKernel.as
M WEB-INF/lps/lfc/kernel/swf/LzSprite.as
M WEB-INF/lps/lfc/kernel/dhtml/LzKeyboardKernel.js
M WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js
D WEB-INF/lps/lfc/services/platform/dhtml/LzCursor.js
M WEB-INF/lps/lfc/services/LzCursor.as
M WEB-INF/lps/lfc/services/Library.lzs
M WEB-INF/lps/lfc/views/LaszloView.lzs
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070124-
maxcarlson-1.tar
More information about the Laszlo-dev
mailing list