Author: ben
Date: 2007-09-23 20:22:23 -0700 (Sun, 23 Sep 2007)
New Revision: 6563
Added:
labs/newsmatch/resources/laszlologo.gif
labs/newsmatch/talk/
labs/newsmatch/talk/ajax_iphone_openlaszlo.ppt
Modified:
labs/newsmatch/hello/hello_iphone.lzx
labs/newsmatch/progression07/main07.lzx
Log:
Added powerpoint talk. Made hello app show laszlo logo. Made progression07
defer loading of thumbnails, and took out the result views, because we're not
using them yet.
Modified: labs/newsmatch/hello/hello_iphone.lzx
===================================================================
--- labs/newsmatch/hello/hello_iphone.lzx 2007-09-24 00:55:55 UTC (rev
6562)
+++ labs/newsmatch/hello/hello_iphone.lzx 2007-09-24 03:22:23 UTC (rev
6563)
@@ -1,4 +1,5 @@
<canvas width="320" height="356" bgcolor="white">
- <text y="50" x="120">hello, iPhone</text>
+ <text y="50" x="10" fontsize="36" fontstyle="bold">hello, iPhone</text>
+ <view x="170" y="240" resource="../resources/laszlologo.gif" />
</canvas>
<!-- Copyright 2007 Laszlo Systems -->
Modified: labs/newsmatch/progression07/main07.lzx
===================================================================
--- labs/newsmatch/progression07/main07.lzx 2007-09-24 00:55:55 UTC (rev
6562)
+++ labs/newsmatch/progression07/main07.lzx 2007-09-24 03:22:23 UTC (rev
6563)
@@ -3,16 +3,20 @@
<!-- data -->
<dataset name="rss" src="feed.xml" id="ds1" />
<include href="../resources.lzx" />
+
<class name="rssimage" width="49" height="34">
<attribute name="sourceUrl" value="$path{'content/@url'}"
type="string" />
<view name="thumbnail"
- source="$path{'content/@url'}"
width="${parent.width}" height="${parent.height}" stretches="both">
</view>
<method event="onclick">
gFloatImage.setTarget(this);
</method>
+ <method name="loadThumbnail">
+ this.thumbnail.setSource(this.sourceUrl);
+ </method>
+
</class>
<class name="rsslabel" bgcolor="0x2d4263" width="108" height="34">
@@ -35,7 +39,7 @@
<wrappinglayout axis="x" spacing="2" />
<rsslabel datapath="rss:/rss/channel/item[1-12]" />
</view>
- <view name="rssimages" x="220" width="104">
+ <view id="gThumbnails" name="rssimages" x="220" width="104">
<wrappinglayout axis="x" spacing="2" />
<rssimage datapath="rss:/rss/channel/item[1-12]" />
</view>
@@ -88,98 +92,7 @@
</method>
</animatorgroup>
</view>
-
- <view id="gResult" x="2" y="157" width="316" height="90" >
- <attribute name="matched" value="false" type="boolean" />
- <method name="showResult" args="match">
- this.matched = match;
- if (match)
- this.showMatch();
- else
- this.showMismatch();
- </method>
- <method name="showMatch">
- // hide nomatch icon and text
- this.nomatch.setVisible(false);
- this.capsule.txt_nomatch.setVisible( false );
-
- // show match text
- this.capsule.match.setVisible( true );
-
- //animate results
- this.showResultAnim.doStart();
- </method>
-
- <method name="showMismatch">
- // show nomatch icon and text
- this.nomatch.setVisible(true);
- this.capsule.txt_nomatch.setVisible( true );
-
- // hide match text
- this.capsule.match.setVisible( false );
-
- //animate results
- this.showResultAnim.doStart();
- </method>
-
- <view name="film" width="${parent.width}"
height="$once{parent.height}" bgcolor="0x000000" opacity="0">
- <!-- click to dismiss -->
- <method event="onclick">
- gResult.hideResult();
- </method>
- </view>
-
- <method name="hideResult">
- this.hideResultAnim.doStart();
- if (this.matched) {
- this.nomatch.setVisible(false);
-
gMoreInfo.title.setText(gDetails.currentTitleSelection.title.text);
- gMoreInfo.txt.setText(gDetails.currentTitleSelection.content);
-
gMoreInfo.img.setSource(gDetails.currentImageSelection.urlText);
- gMoreInfo.show();
- }
- </method>
-
- <view name="capsule" opacity="0" x="76" y="27" width="156" >
- <view name="capl" x="0" resource="circle" />
- <view name="capsule" bgcolor="0xFFFFFF" x="15"
width="${parent.width - 30}" height="37" />
- <view name="capr" x="$once{parent.width - width}"
resource="circle" />
- <text name="txt_nomatch" text="NO MATCH" x="17" y="6"
width="$once{parent.width-10}"
- fontsize="16" fontstyle="bold" resize="true" />
- <view name="match" x="45" y="6" width="$once{parent.width-10}" >
- <text text="MATCH" fontsize="16" fontstyle="bold"
resize="true" y="-5"/>
- <!-- <text text="click to read article" fontsize="9" y="16"
x="-10" /> -->
- </view>
-
- </view>
-
- <animatorgroup name="showResultAnim" start="false">
- <animator attribute="opacity" to="0.7" start="false"
duration="300" target="gResult.film"/>
- <animator attribute="opacity" to="1" start="false" duration="0"
target="gResult.capsule"/>
- <method event="onstop">
- if (!gResult.matched) {
- gResult.hideResultAnim.doStart();
- }
- </method>
- </animatorgroup>
-
- <animatorgroup name="hideResultAnim" process="sequential"
start="false">
- <animator duration="1000" /> <!-- pause for a second -->
- <animatorgroup>
- <animator
- attribute="opacity" to="0" start="false" duration="0"
target="gResult.capsule"/>
- <animator
- attribute="opacity" to="0" start="false" duration="500"
target="gResult.film"/>
- </animatorgroup>
- </animatorgroup>
-
- <view id="gMismatch" name="nomatch" x="203" y="27" width="38"
height="38"
- visible="false" >
- <view name="nmc" x="-7" resource="circle" height="38" width="38"/>
- <view name="nmi" resource="nomatchicon" x="-1" y="6" height="38"
width="38" />
- </view>
- </view>
-
+
<view name="cover" width="320" height="356"
onclick="coverslide_anm.doStart()" >
<view name="top" bgcolor="0x000000" height="178" width="320" >
</view>
@@ -192,10 +105,11 @@
<animator target="${cover.bottom}" attribute="y" to="360" />
<method event="onstart">
parent.tapToBegin.setVisible(false);
+ canvas.loadThumbnails();
</method>
</animatorgroup>
- <text name="tapToBegin" y="300" x="120" visible="false" text="tap to
begin" />
+ <text name="tapToBegin" y="300" x="120" visible="true" text="tap to
begin" />
<handler name="onstop" reference="coverslide_anm" >
this.setVisible(false);
@@ -203,9 +117,15 @@
</view>
+ <method name="loadThumbnails">
+ Debug.write("loadThumbnails");
+ for (i in gThumbnails.subviews) {
+ gThumbnails.subviews[i].loadThumbnail();
+ }
+ </method>
<script>
- canvas.cover.setVisible(false);
+ canvas.cover.setVisible(true);
</script>
</canvas>
Added: labs/newsmatch/resources/laszlologo.gif
Property changes on: labs/newsmatch/resources/laszlologo.gif
___________________________________________________________________
Name: svn:mime-type
+ image/gif
Added: labs/newsmatch/talk/ajax_iphone_openlaszlo.ppt
Property changes on: labs/newsmatch/talk/ajax_iphone_openlaszlo.ppt
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins