On Thu, Jun 16, 2011 at 4:47 PM, Koen Deforche <[email protected]> wrote:
> Hey Gaetano,
>
> 2011/6/1 Gaetano Mendola <[email protected]>:
>> That will work eventualy but I still feel Wt misses something to manage
>> those cases.
>> We solved with a class acting as a WContainerWidget but not taking the
>> ownership of Chart added, this is the class:
>
> But will this solution not leak the Chart or is it managed in some
> other way (e.g. bound to the WApplication) ?

It's managed by a class ChartOwner and this class is managed trough a
shared_ptr (the one we use to put in the post call).

Basicaly what Wt is missing (of the shelf) a way to have a widget added to a WT
tree but not managed by it.

Regards
Gaetano

-- 
cpp-today.blogspot.com

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to