[Laszlo-checkins] r8947 - in openlaszlo/trunk: WEB-INF/lps/lfc/controllers WEB-INF/lps/lfc/core WEB-INF/lps/lfc/helpers WEB-INF/lps/lfc/services WEB-INF/lps/server/src/org/openlaszlo/compiler demos/lzpix demos/lzpix/classes demos/lzpix/views lps/components/utils/layouts

hqm@openlaszlo.org hqm at openlaszlo.org
Thu May 1 05:40:18 PDT 2008


Author: hqm
Date: 2008-05-01 05:40:08 -0700 (Thu, 01 May 2008)
New Revision: 8947

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/core/dummyclasses.js
   openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzDataSelectionManager.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzSelectionManager.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/services/Library.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs
   openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java
   openlaszlo/trunk/demos/lzpix/app.lzx
   openlaszlo/trunk/demos/lzpix/classes/albumlayout.lzx
   openlaszlo/trunk/demos/lzpix/classes/classes.lzx
   openlaszlo/trunk/demos/lzpix/classes/clipboard.lzx
   openlaszlo/trunk/demos/lzpix/classes/clipboardinterior.lzx
   openlaszlo/trunk/demos/lzpix/classes/dataman.lzx
   openlaszlo/trunk/demos/lzpix/classes/draggedphotos.lzx
   openlaszlo/trunk/demos/lzpix/classes/favorites.lzx
   openlaszlo/trunk/demos/lzpix/classes/md5.js
   openlaszlo/trunk/demos/lzpix/classes/photo.lzx
   openlaszlo/trunk/demos/lzpix/classes/pivotlayout.lzx
   openlaszlo/trunk/demos/lzpix/classes/search.lzx
   openlaszlo/trunk/demos/lzpix/views/mybutton.lzx
   openlaszlo/trunk/demos/lzpix/views/tools.lzx
   openlaszlo/trunk/lps/components/utils/layouts/stableborderlayout.lzx
Log:
Change 20080430-hqm-w by hqm at badtzmaru.home on 2008-04-30 19:10:59 EDT
    in /Users/hqm/openlaszlo/trunk5
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: changes to get lzpix to compile

New Features:

Bugs Fixed:

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

Documentation:

Release Notes:

Details:
    

+ make services/LzTrack.lzs compile in the swf9 LFC

note: I had to add these instance vars:
  var __LZdeferDelegates = false;
  var __LZdeleted = false;
because sendEvent was expecting to be able to access them when
sending and event to LzTrack




+ add LzNode-compatible constructors to LzSelectionManager and LzDataSelectionManager

+ removed what looks like an unused var erronesouly being cast to LzView in LzAnimatorGroup

+ Needed to make the "ignore" arg to the binder function and optional arg, for somer reason.
Maybe we should look at what code is being compiled to call this with no args.


+ fix up various layout methods to take optional args if they can be called by event handlers

+ app.lzx: fix up various callers that were too few args
 Note: we ought to rename the "stop" method defined in there as it conflicts with the LzView.stop() method

+ demos/lzpix/classes/photo.lzx
add some missing var declarations
+ ditto  demos/lzpix/classes/draggedphotos.lzx

+ LzNode, unify the ConstructorMap["__LZUserClassPlacementObject"] hackage



Tests:



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.lzs	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.lzs	2008-05-01 12:40:08 UTC (rev 8947)
@@ -225,9 +225,6 @@
   */
 LzAnimatorGroup.attributes.ignoreplacement = true;
 
-
-    var vip:LzView = null;
-
 /**
   * @access private
   */
@@ -235,13 +232,6 @@
 
     super.construct.apply(this, arguments);
 
-    if ($swf9) {
-        this.vip = LzView(this.immediateparent);
-    } else {
-        this.vip = this.immediateparent;
-    }
-
-
     if ( (this.immediateparent) is ( LzAnimatorGroup ) ){
         for ( var k in this.animatorProps ){
             if ( args[ k ] == null ){

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs	2008-05-01 12:40:08 UTC (rev 8947)
@@ -2122,3 +2122,25 @@
 } // End of LzNode
 
 ConstructorMap[LzNode.tagname] = LzNode;
+
+
+////////////////////////////////////////////////////////////////
+
+/**
+  * @access private
+  * @todo [2006-09-28 ptw] This is a wart, needed for backward
+  * compatibility with the current implementation of
+  * defaultplacement.  There is no such tag as <__LZUserClassPlacementObject>!
+  */
+
+public class LzUserClassPlacement {
+    public function LzUserClassPlacement ( parent:LzNode? = null,
+                                           placement:Object? = null,
+                                           ignore = null,
+                                           ignoremetoo = null){
+        parent.defaultplacement = placement;
+    };
+}
+
+ConstructorMap["__LZUserClassPlacementObject"] = LzUserClassPlacement;
+

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/core/dummyclasses.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/core/dummyclasses.js	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/core/dummyclasses.js	2008-05-01 12:40:08 UTC (rev 8947)
@@ -31,16 +31,8 @@
 
 // #include "core/dummydata.js"
 
-
-public class LzTrack {
-    static function __LZmouseup(ignore) {
-    }
-
-}
-
 var lzOptions = {};
 
-
 class lzcoreutils {
     /// TODO [hqm 2008-01] just for debugging until we get debugger up
               #passthrough {
@@ -54,3 +46,4 @@
     }
               }#
 }
+

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzDataSelectionManager.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzDataSelectionManager.lzs	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzDataSelectionManager.lzs	2008-05-01 12:40:08 UTC (rev 8947)
@@ -68,6 +68,11 @@
     
 class LzDataSelectionManager extends LzSelectionManager {
 
+function LzDataSelectionManager ( parent:LzNode? = null , attrs:Object? = null , children:Array? = null, instcall:Boolean  = false) {
+    super(parent,attrs,children,instcall);
+}
+
+
 /** @access private
   * @modifiers override 
   */

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzSelectionManager.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzSelectionManager.lzs	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzSelectionManager.lzs	2008-05-01 12:40:08 UTC (rev 8947)
@@ -88,6 +88,11 @@
   
 class LzSelectionManager extends LzNode {
 
+function LzSelectionManager ( parent:LzNode? = null , attrs:Object? = null , children:Array? = null, instcall:Boolean  = false) {
+    super(parent,attrs,children,instcall);
+}
+
+
 /** @access private
   * @modifiers override 
   */

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/Library.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/Library.lzs	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/Library.lzs	2008-05-01 12:40:08 UTC (rev 8947)
@@ -36,10 +36,7 @@
     Debug.error('services/Library.lzs unsupported runtime %s', $runtime);
 }
 
-if ($swf9) {
-} else {
 #include "services/LzTrack.lzs"
-}
 #include "services/LzIdle.lzs"
 #include "services/LzCSSStyle.lzs"
 #include "services/LzStyleSheet.lzs"

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs	2008-05-01 12:40:08 UTC (rev 8947)
@@ -122,6 +122,14 @@
 /** @access private */
 var __LZmouseupDel = null;
 
+var __LZlastmouseup = null;
+var __LZlasthit = null;
+
+var __LZdestroydel:LzDelegate = null;
+
+var __LZdeferDelegates = false;
+var __LZdeleted = false;
+
 function LzTrackClass (){
     super();
 

Modified: openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java	2008-05-01 12:40:08 UTC (rev 8947)
@@ -260,7 +260,7 @@
         // Binders are called by LzDelegate.execute, which passes the
         // value sent by sendEvent, so we have to accept it, but we
         // ignore it
-        "$lzc$ignore",
+        "$lzc$ignore=null",
         pragmas,
         "this." + installer + "(" +
         ScriptCompiler.quote(name) + "," +

Modified: openlaszlo/trunk/demos/lzpix/app.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/app.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/app.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -206,7 +206,7 @@
                 tls.enableZoom();
             </handler>
 
-            <method name="showPhotoDetails"  args="show,ph_arg" ><![CDATA[
+            <method name="showPhotoDetails"  args="show,ph_arg=null" ><![CDATA[
                 if ( show ) {
                     var photoid = ph_arg.datapath.p.getAttr("id"); 
                     canvas.details.setVisible( true ); 
@@ -368,7 +368,7 @@
                 <attribute name="selected" value="false"/>
 
                 <method name="startDrag" args="offx, offy">
-                    super.startDrag();
+                    super.startDrag(offx, offy);
                     if ( !isselected ) parent.selman.select( this );
                     gDragged.startDrag( this, parent.selman.getSelection() , offx, offy );
                 </method>
@@ -381,7 +381,7 @@
 
                 <attribute name="isselected" value="false"/>
 
-                <method name="setSelected" args="s">
+                <method name="setSelected" args="s:Boolean">
                     this.borderbg.setBGColor(s ? "0xFFD800" : "0xFFFFFF"); 
                     this.setAttribute( "isselected" , s );
                     this.intparent.setOpacity( s ? .5 : 1 );
@@ -432,7 +432,7 @@
                     ]]>
                 </method>
 
-                <method name="stop">
+                <method name="stop" args="f = null, rel = null">
                     this.setVisible( false );
                     this.updel.unregisterAll();
                     this.parent.selectInRectangle( this._sx , this._sy , 

Modified: openlaszlo/trunk/demos/lzpix/classes/albumlayout.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/albumlayout.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/classes/albumlayout.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -1,6 +1,6 @@
 <!--
 * X_LZ_COPYRIGHT_BEGIN ****************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc.  All Rights Reserved.          *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc.  All Rights Reserved.          *
 * Use is subject to license terms.                                        *
 * X_LZ_COPYRIGHT_END ******************************************************-->
 <library>
@@ -63,7 +63,7 @@
               controlled by the layout change their size , or when the size of
               layout's immediateparent changes. However it can be called directly
               to force the layout to update -->
-       <method name="update">
+       <method name="update" args="ignore=null">
             <![CDATA[
             if ( this.locked ) return;
             this.locked = true;
@@ -126,7 +126,7 @@
              return 'wrappinglayout for ' + this.immediateparent;
         </method>
         
-        <method name="reset">
+        <method name="reset" args="ignore=null">
             this.photoscale = 1;
             this.photodimension = 70;
             this.skew = 0;

Modified: openlaszlo/trunk/demos/lzpix/classes/classes.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/classes.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/classes/classes.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -1,4 +1,4 @@
-<!-- Copyright 2001-2006 Laszlo Systems, Inc.  All Rights Reserved. -->
+<!-- Copyright 2001-2006, 2008 Laszlo Systems, Inc.  All Rights Reserved. -->
 <library>
 
 
@@ -80,7 +80,7 @@
               controlled by the layout change their size , or when the size of
               layout's immediateparent changes. However it can be called directly
               to force the layout to update -->
-       <method name="update">
+       <method name="update" args="ignore=null">
             <![CDATA[
             if ( this.locked ) return;
             this.locked = true;

Modified: openlaszlo/trunk/demos/lzpix/classes/clipboard.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/clipboard.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/classes/clipboard.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -6,7 +6,7 @@
             this.updateDelegate.register( parent,  "onwidth" );
         </handler>
         
-        <method name="update" >
+        <method name="update" args="ignore=null">
             if ( this.locked ) return;
             this.locked = true;
             parent.update();
@@ -92,7 +92,7 @@
             else anm_slightlower.doStart();
         </method>
         
-        <method name="update" >
+        <method name="update" args="ignore=null">
             this.tp.setX( this.tplft.width );
             this.tprgt.setX( width - this.tprgt.width );
             this.tp.setWidth( width - this.tplft.width - this.tprgt.width );

Modified: openlaszlo/trunk/demos/lzpix/classes/clipboardinterior.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/clipboardinterior.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/classes/clipboardinterior.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -1,7 +1,7 @@
 <photocollection name="interior" bgcolor="0xf0f0f0" clip="true"
                  photoclass="lz.clipboardphoto" clickable="true">
     <handler name="oninit">
-        LzTrack.register( this , 'photos' );
+      LzTrack.register( this , 'photos' );
     </handler>
 
     <attribute name="amtrackedover" value="false"/>

Modified: openlaszlo/trunk/demos/lzpix/classes/dataman.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/dataman.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/classes/dataman.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -14,7 +14,8 @@
     <!--
         DATA MANAGER
     -->
-    <node name="gDataMan">
+    <node id="gDataMan">
+        <attribute name="errdel"/>
         <handler name="oninit">
             this.errdel = new LzDelegate( this, "dsError" );
             errdel.register( photods , "onerror" );
@@ -226,10 +227,6 @@
 
 <!--
 * X_LZ_COPYRIGHT_BEGIN ****************************************************
-<<<<<<< .working
-* Copyright 2006, 2008 Laszlo Systems, Inc.  All Rights Reserved.          *
-=======
-* Copyright 2008 Laszlo Systems, Inc.  All Rights Reserved.          *
->>>>>>> .merge-right.r8400
+* Copyright 2008 Laszlo Systems, Inc.  All Rights Reserved.               *
 * Use is subject to license terms.                                        *
 * X_LZ_COPYRIGHT_END ******************************************************-->

Modified: openlaszlo/trunk/demos/lzpix/classes/draggedphotos.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/draggedphotos.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/classes/draggedphotos.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -3,6 +3,7 @@
     <class name="draggedphotos" extends="photocollection">
 
         <attribute name="stackoffset" value="4"/>
+        <attribute name="sellist"/>
 
         <method name="startDrag" args="who, sel , ix , iy">
             this.setX( who.getAttributeRelative( 'x', this ) + ix );
@@ -14,6 +15,7 @@
             ds.apply();
 
             LzTrack.activate( "photos" );
+
             gClipboard.dragStarted();
         </method>
 
@@ -50,6 +52,6 @@
 </library>
 <!--
 * X_LZ_COPYRIGHT_BEGIN ****************************************************
-* Copyright 2006 Laszlo Systems, Inc.  All Rights Reserved.          *
+* Copyright 2006, 2008 Laszlo Systems, Inc.  All Rights Reserved.          *
 * Use is subject to license terms.                                        *
 * X_LZ_COPYRIGHT_END ******************************************************-->

Modified: openlaszlo/trunk/demos/lzpix/classes/favorites.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/favorites.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/classes/favorites.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -22,6 +22,7 @@
                           if (this['onspacing']) this.onspacing.sendEvent(this.spacing)"/>
     
         <attribute name="mymask" when="once"/>
+        <attribute name="sizeAxis"/>
 
         <handler name="oninit">
             this.updateDelegate.register( parent,  "onx" );
@@ -52,7 +53,7 @@
               controlled by the layout change their size in the layout axis, or
               their visibility. However it can be called directly to force the
               layout to update -->
-        <method name="update">
+        <method name="update" args="ignore=null">
             <![CDATA[
             if ( this.locked ) return;
             this.locked = true;

Modified: openlaszlo/trunk/demos/lzpix/classes/md5.js
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/md5.js	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/classes/md5.js	2008-05-01 12:40:08 UTC (rev 8947)
@@ -129,7 +129,7 @@
     c = safe_add(c, oldc);
     d = safe_add(d, oldd);
   }
-  return Array(a, b, c, d);
+  return new Array(a, b, c, d);
 
 }
 
@@ -165,7 +165,7 @@
   var bkey = str2binl(key);
   if(bkey.length > 16) bkey = core_md5(bkey, key.length * chrsz);
 
-  var ipad = Array(16), opad = Array(16);
+  var ipad = new Array(16), opad = new Array(16);
   for(var i = 0; i < 16; i++)
   {
     ipad[i] = bkey[i] ^ 0x36363636;
@@ -201,7 +201,7 @@
  */
 function str2binl(str)
 {
-  var bin = Array();
+  var bin = new Array();
   var mask = (1 << chrsz) - 1;
   for(var i = 0; i < str.length * chrsz; i += chrsz)
     bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (i%32);
@@ -257,7 +257,7 @@
 }
 
 /*
-Copyright (c) 1998 - 2002, Paul Johnston & Contributors
+Copyright (c) 1998 - 2002, 2008, Paul Johnston & Contributors
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
@@ -284,4 +284,4 @@
 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.
-*/
\ No newline at end of file
+*/

Modified: openlaszlo/trunk/demos/lzpix/classes/photo.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/photo.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/classes/photo.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -19,6 +19,11 @@
         <attribute name="_diwmult" value="0"/>
         <attribute name="_dihmult" value="0"/>
 
+        <attribute name="_mdtime"/>
+        <attribute name="_ddcxp"/>
+        <attribute name="_ddcyp"/>
+
+
         <attribute name="intwidth" value="${ this._wmult * this.width }"/>
         <attribute name="intheight" value="${ this._hmult * this.height }"/>
 
@@ -157,15 +162,15 @@
         <view name="borderbg" bgcolor="white" />
         
         <!-- interior -->
-        <view name="intparent" clip="true" x="$once{ classroot.border }" 
-              y="$once{ classroot.border }">
+        <view name="intparent" clip="true" x="$once{ this.classroot.border }" 
+              y="$once{ this.classroot.border }">
             <view name="interior" bgcolor="0xd9d9d9" stretches="both">
-                <state apply="${classroot.doesdrag}">
+                <state apply="${this.classroot.doesdrag}">
                     <handler name="onmousedown">
-                        classroot.onmousedown.sendEvent();
+                        this.classroot.onmousedown.sendEvent();
                     </handler>
                     <handler name="onmouseup">
-                        classroot.onmouseup.sendEvent();
+                        this.classroot.onmouseup.sendEvent();
                     </handler>
                 </state>
             </view>
@@ -215,7 +220,7 @@
 
         <method name="startDragCheck">
             //info('startDragCheck');
-            _mdtime = new Date();
+            this._mdtime = LzTimeKernel.getTimer();
             this.ddcdel.register( LzIdle, "onidle" );
             this._ddcxp = this.getMouse( "x" );
             this._ddcyp = this.getMouse( "y" );
@@ -228,17 +233,17 @@
 
         <method name="doDragCheck">
             <![CDATA[
-            var dx = this.getMouse( "x" ) - _ddcxp;
-            var dy =  this.getMouse( "y" ) - _ddcyp;
-            if ( ( ( new Date() ) - _mdtime > mousedownBeforeDrag ) ||
+            var dx = this.getMouse( "x" ) - this._ddcxp;
+            var dy =  this.getMouse( "y" ) - this._ddcyp;
+            if ( ( LzTimeKernel.getTimer() - this._mdtime > mousedownBeforeDrag ) ||
                  ( 5 < ( Math.abs( dx ) + Math.abs( dy ) ) ) ){
-                this.startDrag( dx, dy );
+                this.startDrag(dx, dy );
             }
             ]]>
         </method>
 
         <attribute name="mousedownBeforeDrag" value="300"/>
-        <method name="startDrag">
+        <method name="startDrag" args="dx,dy">
             this.ddcdel.unregisterAll();
             this.setAttribute ( "draginitiator" , true );
         </method>

Modified: openlaszlo/trunk/demos/lzpix/classes/pivotlayout.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/pivotlayout.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/classes/pivotlayout.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -127,7 +127,7 @@
             }
        </method>
        
-       <method name="update">
+       <method name="update" args="ignore=null">
             <![CDATA[
             if ( this.locked ) return;  
             this.locked = true;

Modified: openlaszlo/trunk/demos/lzpix/classes/search.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/search.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/classes/search.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -103,8 +103,8 @@
             this.content.txt.setText(t);
         </method>
 
-        <method name="getText" args="t" >
-            return this.content.txt.getText(t);
+        <method name="getText">
+            return this.content.txt.getText();
         </method>
     </class>
 

Modified: openlaszlo/trunk/demos/lzpix/views/mybutton.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/views/mybutton.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/views/mybutton.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -94,14 +94,14 @@
         <!--- This function is called whenever the button's visible state
               should appear to be down.
               @param Boolean sd: unused. -->
-        <method name="showDown" args="sd">
+        <method name="showDown" args="sd=null">
             this.setResourceNumber( this.downResourceNumber );
         </method>
 
         <!--- This function is called whenever the button's visible state
               should appear to be up. 
               @param Boolean sd: unused. -->
-        <method name="showUp" args="sd"> <![CDATA[
+        <method name="showUp" args="sd=null"> <![CDATA[
             if (!_enabled && this.disabledResourceNumber) {
                 this.setResourceNumber( this.disabledResourceNumber );
             } else {
@@ -113,7 +113,7 @@
         <!--- This function is called whenever the button's visible state should
               appear to be hilited to indicate that it can be clicked. 
               @param Boolean sd: unused. -->
-        <method name="showOver" args="sd">
+        <method name="showOver" args="sd=null">
             this.setResourceNumber( this.overResourceNumber );
         </method>
 
@@ -121,7 +121,7 @@
     </class>
 </library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <!-- @LZX_VERSION@                                                         -->

Modified: openlaszlo/trunk/demos/lzpix/views/tools.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/views/tools.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/demos/lzpix/views/tools.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -58,7 +58,7 @@
                 drag_min_x="5"
                 drag_max_x="117"/>
     
-            <method name="startdragging" args="dragImage">
+            <method name="startdragging" args="dragImage=null">
                 dragging.apply();
                 photoscontainer.lyt.calcpageparams = true;
                 photoscontainer.lyt.setAttribute('textvisible',false);

Modified: openlaszlo/trunk/lps/components/utils/layouts/stableborderlayout.lzx
===================================================================
--- openlaszlo/trunk/lps/components/utils/layouts/stableborderlayout.lzx	2008-05-01 12:00:10 UTC (rev 8946)
+++ openlaszlo/trunk/lps/components/utils/layouts/stableborderlayout.lzx	2008-05-01 12:40:08 UTC (rev 8947)
@@ -6,7 +6,7 @@
     <attribute name="dontupdate" value="true" />
 
     <!--- @keywords private -->
-    <method name="reset">
+    <method name="reset" args="e=null">
         if ( this.locked || (this.subviews &amp;&amp; this.subviews.length &lt; 2 )) { return; }
         this.subviews[ 1 ].setAttribute(this.axis ,
                             this.subviews[ 0 ][(this.sizeAxis )] );



More information about the Laszlo-checkins mailing list