I spent quite a while trying to figure out the best way to create the 
TileViewItem, I decided the best way to avoid duplicating code was to 
inherit from ListItem which is just a plan Atom at heart. To allow me to 
use 3 seperate labels instead of just the one that the Atom creates I've 
overridden createChildControlImpl and use this for all the labels. The 
framework then automatically sets the child control's appearances to 
"tileviewitem/label", "tileviewitem/description", "tileviewitem/status" 
etc... hence the need for a custom appearance.

However, Derrell has added bug 1591 that suggests we should have a 
smarter way of including appearances from contrib projects.

Hope that's made it clear,
Matt

Petr Kobalíc(ek wrote:
> Hi Matthew,
> 
> thank you for your work!
> 
> In the future, will be possible to use only listbox theme ? Where is
> the point I'm missing;)
> 
> Cheers
> - Petr
> 
> 2008/11/17 Matthew Gregory <[EMAIL PROTECTED]>:
>> Thats good :)
>> I've made quite a few improvements to the orriginal source I posted. The
>> main difference is that TileViewItem now derrives from ListItem so it
>> can be used in forms without duplicating a lot code. The two main
>> difference you might have to make in your code are changing get/setTile
>> to get/SetLabel and also either include tileview.theme.Apperance in your
>> own theme or add the following code to Application.js:
>>
>> qx.Theme.include(qx.theme.modern.Appearance, tileview.theme.Apperance);
>>
>> Also I haven't tested this yet, but I've designed it so you can add
>> TileViewItem to List if you just wanted a list of tiles and also add
>> ListItem to TileView if you want a flowing tileview but don't need the
>> overhead of the description and status labels.
>>
>> Any problems just let me know,
>> Matt
>>
>>
>> Jean-Baptiste BRIAUD -- Novlog wrote:
>>> Very good news !
>>> Thanks you for sharing.
>>>
>>> I'm using it since you posted the source here. I'll update my code to
>>> the contrib version.
>>>
>>> On 17 Nov 2008, at 21:31, Matthew Gregory wrote:
>>>
>>>> Hi All,
>>>> Just to let you know that my TileView widget is now part of
>>>> qooxdoo-contrib. I'll be putting some documentation on the wiki
>>>> shortly
>>>> but in the meantime feel free to check it out and report any bugs/
>>>> needed
>>>> improvements.
>>>>
>>>> There is currently a bug (already mentioned on this mailing list) in
>>>> the
>>>> FlowLayout that prevents scrolling from working correctly but will be
>>>> fixed in 0.8.1
>>>>
>>>> My next checkin should support icon overlays similar to how SVN does
>>>> to
>>>> indicate status.
>>>>
>>>> Awaiting your comments :)
>>>> Matt
>>>>
>>>>
>>>> -------------------------------------------------------------------------
>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>>> challenge
>>>> Build the coolest Linux based applications with Moblin SDK & win
>>>> great prizes
>>>> Grand prize is a trip for two to an Open Source event anywhere in
>>>> the world
>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>> _______________________________________________
>>>> qooxdoo-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great 
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to