Selecting a tabelement with mouse didn't give highlight to that tabelement, this is now fixed.

On 5/31/2008 5:15 PM, André Bargull wrote:
Hi Josh,

I've just did some additional work on the weather-demo, maybe you want to give it a try.

- André


On 5/31/2008 12:28 PM, André Bargull wrote:
Reports error in flash:
WARNING: Undefined font 'Helvetica'
- Selecting a new city doesn't reset tab to show first element ("Current Conditions"), which was done prior to your change. - You can navigate per keyboard through the tabs even though the "weathersplash"-view is shown (per arrow-keys and per tab-key). - And you cannot tab-focus the "topBar"-text, only focusing with arrow-keys is working.

Otherwise approved.


On 5/30/2008 9:43 PM, J Crowley wrote:
Also, did it from the base directory this time, instead of from demos/weather -- sorry about that.

Change 20080530-laszlo-a by [EMAIL PROTECTED] on 2008-05-30 15:37:59 EDT
   in /home/laszlo/src/svn/openlaszlo/trunk-two
   for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Weather app renovation work

New Features:

Bugs Fixed: LPP-6069: Weather app renovation work

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

Documentation:

Release Notes:

Details: Removed unnecessary files, got rid of the autoPng directory,
   moved the .png files into a new directory 'resources' which now
   houses all the image resources.  Got rid of .swf resources.
      Added keyboard navigation functionality.  We'd intentionally
   stripped out onmouse events from this for Eloo, but I reinstated
   them in this revision.
      Also, one last-minute addition, per David's request, to add in
   a default zip code.  You can either hit "enter" or click "OK"
   to submit it, or just type in the field to replace it.  (Should
   be selected initially so that any typing (other than 'enter') in
   the field will replace the default text.)

Tests: Check to make sure weather runs just as well as always, only now
   with the ability to navigate using the keyboard.  (Move up from
   the topmost tab so that focus is on the zip code and hit "enter"
to return to the zip entry.) Make sure you can also click on things.

Files:
D      demos/weather/slider_icon2.png
D      demos/weather/tab-slider.lzx
D      demos/weather/tab.swf
D      demos/weather/weather_bg.jpg
D      demos/weather/weather_splash2.jpg
A      demos/weather/resources
A  +   demos/weather/resources/slider_icon2.png
A  +   demos/weather/resources/zipbutton0001.png
A  +   demos/weather/resources/zipbutton0002.png
A  +   demos/weather/resources/weather_bg.jpg
A  +   demos/weather/resources/tab.png
A  +   demos/weather/resources/weather_splash2.jpg
A  +   demos/weather/resources/weather_topbar2.gif
M      demos/weather/weather.lzx
D      demos/weather/weather_topbar2.gif
D      demos/weather/zipbutton.swf
D      demos/weather/autoPng
D      demos/weather/autoPng/zipbutton0001.png
D      demos/weather/autoPng/zipbutton0002.png
D      demos/weather/autoPng/tab.png
D      demos/weather/weather.xml

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080530-laszlo-a.tar





------------------------------------------------------------------------

