[Uml-devel] diagraming stuff

Luis De la Parra Blum lparrab at gmx.net
Wed Feb 26 14:53:21 UTC 2003


hi all,

This week I've been playing around with the diagraming code - I basically 
started replacing the complete diagramming stuff from Umbrello (1.x) with a 
(IMHO) much cleaner design:

*the UMLView has become a DiagramView, which has lost most of its inteligence. 
(there can be several views on a diagram, they can be "in" umbrello or 
floating around, and they can all share a toolbar or have their own.
*there is now a Diagram, which replaces the UMLCanvasView.
*All the WidgetData classes are gone
*the Widgets do nothing other than draw UMLObjects from the model
*...

Of course this is *far* from complete, most of the current U1 features are 
still missing and I've managed to introduce some new bugs. 
The good news is that the old diagramming code is still there (you can create 
"old" and "new" diagrams.

I based everything on QCanvas (I had also thougt of using K2B (editor 
framework based on  Ksvg) but I never got it to compile.

so... is anyone interested in some of this? we could start directly with 
umbrello2, or we could replace the diagram code in umbrello 1 with it, and so 
do a progresive change to umbrello 2 (once the diagram code is clean we would 
replace the UMLClasses with the *real* UML implementation (generated from 
andy's work) and so on... code generator and code import could follow.

so, I guess the question is if you want to start from "scratch" for U2, or if 
you want to replace/clean one "module" at a time from Umbrello1 to make the 
transition to U2?

luis




More information about the umbrello-devel mailing list