[umbrello-devel] [umbrello] [Bug 336012] Automate required namespace/package user interaction on c++ import
ralf.habacker at freenet.de
Mon Aug 18 06:34:39 UTC 2014
--- Comment #9 from Ralf Habacker <ralf.habacker at freenet.de> ---
Git commit 801d607aa6016340d1fcf3cbfa96353505210f21 by Ralf Habacker.
Committed on 25/07/2014 at 11:33.
Pushed by habacker into branch 'work/336012'.
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
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 +130 -1 umbrello/widgets/classifierwidget.cpp
M +7 -1 umbrello/widgets/classifierwidget.h
M +2 -2 umbrello/widgets/widget_factory.cpp
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel