Author: hqm
Date: 2008-02-05 21:17:39 -0800 (Tue, 05 Feb 2008)
New Revision: 7964

Added:
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/LzState.js
Modified:
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/Library.lzs
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
Log:
Change 20080206-hqm-6 by [EMAIL PROTECTED] on 2008-02-06 00:13:59 EST
    in /cygdrive/c/users/hqm/openlaszlo/devildog/WEB-INF/lps/lfc
    for http://svn.openlaszlo.org/openlaszlo/branches/devildog/WEB-INF/lps/lfc

Summary:  checkpoint of work on LzState

New Features:

Bugs Fixed:

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

unfinished version lzstate.js swf9 version

remove some debug printing in keyboard sub-kernel
    
expose static setters vars in LzNode to subclasses can use them


Tests:



Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js 2008-02-05 
19:08:02 UTC (rev 7963)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js 2008-02-06 
05:17:39 UTC (rev 7964)
@@ -2107,8 +2107,15 @@
 
 
 
-dynamic class LzNode extends LFCNode {
-    function LzNode ( parent:* , attrs:* , children:* = null, instcall:*  = 
null) {
+dynamic public class LzNode extends LFCNode {
+    static var getters = new LzInheritedHash(LFCNode.getters);
+    static var defaultattrs = new LzInheritedHash(LFCNode.defaultattrs);
+    static var options = new LzInheritedHash(LFCNode.options);
+    static var setters = new LzInheritedHash(LFCNode.setters);
+    static var __LZdelayedSetters:* = new 
LzInheritedHash(LFCNode.__LZdelayedSetters);
+    static var earlySetters:* = new LzInheritedHash(LFCNode.earlySetters);
+
+    public function LzNode ( parent:* , attrs:* , children:* = null, 
instcall:*  = null) {
         super(parent,attrs,children,instcall);
     }
 

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/Library.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/Library.lzs    
2008-02-05 19:08:02 UTC (rev 7963)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/Library.lzs    
2008-02-06 05:17:39 UTC (rev 7964)
@@ -28,9 +28,12 @@
 }
 
 if ($swf9) {
-
+    //    #include "helpers/LzState.js"
 } else {
     #include "helpers/LzState.lzs"
 }
 
 
+
+
+

Added: openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/LzState.js


Property changes on: 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/LzState.js
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Modified: 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as  
2008-02-05 19:08:02 UTC (rev 7963)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as  
2008-02-06 05:17:39 UTC (rev 7964)
@@ -38,9 +38,15 @@
 
         stage.addEventListener(KeyboardEvent.KEY_DOWN,reportKeyDown);
         stage.addEventListener(KeyboardEvent.KEY_UP,reportKeyUp);
-        stage.addEventListener(MouseEvent.CLICK, reportClick);
-        stage.addEventListener(MouseEvent.MOUSE_WHEEL, reportWheel);
 
+        
+        /* TODO [hqm 2008-01] Do we want to do anything with other
+         * events, like click, or mousewheel ?
+
+           stage.addEventListener(MouseEvent.CLICK, reportClick);
+           stage.addEventListener(MouseEvent.MOUSE_WHEEL, reportWheel);
+        */
+
         LzKeyboardKernel.setCallback(LzKeys, '__keyEvent');
 
         ////////////////////////////////////////////////////////////////
@@ -68,32 +74,43 @@
 
     function reportClick(event:MouseEvent):void
     {
-        trace(event.currentTarget.toString() + 
+        /*
+          trace(event.currentTarget.toString() + 
               " dispatches MouseEvent. Local coords [" + 
               event.localX + "," + event.localY + "] Stage coords [" + 
               event.stageX + "," + event.stageY + "]");
+        */
     }
 
     function reportKeyUp(event:KeyboardEvent):void {
-        trace("Key Released: " + String.fromCharCode(event.charCode) + 
+        /*
+          trace("Key Released: " + String.fromCharCode(event.charCode) + 
               " (key code: " + event.keyCode + " character code: " + 
               event.charCode + ")");
+        */
         LzKeyboardKernel.__keyboardEvent(event.charCode, 'onkeyup');
     }
 
     function reportKeyDown(event:KeyboardEvent):void {
-        trace("Key Pressed: " + String.fromCharCode(event.charCode) + 
+        /*
+          trace("Key Pressed: " + String.fromCharCode(event.charCode) + 
               " (key code: " + event.keyCode + " character code: " 
               + event.charCode + ")");
+        */
         LzKeyboardKernel.__keyboardEvent(event.charCode, 'onkeydown');
     }
 
-
+    ////////////////////////////////////////////////////////////////
+    // A crude debugger output window for now
     public var consoletext:TextField;
     
     public function write (msg:*) {
         consoletext.text = msg;
     }
+    ////////////////////////////////////////////////////////////////
+
+
+
         /**
          * __idleupdate is a callback function from LzIdleKernel.
          * Treat it as a static function (ie. Don't reference 'this')


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to