[Laszlo-checkins] r13598 - openlaszlo/trunk/lps/components/utils/diagnostic/inspector

sallen@openlaszlo.org sallen at openlaszlo.org
Sat Apr 4 14:01:37 PDT 2009


Author: sallen
Date: 2009-04-04 14:01:37 -0700 (Sat, 04 Apr 2009)
New Revision: 13598

Modified:
   openlaszlo/trunk/lps/components/utils/diagnostic/inspector/inspector.lzx
Log:
Change 20090404-sallen-D by sallen at sallen-mac.local on 2009-04-04 11:59:35 PDT
    in /Users/sarah/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fixed warnings in inspector in swf8

New Features:

Bugs Fixed:
LPP-7846 inspector has warnings (partial fix, swf8 only)

Technical Reviewer: andre.bargull at udo.edu
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    

Tests:



Modified: openlaszlo/trunk/lps/components/utils/diagnostic/inspector/inspector.lzx
===================================================================
--- openlaszlo/trunk/lps/components/utils/diagnostic/inspector/inspector.lzx	2009-04-04 19:52:46 UTC (rev 13597)
+++ openlaszlo/trunk/lps/components/utils/diagnostic/inspector/inspector.lzx	2009-04-04 21:01:37 UTC (rev 13598)
@@ -1,5 +1,5 @@
 <!-- X_LZ_COPYRIGHT_BEGIN ************************************************
-* Copyright 2007, 2008 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2007-2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                       *
 * X_LZ_COPYRIGHT_END ************************************************** -->
 <library>
@@ -20,7 +20,7 @@
             new LzDelegate(this, 'updatecolor', obj, 'onbgcolor');
             updatecolor();
         </handler>
-        <method name="updatecolor">
+        <method name="updatecolor" args="ignore=null">
             setAttribute('color', this.obj.bgcolor);
         </method>
 
@@ -96,11 +96,17 @@
         <attribute name="open" value="false"/>
         <attribute name="opendefaultplacement" value="true"/>
         <attribute name="showcomponenthelpers" value="false"/>
+        <attribute name="isview" value="true" type="boolean"/>
         <simplelayout/>
         <view layout="axis:x; spacing:4">
             <text text="..." onclick="Debug.write(classroot.reference)"/>
-            <text text="${classroot.reference.visible ? 'o ' : 'x '}" resize="true"
-                onclick="classroot.reference.setAttribute('visible', !classroot.reference['visible'])"/>
+            <text text="${classroot.isview ? 
+                        (classroot.reference.visible ? 'o ' : 'x ')
+                        : '  '}" 
+                        resize="true"
+                onclick="classroot.isview ?
+                         classroot.reference.setAttribute('visible', !classroot.reference['visible'])
+                         : false"/>
             <text text="${classroot.reference.name == null ?
                     classroot.reference.constructor.tagname : classroot.reference.name}"
                 onclick="classroot.toggle()"
@@ -112,7 +118,6 @@
                 <propedit text="${classroot.reference.y}" obj="classroot.reference" prop="y"/>
                 <propedit text="${classroot.reference.width}" obj="classroot.reference" prop="width"/>
                 <propedit text="${classroot.reference.height}" obj="classroot.reference" prop="height"/>
-                <text text="D" onclick="Debug.write(classroot.reference)"/>
             </state>
         </view>
         <view name="children" layout="class:simplelayout"/>
@@ -139,7 +144,10 @@
                             show = false;
                        }
                     }
-                    if (show) new lz.item(this.children, {reference: nodes[i], root:this.root});
+                    if (show) new lz.item(this.children, 
+                                           {reference: nodes[i],
+                                            root:this.root,
+                                            isview: nodes[i] instanceof(LzView)});
                 }
                 setAttribute('open', true);
             } else {



More information about the Laszlo-checkins mailing list