[umbrello-devel] [umbrello] [Bug 336012] Automate required namespace/package user interaction on c++ import

Ralf Habacker ralf.habacker at freenet.de
Sun Aug 31 07:48:42 UTC 2014


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

--- Comment #19 from Ralf Habacker <ralf.habacker at freenet.de> ---
Git commit 4be3031283a7ea43ad6ece4dedb27b30e53ab987 by Ralf Habacker.
Committed on 18/08/2014 at 10:25.
Pushed by habacker into branch 'master'.

Save imported "class-or-package" uml object, which has been later retyped as
package into the xmi file as UMLPackage.

On next xmi file load this package is a regular UMLPackage.

M  +4    -0    umbrello/classifier.cpp

http://commits.kde.org/umbrello/4be3031283a7ea43ad6ece4dedb27b30e53ab987

--- Comment #18 from Ralf Habacker <ralf.habacker at freenet.de> ---
Git commit 1de0459dc7fb87b0dcba82cdd175bd085aba35a3 by Ralf Habacker.
Committed on 25/07/2014 at 11:33.
Pushed by habacker into branch 'master'.

Automate required namespace/package user interaction on c++ import.

If the type of an imported uml object could not be determined the import
creates an uml class object and flags the stereotype to be "class-or-package".
Such uml objects are displayed in the tree view by a dedicated icon.

If the real type of the related uml object is determined later as a class,
the flag is removed and the uml object is usable as a generic class.

If the real object is a namespace, the flag is removed and the uml object
is set to a package type and could be used as regular created package.
This is possible because the initial created object of type UMLClassifier
is derived from UMLPackage. In the latter case ClassifierWidget paints
the object as Package.

The tree view and classifier widget context menu has been extended to
provide functions to convert a "class or package" uml object to a class
or package.

Because the "class or package" state is flagged in the stereotype, saving
and loading of an umbrello project containing "class or package"
flagged uml objects is completly transparent.

M  +5    -0    umbrello/classifier.cpp
M  +8    -0    umbrello/codeimport/import_utils.cpp
M  +28   -6    umbrello/codeimport/kdevcppparser/cpptree2uml.cpp
M  +2    -0    umbrello/icon_utils.cpp
M  +1    -0    umbrello/icon_utils.h
M  +11   -0    umbrello/listpopupmenu.cpp
M  +1    -0    umbrello/listpopupmenu.h
M  +1    -1    umbrello/pics/CMakeLists.txt
A  +-    --    umbrello/pics/class-or-package.png
A  +166  -0    umbrello/pics/sources/class-or-package.svg
M  +16   -0    umbrello/umllistview.cpp
M  +7    -0    umbrello/umllistviewitem.cpp
M  +131  -1    umbrello/widgets/classifierwidget.cpp
M  +7    -1    umbrello/widgets/classifierwidget.h
M  +2    -2    umbrello/widgets/widget_factory.cpp

http://commits.kde.org/umbrello/1de0459dc7fb87b0dcba82cdd175bd085aba35a3

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


More information about the umbrello-devel mailing list