[Laszlo-checkins] r9200 - in openlaszlo/trunk: WEB-INF/lps/lfc/debugger lps/components/base lps/components/debugger lps/components/lz lps/components/utils/layouts

bargull@openlaszlo.org bargull at openlaszlo.org
Fri May 16 14:17:49 PDT 2008


Author: bargull
Date: 2008-05-16 14:17:30 -0700 (Fri, 16 May 2008)
New Revision: 9200

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/debugger/LzDebug.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/debugger/swf9stubs.lzs
   openlaszlo/trunk/lps/components/base/basegridrow.lzx
   openlaszlo/trunk/lps/components/base/basescrollbar.lzx
   openlaszlo/trunk/lps/components/debugger/debugger.lzx
   openlaszlo/trunk/lps/components/debugger/newcontent.lzx
   openlaszlo/trunk/lps/components/debugger/scrollingtext.lzx
   openlaszlo/trunk/lps/components/lz/floatinglist.lzx
   openlaszlo/trunk/lps/components/lz/gridtext.lzx
   openlaszlo/trunk/lps/components/utils/layouts/resizelayout.lzx
Log:
Change 20080513-bargull-420 by bargull at dell--p4--2-53 on 2008-05-13 20:06:32
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: components and debugger updates

New Features:

Bugs Fixed: LPP-5955 (partial)

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

Documentation:

Release Notes:

Details:
base/basescrollbar: add ignore-argument to match event-contract
base/basegridrow: add ignore-arguments to match event-contract
layouts/resizelayout: match superclass method signature
lz/gridtext: add ignore-argument to match event-contract
lz/floatinglist: match superclass method signature
debugger/debugger: match superclass method signature, workaround for swf9 "state-this" bug, update sort-function for swf9
debugger/newcontent: match superclass method signature
debugger/scrollingtext: match superclass method signature
debugger/LzDebug: update sort-function for swf9
debugger/swf9stubs: make LzDebug instance of LzDebugClass


Tests:
After applying the compiler changes listed at LPP-5955, you'll see new errors, which are covered by this changeset




