Author: hqm
Date: 2008-01-06 13:19:47 -0800 (Sun, 06 Jan 2008)
New Revision: 7748

Modified:
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/LaszloLibrary.lzs
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/dummyclasses.js
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/events/LaszloEvents.js
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/Library.lzs
Log:
checkpoint mini lfc

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/LaszloLibrary.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/LaszloLibrary.lzs      
2008-01-06 19:58:37 UTC (rev 7747)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/LaszloLibrary.lzs      
2008-01-06 21:19:47 UTC (rev 7748)
@@ -24,7 +24,15 @@
 #include "views/Library.lzs"
   //#include "controllers/Library.lzs"
 
+  //#include "helpers/Library.lzs"
+  //  #include "data/Library.lzs"
+#include "services/Library.lzs"
+  //#include "glue/Library.lzs"
 
+
+
+
+
   //Debugger placeholder
 #include "debugger/swf9stubs.lzs"
 

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js 2008-01-06 
19:58:37 UTC (rev 7747)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js 2008-01-06 
21:19:47 UTC (rev 7748)
@@ -61,6 +61,7 @@
   * @modifiers override 
   */
   static var tagname = 'node';
+  ConstructorMap[tagname] = LzNode;
 
 /**
   * @param LzNode parent: a node above this one in the hierarchy -- not
@@ -211,6 +212,8 @@
             }
         }
 
+        trace("LzNode calls this.construct", parent, maskedargs);
+
         this.construct(  parent , maskedargs );
 
         //        this.setClassEvents( this.constructor );
@@ -891,6 +894,7 @@
   * @access private
   */
     function __LZapplyArgs ( args , constcall = null ){
+        trace('__LZapplyArgs', this, objAsString(args));
       var oset = {};
       var hasset = [];
       var hasearly = null;
@@ -899,6 +903,7 @@
       }
 
       var setrs = this.setters;
+      trace('this.setters = ', objAsString(this.setters));
 
       for ( var a in args ){
           //handle flash bug where objects slots are enumerated multiple times
@@ -916,6 +921,7 @@
                   } 
               }
           } else if (setrs &&  setrs[ a ] != -1 ){
+              trace('.. got setter ',a, setrs[a]);
               if ( this.earlySetters && this.earlySetters[ a ]){
                   if ( hasearly == null){
                       hasearly = [];
@@ -936,6 +942,7 @@
 
       while(  hasset.length ){
           var a = hasset.pop();
+          trace('calling setter', a, args[a]);
           this[ setrs[a] ]( args[ a ] , a );
       }
 }
@@ -1264,7 +1271,7 @@
 /**
   * @access private
   */
-function __LZstoreDelegates ( delarr ){
+    function __LZstoreDelegates ( delarr, ignore = null ){
     //delarr is a sequence of triplets of the form
     //... eventname, methodname, referenceFunction
 
@@ -2072,6 +2079,15 @@
     }
 }
 
+public static function objAsString(obj) {
+    var s = "";
+        for (var k in obj) {
+            s+= k +": "+obj[k];
+            s+=", ";
+        }
+        return s;
+    }
+
 /**
   * @access private
   */
@@ -2086,6 +2102,12 @@
   this.makeChild( dpobj , true);
 }
 
+
+
+////////////////////////////////////////////////////////////////
+    //debugging temp func
+
+
 } // End of LzNode
 
 

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/dummyclasses.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/dummyclasses.js   
2008-01-06 19:58:37 UTC (rev 7747)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/dummyclasses.js   
2008-01-06 21:19:47 UTC (rev 7748)
@@ -9,7 +9,8 @@
 var canvas:LzCanvas;
 
 
-public class LzInstantiator {
+/*
+  public class LzInstantiator {
     public static var syncNew:Boolean = true;
     public static function createImmediate(a:*, b:*):void {
         trace("LzInstantiator.createImmediate called with ",a,b);
@@ -25,6 +26,8 @@
     }
 }
 
+*/
+
 public class LzParsedPath {
     public static function trim(rp:String):String { return rp; }
 }
@@ -53,3 +56,14 @@
     public function LzAnimator(...rest){}
     trace('dummy LzAnimator declared in core/dummyclasses.js');
 }
+
+public class LzGlobalMouse {
+    public function LzGlobalMouse(...rest){}
+}
+
+public class LzBrowser {
+    public static function getInitArg(key:*) {
+        trace('dummy LzBrowser getInitArg declared in core/dummyclasses.js');
+        return null;
+    }
+}

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/events/LaszloEvents.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/events/LaszloEvents.js 
2008-01-06 19:58:37 UTC (rev 7747)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/events/LaszloEvents.js 
2008-01-06 21:19:47 UTC (rev 7748)
@@ -1,6 +1,6 @@
 /**
   *
-  * @copyright Copyright 2001-2007 Laszlo Systems, Inc.  All Rights Reserved.
+  * @copyright Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.
   *            Use is subject to license terms.
   *
   * @affects lzevent lzdelegate
@@ -24,6 +24,7 @@
 class LzDelegate {
 
     var __delegateID:int = 0;
+    var events:Array;
 
 /**
   *
@@ -39,6 +40,7 @@
     //     if ($debug) {
     //         this._dbg_created = Debug.backtrace();
     //     }
+        this.events = [];
   this.c = context;
   if ( $debug ){
     if (typeof(functionName) != "string") 
@@ -124,7 +126,7 @@
         anEvent.addDelegate( this );
     }
 
-    this[ this.lastevent++ ] = anEvent;
+    this.events[ this.lastevent++ ] = anEvent;
 
     // If debugging, add an informative name
     if ($debug) {
@@ -149,8 +151,8 @@
   */
 function unregisterAll ( ){
     for (var i = 0; i< this.lastevent ; i++){
-        this[ i ].removeDelegate( this );
-        this[ i ] = null;
+        this.events[ i ].removeDelegate( this );
+        this.events[ i ] = null;
     }
     this.lastevent = 0;
 }
