[umbrello-devel] [umbrello] [Bug 329500] Layout generator does not support multiple widgets of same object

Ralf Habacker ralf.habacker at freenet.de
Wed Feb 26 18:21:37 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=329500

Ralf Habacker <ralf.habacker at freenet.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
                 CC|                            |ralf.habacker at freenet.de
     Ever confirmed|0                           |1

--- Comment #1 from Ralf Habacker <ralf.habacker at freenet.de> ---
A (positive) side effect of the the copy and paste refactoring is that it is
now possible to copy and paste multiple widgets of the same class into a class
diagram.  
The layout (and dot-) generator use the widget id() to distinct widgets on the
diagram, which do not support this case. They need to use the newly implemented
"localID" design. 

The id is currently fetched through UMLWidget::id() and
AssociationWidget::widgetIDForRole(). The first one could be easily refactored,
while the latter contains a more complicated implementation going over more
call levels. May be the best to add an
AssociationWidget::widgetLocalIDForRole() for this purpose.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list