Bug 65410 - widgets dont resize when adding operation via context menu
Summary: widgets dont resize when adding operation via context menu
Status: RESOLVED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-03 00:09 UTC by lparrab
Modified: 2003-10-19 14:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lparrab 2003-10-03 00:09:16 UTC
Version:           1.2-alpha (using KDE 3.1.0)
Installed from:    SuSE
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:          Linux (i686) release 2.4.18-4GB

-create a class diagram and add a class.
-right click on it -> New -> Operation

result: the operation gets created and displayed on the diagram, but the widget does not resize so that the newly created operation is partly outside the class widget.

If you add the operation via the "properties" dialog, the widget is resized just fine.
Comment 1 Sebastian Stein 2003-10-04 20:12:53 UTC
Subject: Re: [Uml-devel]  New: widgets dont resize when adding operation via context menu

lparrab@gmx.net <lparrab@gmx.net> [031003 00:47]:
> -create a class diagram and add a class.
> -right click on it -> New -> Operation
> 
> result: the operation gets created and displayed on the diagram, but the
> widget does not resize so that the newly created operation is partly
> outside the class widget.
> 
> If you add the operation via the "properties" dialog, the widget is resized just fine.

I like to add that the whole thing is the same for the TreeView. If you add
there an operation by context menu, you have to click at the class again, to
see the new operation. But the class widget isn't resized as well and the
diagram is messed up.

I know a fix how to ensure correct resizing if the operation was added with
context menu in the UMLView, but not from the tree view. Of course we may
fix this by calculating the size every time before we draw the widget, but
this may a little be sub-optimal.

A better solution would be, to connect the signal modified of
UMLClass/UMLClassifier to some slot of the UMLClassWidget/UMLWidget. This
should allready be done, but it doesn't work.

So I ask how to connect UMLClassWidget and the belonging non-graphical
UMLClass object!

Steinchen
Comment 2 Oliver Kellogg 2003-10-19 14:45:20 UTC
I can't reproduce this with current CVS.