Author: max
Date: 2008-03-14 10:38:45 -0700 (Fri, 14 Mar 2008)
New Revision: 8267

Modified:
   openlaszlo/trunk/demos/lzpix/classes/clipboardinterior.lzx
   openlaszlo/trunk/demos/lzpix/classes/photocollection.lzx
   openlaszlo/trunk/laszlo-explorer/explore-nav.lzx
   openlaszlo/trunk/lps/components/base/basetree.lzx
Log:
Change 20080313-maxcarlson-i by [EMAIL PROTECTED] on 2008-03-13 16:23:47 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Update LzPix, calendar and explore-nav to work with new class system

New Features:

Bugs Fixed: LPP-1587 'ECMA4: Compile LZX declarations as JS declarations' 
(partial) 

Technical Reviewer: [EMAIL PROTECTED]
QA Reviewer: ptw
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Very straightforward - just added lz. for class lookups.  I feel much 
better about committing Tucker's changes to trunk now!  I also had to patch 
LzState:
--- WEB-INF/lps/lfc/helpers/LzState.lzs (revision 8253)
+++ WEB-INF/lps/lfc/helpers/LzState.lzs (working copy)
@@ -410,7 +410,7 @@
 
             //create a setter for this method; by definition attributes that
             //the state has a setter for are handled by the state
-            this.__LZaddSetter(  mname , '__LZsetProperty' );
+            //this.__LZaddSetter(  mname , '__LZsetProperty' );
         } else {
             var arrtopush = pardels;
         }


Tests: LzPix, explorer and calendar all run in DHTML now with Tucker's latest 
changeset.  Note that the calendar now takes 2x to start up in swf8 - 1500ms vs 
~3000ms on my machine with Tucker's changes.

All these changes should be safe to go in trunk as-is.



Modified: openlaszlo/trunk/demos/lzpix/classes/clipboardinterior.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/clipboardinterior.lzx  2008-03-14 
17:15:59 UTC (rev 8266)
+++ openlaszlo/trunk/demos/lzpix/classes/clipboardinterior.lzx  2008-03-14 
17:38:45 UTC (rev 8267)
@@ -1,5 +1,5 @@
 <photocollection name="interior" bgcolor="0xf0f0f0" clip="true"
-                 photoclass="clipboardphoto" clickable="true">
+                 photoclass="lz.clipboardphoto" clickable="true">
     <method event="oninit">
         LzTrack.register( this , 'photos' );
     </method>
@@ -28,6 +28,6 @@
 </photocollection>
 <!--
 * 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/photocollection.lzx
===================================================================
--- openlaszlo/trunk/demos/lzpix/classes/photocollection.lzx    2008-03-14 
17:15:59 UTC (rev 8266)
+++ openlaszlo/trunk/demos/lzpix/classes/photocollection.lzx    2008-03-14 
17:38:45 UTC (rev 8267)
@@ -1,7 +1,7 @@
 <library>
     <class name="photocollection">
 
-        <attribute name="photoclass" value="photo" when="once"/>
+        <attribute name="photoclass" value="lz.photo" when="once"/>
 
         <attribute name="activephotos" value="$once{ [] }"/>
 