@@ -163,19 +165,19 @@
 function unregisterFrom ( event ){
     var keep = [];
     for (var i = 0; i< this.lastevent ; i++){
-        var ev = this[ i ]; 
+        var ev = this.events[ i ]; 
         if ( ev == event ){
             ev.removeDelegate( this );
         } else {
             keep.push( ev );
         }
-        this[ i ] = null;
+        this.events[ i ] = null;
     }
     //now fix it 
     this.lastevent = 0;
     var l = keep.length;
     for ( var i = 0; i < l; i++ ){
-        this[ this.lastevent++ ] = keep[ i ];
+        this.events[ this.lastevent++ ] = keep[ i ];
     }
 }
 
@@ -234,8 +236,8 @@
   */
 function _dbg_name (){
     var name = Debug.formatToString("%0.48w.%s()", this.c, this.f);
-    if (this[0]) {
-      name += Debug.formatToString("/* handles %w%s */", this[0], this[1]?" 
...":"");
+    if (this.events[0]) {
+      name += Debug.formatToString("/* handles %w%s */", this.events[0], 
this.events[1]?" ...":"");
     }
     return name;
 }

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as        
2008-01-06 19:58:37 UTC (rev 7747)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as        
2008-01-06 21:19:47 UTC (rev 7748)
@@ -59,6 +59,20 @@
       public var _setrescheight:Boolean = false;
 
 
+      public static var capabilities:* = {
+      rotation: true
+      // Avoid scaling canvas to percentage values - SWF already scales the 
viewport size, so take window size literally to avoid scaling twice
+      ,scalecanvastopercentage: false
+      // the canvas already knows its size
+      ,readcanvassizefromsprite: false
+      ,opacity: true
+      ,colortransform: true
+      ,audio: true
+      ,accessibility: true
+      ,htmlinputtext: true
+      ,advancedfonts: true
+      }
+
       public function LzSprite (... initargs) {
           // owner:*, isroot:Boolean
           if (initargs.length == 2) {
@@ -109,7 +123,7 @@
           o Loads and displays media from the specified url
           o Uses the resourceload callback method when the resource finishes 
loading 
       */
-      public function setSource (url:String):void {
+      public function setSource (url:String, cache = null, headers = 
null):void {
           this.resourceURL = url;
           imgLoader = new Loader();
           this.addChildAt(imgLoader, IMGDEPTH);
@@ -263,9 +277,15 @@
           o Can be a number (0xff00ff):void or a string ('#ff00ff'):void 
       */
       public function setColor( color:* ):void {
+          trace('LzSprite.setColor not yet implemented');
       }
 
+      public function getColor  (){
+          trace('LzSprite.getColor not yet implemented');
+      }
 
+
+
       /** setBGColor( String/Number:color )
           o Sets the background color of the sprite
           o Can be a number (0xff00ff):void or a string ('#ff00ff'):void 
@@ -432,6 +452,15 @@
           // NYI
           return null;
       }
+
+      public function unload() {
+          trace('LzSprite.unload not yet implemented');
+      }
+
+      public function setAccessible(accessible:*) {
+          trace('LzSprite.setAccessible not yet implemented');
+      }
+
   }#
   }
 

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/Library.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/Library.lzs   
2008-01-06 19:58:37 UTC (rev 7747)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/Library.lzs   
2008-01-06 21:19:47 UTC (rev 7748)
@@ -1,22 +1,30 @@
 /**
   * Library.lzs
   *
-  * @copyright Copyright 2001-2007 Laszlo Systems, Inc.  All Rights Reserved.
+  * @copyright Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.
   *            Use is subject to license terms.
   *
   * @access private
   */
 
+if ($swf9) {
+#include "services/LzInstantiator.js"
+} else {
+
 #include "services/LzInstantiator.lzs"
 #include "services/LzGlobalMouse.lzs"
 #include "services/LzModeManager.lzs"
 #include "services/LzCursor.lzs"
 #include "services/LzURL.lzs"
+}
+
 if ($js1) {
     #include "services/platform/dhtml/LzModeManager.js"
     #include "services/platform/dhtml/LzBrowser.js"
     #include "services/platform/dhtml/LzKeys.js"
     #include "services/platform/dhtml/LzHistory.js"
+} else if ($swf9) {
+    //
 } else if ($as2) {
     #include "services/platform/swf/LzModeManager.as"
     #include "services/platform/swf/LzKeys.as"
@@ -25,6 +33,9 @@
 } else {
     Debug.error('services/Library.lzs unsupported runtime %s', $runtime);
 }
+
+if ($swf9) {
+} else {
 #include "services/LzCSSStyle.js"
 #include "services/LzStyleSheet.js"
 #include "services/LzCSSStyleSheet.js"
@@ -32,3 +43,5 @@
 #include "services/LzFocus.lzs"
 #include "services/LzIdle.lzs"
 #include "services/LzTimer.lzs"
+
+}


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

Reply via email to