Modified: openlaszlo/trunk/WEB-INF/lps/lfc/debugger/LzDebug.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/debugger/LzDebug.lzs	2008-05-16 20:48:07 UTC (rev 9199)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/debugger/LzDebug.lzs	2008-05-16 21:17:30 UTC (rev 9200)
@@ -464,7 +464,7 @@
     keys.sort(function (a, b) {
         var al = parseInt(a);
         var bl = parseInt(b);
-        return (al > bl) - (al < bl);
+        return ((al > bl)?1:0) - ((al < bl)?1:0);
       });
     for (var i = 0; i < keys.length; i++) {
       var obj = inspected[keys[i]];

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/debugger/swf9stubs.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/debugger/swf9stubs.lzs	2008-05-16 20:48:07 UTC (rev 9199)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/debugger/swf9stubs.lzs	2008-05-16 21:17:30 UTC (rev 9200)
@@ -10,29 +10,31 @@
 // This file implements the debugger stubs, so that DHTML apps can make refernces to
 // Debug.write, etc, when the full debugger is not compiled/linked in.
 
-dynamic class Debug {
-    static public function write(...args):void {
+dynamic class LzDebugService {
+    public function write(...args):void {
         trace.apply(Debug, args);
         LFCApplication.write.apply(LFCApplication, args);
     }
-    static public function info(...args):void {
+    public function info(...args):void {
         args.unshift('Info: ');
         write.apply(Debug, args);
     }
-    static public function warn(...args):void {
+    public function warn(...args):void {
         args.unshift('Warn: ');
         write.apply(Debug, args);
     }
-    static public function error(...args):void {
+    public function error(...args):void {
         args.unshift('Error: ');
         write.apply(Debug, args);
     }
-    static public function debug(...args):void {
+    public function debug(...args):void {
         args.unshift('Debug: ');
         write.apply(Debug, args);
     }
-    static public function monitor(...args):void {
+    public function monitor(...args):void {
         args.unshift('Monitor: ');
         write.apply(Debug, args);
     }
 }
+
+var Debug = new LzDebugService();
\ No newline at end of file

Modified: openlaszlo/trunk/lps/components/base/basegridrow.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basegridrow.lzx	2008-05-16 20:48:07 UTC (rev 9199)
+++ openlaszlo/trunk/lps/components/base/basegridrow.lzx	2008-05-16 21:17:30 UTC (rev 9200)
@@ -141,16 +141,20 @@
             this.select();
         </handler>
 
-        <handler name="onmouseover" method="domouseover" />
-        <method name="domouseover" args="ignore">
+        <handler name="onmouseover" >
+            this.domouseover();
+        </handler>
+        <method name="domouseover" >
             if ( !selectable ) return;
 
             parent.classroot._setHiliteview( this , true );
             this.setAttribute( 'focusable' , false );
         </method>
 
-        <handler  name="onmouseout" method="domouseout" />
-        <method name="domouseout" arg="ignore">
+        <handler name="onmouseout" >
+            this.domouseout();
+        </handler>
+        <method name="domouseout" >
             if ( !selectable ) return;
             this.setAttribute( "highlighted" , false );
             this.setAttribute( 'focusable' , true );
@@ -184,7 +188,7 @@
             sv._updateIt();
         </handler>
         <attribute name="_updateIt" 
-                   value="function(){this.setX( this.ownerColumn.x );
+                   value="function(ignore){this.setX( this.ownerColumn.x );
                                 this.setWidth( this.ownerColumn.colwidth)}"/>
         <doc>
           <tag name="shortdesc"><text></text></tag>

Modified: openlaszlo/trunk/lps/components/base/basescrollbar.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basescrollbar.lzx	2008-05-16 20:48:07 UTC (rev 9199)
+++ openlaszlo/trunk/lps/components/base/basescrollbar.lzx	2008-05-16 21:17:30 UTC (rev 9200)
@@ -256,13 +256,13 @@
         ]]></method>
 
         <!---  @keywords private -->
-        <method name="activateMouseWheel">  <![CDATA[
+        <method name="activateMouseWheel" args="ignore" >  <![CDATA[
             this.setAttribute('mousewheelactive', true);
             ]]>
         </method>
 
         <!---  @keywords private -->
-        <method name="deactivateMouseWheel">  <![CDATA[
+        <method name="deactivateMouseWheel" args="ignore" >  <![CDATA[
             this.setAttribute('mousewheelactive', false);
             ]]>
         </method>

Modified: openlaszlo/trunk/lps/components/debugger/debugger.lzx
===================================================================
--- openlaszlo/trunk/lps/components/debugger/debugger.lzx	2008-05-16 20:48:07 UTC (rev 9199)
+++ openlaszlo/trunk/lps/components/debugger/debugger.lzx	2008-05-16 21:17:30 UTC (rev 9200)
@@ -170,11 +170,11 @@
        }
     </method> 
 
-    <method name="setX" args="x" > 
+    <method name="setX" args="x, force=null" > 
         super.setX( Math.max( 0-(this.width-10), Math.min( x , canvas.width - 4) ) ); 
     </method> 
 
-    <method name="setY" args="y" > 
+    <method name="setY" args="y, force=null" > 
         super.setY( Math.max( 0 , Math.min( y , canvas.height - 4) ) ); 
     </method> 
 
@@ -452,9 +452,9 @@
         var objs = expr.split('.');
         var part = null;
         if (objs[0]['constructor']) {
-          obj = eval(objs[0]) || global;
+          var obj = eval(objs[0]) || global;
         } else {
-          obj = global;
+          var obj = global;
         }
         // descend to the partial member
         for (var i = (obj == global ? 0 : 1); i < objs.length; i++) {
@@ -570,7 +570,7 @@
               choices.sort(function (a, b) {
                 var al = a.toLowerCase();
                 var bl = b.toLowerCase();
-                return (al > bl) - (al < bl);
+                return ((al > bl)?1:0) - ((al < bl)?1:0);
               });
               Debug.info('Possible completions: %s', choices.join(' '));
             } else {
@@ -758,7 +758,7 @@
 
        <state name="splitter">
           <attribute name="height" 
-                value="${classroot.height - classroot.getMouse('y') }"/>
+                value="${this.classroot.height - this.classroot.getMouse('y') }"/>
        </state>
 
        <stableborderlayout axis="x" />

Modified: openlaszlo/trunk/lps/components/debugger/newcontent.lzx
===================================================================
--- openlaszlo/trunk/lps/components/debugger/newcontent.lzx	2008-05-16 20:48:07 UTC (rev 9199)
+++ openlaszlo/trunk/lps/components/debugger/newcontent.lzx	2008-05-16 21:17:30 UTC (rev 9200)
@@ -129,7 +129,7 @@
                    resource="scrolldragdimpleshorz_rsc" options="ignorelayout" 
                    x="6" y="4" />
 
-           <method name="setX" args="x" > 
+           <method name="setX" args="x, force=null" > 
               super.setX( Math.max(parent.arrowbuttonwidth-1 , Math.min( x, parent.width - parent.arrowbuttonwidth))); 
            </method> 
 
@@ -251,7 +251,7 @@
               this.dimples.setResourceNumber(n)
            </method>
 
-           <method name="setY" args="y" > 
+           <method name="setY" args="y, force=null" > 
               super.setY( Math.max(parent.arrowbuttonheight-1 , Math.min( y , parent.height - (parent.thumbheight + parent.arrowbuttonheight)))); 
            </method> 
 

Modified: openlaszlo/trunk/lps/components/debugger/scrollingtext.lzx
===================================================================
--- openlaszlo/trunk/lps/components/debugger/scrollingtext.lzx	2008-05-16 20:48:07 UTC (rev 9199)
+++ openlaszlo/trunk/lps/components/debugger/scrollingtext.lzx	2008-05-16 21:17:30 UTC (rev 9200)
@@ -125,7 +125,7 @@
                    resource="scrolldragdimpleshorz_rsc" options="ignorelayout" 
                    x="6" y="4" />
 
-           <method name="setX" args="x" > 
+           <method name="setX" args="x, force=null" > 
               super.setX( Math.max(parent.arrowbuttonwidth-1 , Math.min( x, parent.width - parent.arrowbuttonwidth))); 
            </method> 
 
@@ -255,7 +255,7 @@
               this.dimples.setResourceNumber(n)
            </method>
 
-           <method name="setY" args="y" > 
+           <method name="setY" args="y, force=null" > 
               super.setY( Math.max(parent.arrowbuttonheight-1 , Math.min( y , parent.height - (parent.thumbheight + parent.arrowbuttonheight)))); 
            </method> 
 

Modified: openlaszlo/trunk/lps/components/lz/floatinglist.lzx
===================================================================
--- openlaszlo/trunk/lps/components/lz/floatinglist.lzx	2008-05-16 20:48:07 UTC (rev 9199)
+++ openlaszlo/trunk/lps/components/lz/floatinglist.lzx	2008-05-16 21:17:30 UTC (rev 9200)
@@ -129,7 +129,7 @@
                     this.subviews[i].setResourceNumber(r);
                 } 
              ]]> </method>
-            <method name="setY" args="y"> <![CDATA[
+            <method name="setY" args="y, force=null"> <![CDATA[
                 super.setY(y);
                 if ( y < 0 ) {
                     this.setResourceNumber(1);
@@ -195,7 +195,7 @@
 
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/lps/components/lz/gridtext.lzx
===================================================================
--- openlaszlo/trunk/lps/components/lz/gridtext.lzx	2008-05-16 20:48:07 UTC (rev 9199)
+++ openlaszlo/trunk/lps/components/lz/gridtext.lzx	2008-05-16 21:17:30 UTC (rev 9200)
@@ -58,7 +58,7 @@
                 super.init();
             </method>
 
-            <method name="startEditing">
+            <method name="startEditing" args="ignore" >
                 immediateparent.select();
                 this.setAttribute( 'editing' , true );
                 LzFocus.setFocus( editbox );

Modified: openlaszlo/trunk/lps/components/utils/layouts/resizelayout.lzx
===================================================================
--- openlaszlo/trunk/lps/components/utils/layouts/resizelayout.lzx	2008-05-16 20:48:07 UTC (rev 9199)
+++ openlaszlo/trunk/lps/components/utils/layouts/resizelayout.lzx	2008-05-16 21:17:30 UTC (rev 9200)
@@ -70,7 +70,7 @@
     </method>
 
     <!--- @keywords private -->
-    <method name="reset" args="e">
+    <method name="reset" args="e=null">
         <![CDATA[
         if ( this.locked ) { return; }
         var l = this.subviews.length;



More information about the Laszlo-checkins mailing list