if (d != null) this.setSource( d ); if (d != null) { var url = "http://l.yimg.com/us.yimg.com/i/us/we/52/"; + d + ".gif"; this.setSource( url ); } //only animate if weatherContent is visible super.open(h, d, weatherContent.visible); this.parent.select(this); this.setAttribute("focusable", true); this.top.bg.animate("opacity",.33,333,false); this.top.titlebox.setColor(0xFFFFFF); this.top.bg.animate("opacity",1,333,false); this.top.titlebox.setColor(0xCAD0EC); Tonight T-storms possible Hi 80 F Lo 80 F Hi: Lo: this.zip.setAttribute('fgcolor', 0xFFFFFF); this.zip.setAttribute('fgcolor', 0xCAD0EC); //first focusable view return this; Humidity: Barometer: Windspeed: Sunrise: Sunset: Wind Chill: this.setSource("http://weather.yahoo.com/images/ussat_440x297.jpg";); //last focusable view return this; var title = this.xpathQuery("/rss/channel/title/text()"); if ( title.indexOf( "Error" ) != -1 ) { error.setText("Error: " + this.xpathQuery( '/rss/channel/item/title/text()' ) ); zipBtn.animate('x',0,333,false); return; } error.setText(" "); zipBtn.animate('x',-2000,333,false); weatherApp.showWeather(); error.setText("Server error: " + this.getDataset().getErrorString()); zipBtn.animate('x',0,333,false); error.setText("Error: Load timed out."); zipBtn.animate('x',0,333,false); Enter Zip Code: Enter Zip Code: LzFocus.setFocus(this.field); weatherApp.loadWeather(); OK OK this.setAttribute('x', this.x + 1); this.setAttribute('y', this.y + 1); bkgnd.setResourceNumber(2); this.setAttribute('x', this.x - 1); this.setAttribute('y', this.y - 1); bkgnd.setResourceNumber(1); weatherApp.loadWeather(); var z = zipcode.getText(); zipBtn.animate('x',-2000,333,true); error.setText("Loading weather data..."); weatherdata.setQueryString({p: z}); weatherdata.doRequest(); weatherApp.topBar.zip.setText(z); topBar.comein.doStart(); LzFocus.setFocus(weatherContent.tab1); weatherContent.setAttribute('visible', true); weathersplash.setAttribute('visible', false); weathersplash.setAttribute('visible', true); weatherContent.setAttribute('visible', false); zipBtn.animate('x',0,333,false); topBar.goout.doStart(); zipcode.setText(''); LzFocus.setFocus(zipcode.field);
if (d != null) this.setSource( d ); if (d != null) { var url = "" + d + ".gif"; this.setSource( url ); } //only animate if weatherContent is visible super.open(h, d, weatherContent.visible); this.setAttribute("focusable", true); LzFocus.setFocus(this); this.parent.select(this); this.top.bg.animate("opacity",.33,333,false); this.top.titlebox.setColor(0xFFFFFF); this.top.bg.animate("opacity",1,333,false); this.top.titlebox.setColor(0xCAD0EC); Tonight T-storms possible Hi 80 F Lo 80 F Hi: Lo: this.zip.setAttribute('fgcolor', 0xFFFFFF); this.zip.setAttribute('fgcolor', 0xCAD0EC); //first focusable view return this; Humidity: Barometer: Windspeed: Sunrise: Sunset: Wind Chill: this.setSource("http://weather.yahoo.com/images/ussat_440x297.jpg"); //last focusable view return this; var title = this.xpathQuery("/rss/channel/title/text()"); if ( title.indexOf( "Error" ) != -1 ) { error.setText("Error: " + this.xpathQuery( '/rss/channel/item/title/text()' ) ); zipBtn.animate('x',0,333,false); return; } error.setText(" "); zipBtn.animate('x',-2000,333,false); weatherApp.showWeather(); error.setText("Server error: " + this.getDataset().getErrorString()); zipBtn.animate('x',0,333,false); error.setText("Error: Load timed out."); zipBtn.animate('x',0,333,false); Enter Zip Code: Enter Zip Code: LzFocus.setFocus(this.field); weatherApp.loadWeather(); OK OK this.setAttribute('x', this.x + 1); this.setAttribute('y', this.y + 1); bkgnd.setResourceNumber(2); this.setAttribute('x', this.x - 1); this.setAttribute('y', this.y - 1); bkgnd.setResourceNumber(1); weatherApp.loadWeather(); var z = zipcode.getText(); zipBtn.animate('x',-2000,333,true); error.setText("Loading weather data..."); weatherdata.setQueryString({p: z}); weatherdata.doRequest(); weatherApp.topBar.zip.setText(z); topBar.comein.doStart(); LzFocus.setFocus(weatherContent.tab1); weatherContent.setAttribute('visible', true); weathersplash.setAttribute('visible', false); weathersplash.setAttribute('visible', true); weatherContent.setAttribute('visible', false); zipBtn.animate('x',0,333,false); topBar.goout.doStart(); zipcode.setText(''); LzFocus.setFocus(zipcode.field);

Reply via email to