RE: [Plib-devel] On First Looking Into Baker's SSG (with apologie s to John Keats)
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2004-08-11 15:29:13
|
We will need puValue functionality in every non-group widget, and possibly in group widgets as well. I'll have to go look at the PUI compound widgets again. It has been a while since I looked at compound widgets, but I think I made them inherit from "puGroup" because if I didn't, there would be confusion over things like traversing them and deleting them in the widget tree. Each PUI widget is automatically added to its parent "puGroup" widget's "dlist" at creation, and if I have a compound widget that contains other widgets then the subwidgets are added to the parent (compound) widget's parent group widget's dlist. There are ways around it, but I either need guidance or need to do some thinking. Regarding multiple inheritance, what do we do in a case where two widgets are in some ways quite similar but in other ways quite different? For example, the "puInput" and the "puLargeInput" have a lot of input functions in common. I put them into a common "puInputBase" class and had the "puInput" and "puLargeInput" use multiple inheritance. Is there a better way? John F. Fay joh...@eg... -----Original Message----- From: pli...@li... [mailto:pli...@li...]On Behalf Of Steve Baker Sent: Monday, August 09, 2004 7:28 PM To: pli...@li... Subject: Re: [Plib-devel] On First Looking Into Baker's SSG (with apologies to John Keats) Fay John F Contr AAC/WMG wrote: <snip> > Under the heading of real issues: > (11) How would we implement the "puValue" functionality in SSG? Should > we just add it to "ssgBase" or should it remain separate? If the > latter, should we use multiple inheritance in the SSG widgets? I dislike multiple inheritance - it causes no end of problems in complex inheritance trees - so let's not do *that*. Do we need puValue functionality in every node? Seems to me that it's really only needed in leaf nodes - so I'd probably think in terms of creating a derived class of ssgLeaf. <snip> ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |