[Uml-devel] Friend permissions between classes

Jonathan Riddell jr at jriddell.org
Wed Aug 6 10:26:12 UTC 2003


On Mon, Aug 04, 2003 at 01:07:43PM +0200, Jens Kr?ger wrote:
> Am Montag, 4. August 2003 12:29 schrieb Oliver Kellogg:
> > I am starting to remove the friend permissions between
> > kdesdk-umbrello classes.
> >
> This is a good idea, but I think you should not remove the existing
> relations between the *Widget and *WidgetData classes. The current
> state is a clean separation between the UML representation (in the 
> *WidgetData classes) and the KDE representation of the elements on
> the screen (the *Widget classes). So you are ready for changes in
> the KDE and UML without a lot of changes in the code. 

I'm not convinced by this.  The very tight coupleing of these classes
just means there is extra work to get at variables etc, but does not
simplify much when changes are made to the structure.

> > This is a first tender preparation for a big *Widget/
> > *WidgetData cleanup where the WidgetData classes only
> > serve as the base classes for the Widget classes, but
> > there would not exist any WidgetData objects - only
> > Widget objects.

Parse error on sentence.  

The WidgetData classes are base classes but there would not exist any
WidgetData classes

Do you mean it's a two step move where WidgetData classes are base
classes then are got rid of altogether?

> > (That cleanup is a major design change so it won't be
> > ready anytime soon.)

You'd need to be careful to keep the file loading and saveing working,
probably similarly with the clipboard.

But I think it would be a simplification if done (maybe Jens can argue
otherwise though).

Jonathan Riddell




More information about the umbrello-devel mailing list