Hi Oleksiy,

Oleksiy Golovko wrote:
> Hi
> 
> While researching qooxdoo source code I found quite nice approach of 
> creating widgets and easy access to them without creating ton of private 
> class members. I mean _getChildControl & _createChildControlImpl methods 
> , the approach really rocks! Although I faced some strange behavior when 
> started using it, here is the messages I see in firebug:
> 
> ----
> 7846ms qx.theme.manager.Appearance[k]: Missing appearance: widget/finderpane
> 7865ms qx.theme.manager.Appearance[k]: Missing appearance: 
> widget/mainpane/splitter/knob
> 7874ms qx.theme.manager.Appearance[k]: Missing appearance: 
> widget/mainpane/splitter
> 7883ms qx.theme.manager.Appearance[k]: Missing appearance: widget/mainpane
> 7892ms qx.theme.manager.Appearance[k]: Missing appearance: widget/topframe
> 7903ms qx.theme.manager.Appearance[k]: Missing appearance: 
> widget/finder/sbAspect/atom/label
> 7912ms qx.theme.manager.Appearance[k]: Missing appearance: 
> widget/finder/sbAspect/atom
> 7921ms qx.theme.manager.Appearance[k]: Missing appearance: 
> widget/finder/sbAspect/arrow
> ----
Every widget (and I suppose you develop some own widgets) has an 
appearance property and its value is used inside the appearance theme to 
style this widget.
The messages you get are a feature to inform you about that some 
appearances are missing. These warnings are only outputted in the source 
version.
See http://qooxdoo.org/documentation/0.8/ui_appearance for details to 
the appearance theme.

Looking at the messages you are inheriting from "qx.core.Widget" and 
creating child controls "finderpane", "mainpane", "topframe" etc.
The appearance IDs listed in the messages have to be part of your 
appearance theme, so the best way to go would be to create an own 
appearance theme. How to develop it is explained at 
http://qooxdoo.org/documentation/0.8/ui_custom_themes

To overwrite the "appearance" property (default is "widget") to better 
organize your widgets inside the appearance theme you can simply add

--snip--
properties :
{
    ...
    appearance :
    {
        init : "yourappearance"
    }
}
--snip--

to your widget code and the resulting appearance ID would be e.g. 
"yourappearance/mainpane".

> and I see that widgets rendered with errors...
> 
> I didn't think that those IDs are connected to appearance somehow... Is 
> that a qooxdoo bug or feature? And how could I fix that (given that I 
> really like the method and want to use it)?
As said, the messages are a feature to inform you the appearance IDs are 
missing. To fix it create an own appearance theme (inheriting from an 
existing one) and add your appearance IDs.

Hope this helps :)

cheers,
   Alex

-------------------------------------------------------------------------
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
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to