[Laszlo-checkins] r12248 - in openlaszlo/trunk/docs/src/developers: programs tutorials/programs
bargull@openlaszlo.org
bargull at openlaszlo.org
Sat Dec 27 07:34:07 PST 2008
Author: bargull
Date: 2008-12-27 07:33:57 -0800 (Sat, 27 Dec 2008)
New Revision: 12248
Modified:
openlaszlo/trunk/docs/src/developers/programs/constraints-$1.lzx
openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$10.lzx
openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$11.lzx
openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$12.lzx
openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$17.lzx
openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$18.lzx
openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$9.lzx
openlaszlo/trunk/docs/src/developers/programs/testdriven-9.lzx
openlaszlo/trunk/docs/src/developers/programs/text-$20.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$10.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$11.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$7.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$8.lzx
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$9.lzx
Log:
Change 20081227-bargull-HI6 by bargull at dell--p4--2-53 on 2008-12-27 01:24:35
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: minor doc fixes
New Features:
Bugs Fixed: LPP-6755, LPP-6689, LPP-6762, LPP-6779, LPP-6756
Technical Reviewer: jcrowley
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
LPP-6756: changed method signature to be compatible for override
(layout-and-design example 17 and 18)
LPP-6779: added ignore argument
(constraints example 1)
LPP-6762: the applications don't run out of box, they need to be placed relative to the "images" directory, just as if the docs were build.
Nevertheless, in example 20, one img-tag had a wrong src-attribute, this is now fixed.
(text example 20)
LPP-6689: added missing var declarations and commented out invalid global references
(calculator examples 7, 10, 11 and examples 8, 9)
LPP-6755: added a surrounding view, so that the "stage"-view is no longer at top-level and therefore no longer placed in the global namespace.
(layout-and-design examples 9, 10, 11, 12)
And added to testdriven example 9 a missing "ignore" argument.
Tests:
run examples in swf9
Modified: openlaszlo/trunk/docs/src/developers/programs/constraints-$1.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/constraints-$1.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/programs/constraints-$1.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -5,7 +5,7 @@
var d = [m, "y"];
this.applyConstraintMethod("myConstraintMethod", d);
</handler>
- <method name="myConstraintMethod" >
+ <method name="myConstraintMethod" args="ignore">
this.setAttribute("y", m.y);
</method>
</view>
Modified: openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$10.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$10.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -34,7 +34,8 @@
this.f.destroy();
</method>
</class>
-
+
+ <view>
<view name="stage" width="400" height="300" x="20" bgcolor="0xeaeaea">
<!-- Area for viewing images -->
<text>Stage</text>
@@ -55,6 +56,7 @@
<text>Trash</text>
<!-- ... -->
</view>
+ </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
Modified: openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$11.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$11.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$11.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -36,7 +36,8 @@
this.txt.getText());
</handler>
</class>
-
+
+ <view>
<view name="stage" width="400" height="300" x="20" bgcolor="0xeaeaea">
<!-- Area for viewing images -->
<text>Stage</text>
@@ -56,6 +57,7 @@
<text>Trash</text>
<!-- ... -->
</view>
+ </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
Modified: openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$12.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$12.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$12.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -51,7 +51,8 @@
this.datapath.p);
</handler>
</class>
-
+
+ <view>
<view name="stage" width="400" height="300" x="20" bgcolor="0xeaeaea">
<!-- Area for viewing images -->
<text>Stage</text>
@@ -71,6 +72,7 @@
<text>Trash</text>
<!-- ... -->
</view>
+ </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. *
Modified: openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$17.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$17.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$17.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -9,7 +9,7 @@
this.update();
</method>
- <method name="update">
+ <method name="update" args="e=null">
<![CDATA[
if (this.locked) return;
this.locked = true;
Modified: openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$18.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$18.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$18.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -9,7 +9,7 @@
super.addSubview(s);
this.update();
</method>
- <method name="update">
+ <method name="update" args="e=null">
<![CDATA[
if (this.locked) return;
this.locked = true;
Modified: openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$9.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/programs/layout-and-design-$9.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -1,5 +1,6 @@
<canvas width="100%">
+ <view>
<view name="stage" width="400" height="300" x="20" bgcolor="0xeaeaea">
<!-- Area for viewing images -->
<text>Stage</text>
@@ -17,6 +18,7 @@
<text>Trash</text>
<!-- ... -->
</view>
+ </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
Modified: openlaszlo/trunk/docs/src/developers/programs/testdriven-9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/testdriven-9.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/programs/testdriven-9.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -23,7 +23,7 @@
}
</handler>
-<method name="count">
+<method name="count" args="v">
Debug.debug("%w", counter);
counter=counter+1;
</method>
Modified: openlaszlo/trunk/docs/src/developers/programs/text-$20.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/text-$20.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/programs/text-$20.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -14,7 +14,7 @@
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce ligula. Suspendisse pellentesque diam vel dolor. Nullam suscipit laoreet eros. Aliquam nulla massa, rutrum id, luctus vitae, consequat eu, ipsum. Donec hendrerit rhoncus erat. Phasellus eget massa sit amet lorem condimentum porta. Ut nec lorem. Pellentesque quam. Sed porttitor, elit vitae faucibus porta, enim nibh cursus augue, vitae iaculis enim lorem at eros.
<img src="./images/horse-3.jpg" width="20" height="20" hspace="50"/>
Proin diam leo, vulputate id, ornare cursus, convallis eu, nisi. Vestibulum porttitor luctus dui. Nulla nisi arcu, pharetra at, molestie nec, porta a, leo. Sed congue ante molestie risus.
- <img src="http:horse-3.jpg"/>
+ <img src="./images/horse-3.jpg"/>
Nullam mollis orci id tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Curabitur id mauris. Maecenas arcu. Donec nonummy mi a metus. Nulla facilisi. Aenean metus. Nullam vitae sem id risus accumsan luctus. Nam sit amet velit. Mauris ut est. Proin id sem ullamcorper pede luctus tristique. Pellentesque dapibus, neque et pellentesque tincidunt, sapien diam imperdiet ipsum, nec porttitor turpis lectus nec libero. Praesent ut elit.
<img src="./images/horse-3.jpg" width="20" height="20" align="left"/>
Morbi dignissim scelerisque libero. Donec id sapien id velit tristique interdum. Quisque faucibus sapien. Quisque porttitor. Mauris venenatis nunc id nunc. Nulla iaculis metus at ante. Etiam adipiscing urna quis tellus. Nam aliquam vehicula arcu.
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$10.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$10.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -96,7 +96,7 @@
return;
}
- displ = this.screen.getText();
+ var displ = this.screen.getText();
if (displ == 0) {
if (val == 0) {
return;
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$11.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$11.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$11.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -111,7 +111,7 @@
return;
}
- displ = this.screen.getText();
+ var displ = this.screen.getText();
if (displ == '0') { if (val == '0') {
return;
}
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$7.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$7.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$7.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -73,7 +73,7 @@
this.equals();
return;
}
- displ = this.screen.getText();
+ var displ = this.screen.getText();
if ( displ == '0' ) if ( val == '0' ) {
return;
}
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$8.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$8.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$8.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -10,7 +10,7 @@
<view resource="button_blu" clickable="true"
- onclick="display.inputDigit(this);">
+ onclick="/*display.inputDigit(this);*/">
<text name="buttonText" font="obliqueText" fontsize="30"
fgcolor="#ffffff" x="9" valign="middle">
0
Modified: openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$9.lzx 2008-12-27 15:24:25 UTC (rev 12247)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$9.lzx 2008-12-27 15:33:57 UTC (rev 12248)
@@ -11,7 +11,7 @@
<resource name="button_green" src="resources/button_green.gif"/>
<class name="calcButton" resource="button_blu" clickable="true"
- onclick="display.inputDigit(this);" oninit="this.initButton()">
+ onclick="/*display.inputDigit(this);*/" oninit="this.initButton()">
<attribute name="buttLabel" type="string"/>
<attribute name="labelX" type="number" value="11"/>
More information about the Laszlo-checkins
mailing list