Hey Frans,

2009/3/18 Frans Meulenbroeks <[email protected]>:
> Hi,
>
> I am considering writing a picture frame application.
> Normally of course the frame displays the pictures, but it would be
> nice if one can also remotely configure the frame (e.g. to remotely
> configure granny's frame).
> That is where Wt becomes interesting. However, if I go that way it is
> of course nice to keep the remote and local UI the same, so the device
> could locally also display the Wt UI (I am considering midori, a
> webkit based browser, for the device).
> But that brought me to the following: wouldn't it then be nice to use
> the web browser (in full screen mode, so using F11) also for
> displaying the pictures itself.
> That would allow me also to start a slideshow on my computer monitor.
>
> However, I am a Wt n00b (but I have a decent amount of programming 
> experience).
> Therefore I would to solicit opinions on this project.
>
> Some questions that pop up:
> Is this feasible/recommendable ?

I would believe so. What hardware are you considering ?

I also think it is great idea -- we also gave our granny a picture
frame and it is a nuisance to upload photo's onto it or to even
configure the thing with 4 buttons and no touch screen...

> Any ideas on how to structure this/get this started?
> Is there a good way to write the UI in a fairly resolution independent
> way (e.g. so controls appear centered independent of the resolution of
> the screen and not e.g. centered on the frame and at the left part of
> the screen on a computer monitor)?

That shouldn't be too hard. The easy way is to use Wt's layout classes.

For example, to center a widget in your application root, you could do:

WHBoxLayout *layout = new WHBoxLayout(root());
WText *centered = new WText("I am in the center");
layout->addWidget(centered, 0, AlignMiddle | AlignCenter);

The hard way is to do it with CSS tricks.

You could combine the implementation idea from
WCanvasPaintDevice::drawText(), which uses these tricks to center text
vertically on non-IE browsers, with the implementation idea from
WVmlImage::drawText(), within the #ifdef TEXT_DIVS which does the same
for IE.
DomElement is not part of Wt's public API, but you can imagine doing
the same using WContainerWidget instead of
DomElement::createNew(DomElement::DIV); and CSS for instead of the
setProperty() calls.

> I guess using a timer it will be possible to create an animation. But
> is it also possible to create animation effects (like sliding in the
> next picture etc).

Not as such. We will probably support this by leveraging JQuery or
similar to do the actual animation effects. In the mean while, you can
load the jquery library yourself and use JavaScript to call JQuery
methods.

> PS: just to make sure: I guess this will become an open source project
> (haven't really thought about how to arrange that part yet).
> Definitely my activity is not part of the development of a commercial
> project.

Cool! One of our google SoC 2009 ideas was to provide better support
for webkit, see:
http://www.webtoolkit.eu/wt/wiki/index.php/Ideas_for_Google_SoC, so
especially in that area we would be interested in improving Wt itself.

Unfortunately, we did not make it to the list of approved organisations ...

> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

I hope we are all getting good at ignoring these ads ?

Regards,
koen

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to