@@ -55,6 +55,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/laszlo-explorer/explore-nav.lzx
===================================================================
--- openlaszlo/trunk/laszlo-explorer/explore-nav.lzx    2008-03-14 17:15:59 UTC 
(rev 8266)
+++ openlaszlo/trunk/laszlo-explorer/explore-nav.lzx    2008-03-14 17:38:45 UTC 
(rev 8267)
@@ -91,7 +91,7 @@
         this.setAttribute("isleaf", !this.datapath.p.hasChildNodes());
         if( !this['clonenumber'] || this.clonenumber == 0) {
             var mb = this.parent;
-            if (mb instanceof menubutton) {
+            if (mb instanceof lz.menubutton) {
                 mb.dataBound();
             }
         }
@@ -107,7 +107,7 @@
 
         if (o && this.children.itemlist.subviews.length == 0) {
             this.deferOpen = true;
-            new navbutton(this, { level: this.level + 1 });
+            new lz.navbutton(this, { level: this.level + 1 });
         }
         else
             super._setOpen(o);
@@ -163,14 +163,14 @@
 
             <method name="doOpen">
                 if (this.animateOpen == null) {
-                    this.animateOpen = new openanimator(this, { item: 
classroot });
+                    this.animateOpen = new lz.openanimator(this, { item: 
classroot });
                 }
                 this.animateOpen.doStart();
             </method>
             
             <method name="doClose">
                 if (this.animateClose == null) {
-                    this.animateClose = new closeanimator(this, { item: 
classroot });
+                    this.animateClose = new lz.closeanimator(this, { item: 
classroot });
                 }
                 this.animateClose.doStart();
             </method>
@@ -345,7 +345,7 @@
         if (typeof(global.bookmark) != 'undefined'){
           var restore = global.bookmark.split('|');
           if (restore.length > 0) {
-              this[restore[0]].openSequence(restore);
+              if (this[restore[0]]) this[restore[0]].openSequence(restore);
           }
         }
       </method>

Modified: openlaszlo/trunk/lps/components/base/basetree.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basetree.lzx   2008-03-14 17:15:59 UTC 
(rev 8266)
+++ openlaszlo/trunk/lps/components/base/basetree.lzx   2008-03-14 17:38:45 UTC 
(rev 8267)
@@ -141,12 +141,12 @@
                     this.children.setAttribute("x", 0);
                     this.children.setAttribute("y", 0);
                     var sv = this.children.subviews;
-                    if (sv && (sv[0])  instanceof basetree) {
+                    if (sv && (sv[0])  instanceof lz.basetree) {
                         focusItem = sv[0].item;
                     }
                 }
 
-                this._selector = new treeselector(this,
+                this._selector = new lz.treeselector(this,
                     { multiselect: this.multiselect,
                       toggle: this.toggleselected });
 
@@ -212,7 +212,7 @@
 
             var c = this.getChildClass();
             if (c != null) {
-                new global[c](this, args, null, true);
+                new lz[c](this, args, null, true);
             }
         ]]>
         </method>
@@ -333,7 +333,7 @@
               @return Boolean: true if this tree is the root, otherwise
               false. -->
         <method name="isRoot">
-            return ! (parent instanceof basetree);
+            return ! (parent instanceof lz.basetree);
         </method>
 
         <!--- Get the root of this tree. 
@@ -341,7 +341,7 @@
         <method name="getRoot">
             var v = this;
             var p = v.parent;
-            while (p instanceof basetree) {
+            while (p instanceof lz.basetree) {
                 v = v.parent;
                 p = v.parent;
             }
@@ -498,7 +498,7 @@
         <![CDATA[
             var n = 0;
             if (children.subviews && 
-                (children.subviews[n]) instanceof basetree) {
+                (children.subviews[n]) instanceof lz.basetree) {
                 this.setAttribute("_currentChild", n);
                 this.changeFocus(children.subviews[n]);
             }
@@ -512,11 +512,11 @@
         <![CDATA[
             var n = children.subviews.length - 1;
             if (children.subviews &&
-                (children.subviews[n]) instanceof basetree) {
+                (children.subviews[n]) instanceof lz.basetree) {
                 var last = children.subviews[n];
                 if (last.open && last.children.subviews) {
                     var next = last.children.subviews.length -1;
-                    if ((last.children.subviews[next]) instanceof basetree) {
+                    if ((last.children.subviews[next]) instanceof lz.basetree) 
{
                         last._focusLastChild();
                         return;
                     }
@@ -548,7 +548,7 @@
             // If previous sibling is open, select last child of that sibling
             var sibling = parent.children.subviews[prev]
             if (sibling.open && sibling.children.subviews && 
-                (sibling.children.subviews[0]) instanceof basetree) {
+                (sibling.children.subviews[0]) instanceof lz.basetree) {
                 sibling._focusLastChild();
             } else {
                 this.changeFocus(sibling);
@@ -603,7 +603,7 @@
             } else if (kc == 40) { // down
                 if (this.open && 
                     this.children.subviews &&
-                    (this.children.subviews[0]) instanceof basetree) {
+                    (this.children.subviews[0]) instanceof lz.basetree) {
                     this._focusFirstChild();
                 } else {
                     this._focusNextSibling();


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

Reply via email to