On Mon, Jul 14, 2008 at 10:33 AM, Dirk Meyer <[EMAIL PROTECTED]> wrote:
> "Chandan Pitta" wrote:
> > I guess Grid with one column becomes a list (I did not look at the code,
> so
> > my guess :).
>
> Yes
>
> > Sorry that view should have been scrollview. Scrollview is the
> > container that will provides a viewport to scroll around (along with
> > scrollbars).
>
> Grid has no scrollbars but I will come up with something similar in
> the future.
>
> > Also there is a button widget in tidy as well.
>
> A button will highly depend on the theme for Freevo.
>
Yes, but we can capture the button's behavior in kaa.candy and leave how it
is painted to the theme. Since I have not created any theme in Freevo nor
used clutter I cannot say much. But in the company where I work I am
developing a complete widget toolkit for j2me phones. I developed all the
widgets (scrollbars, scrollview, buttons, lists, and some other layout
managers) and decorators (theme dependent) into the toolkit. The widgets are
a way to capture behavior (based on focus, key and touch events) and layout.
While the painting is handled by the decorators. So my button widget has
these methods (with implementation of course):
protected void sizeChanged(int newW, int newH);
protected int[] updateComponentInternal(int maxWidth, int maxHeight);
public void setActive(boolean active);
public boolean isActive();
public boolean keyPressed(int keyCode);
public boolean pointerPressed(int x, int y);
...
But the paint method uses a button decorator which is defined in a theme.
protected void paintContainer(GoogleGraphics g) {
CButtonDecorator d = Theme.getCurrentTheme().getButtonDecorator();
d.paintButton(g, 0, 0, realW, realH, active);
}
The disadvantage is that the themes should have all the decorators for all
the widgets. Also as new widgets are added their corresponding decorators
need to be added to all the themes. Some widgets don't have decorators. They
are just layout managers like List, DialogBox, TabPane, Table etc. Widgets
with decorators will be Checkbox, RadioButton, Tab, Button, Scrollbar,
Selector etc. I am trying to make the code opensource so that everyone can
have more visibility. Not sure if Freevo would like to go along these lines.
Either way I will try to add some widgets when I can.
>
> > I am sure all of these can be done in kaa.candy, but just saying it
> > is a pity that we cannot simply reuse code. But I understand that if
> > tidy is not going to be maintained then we don't really gain
> > anything from reusing.
>
> I know it is a pity but without a maintainer and releases we have to
> drop it.
>
>
> Dischi
>
> --
> Education is what you get from reading the small print; experience is
> what you get from not reading it.
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> Freevo-devel mailing list
> Freevo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-devel
>
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel