[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Wed May 9 20:20:17 UTC 2007
SVN commit 663012 by okellogg:
move closer to trunk
M +4 -9 widget_factory.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/widget_factory.cpp #663011:663012
@@ -195,17 +195,13 @@
<< ID2STR(id) << endl;
}
- if (tag == "actorwidget"
- || tag == "UML:ActorWidget") { // for bkwd compatibility
+ if (tag == "actorwidget") {
if (validateObjType(Uml::ot_Actor, o, id))
widget = new ActorWidget(view, static_cast<UMLActor*>(o));
- } else if (tag == "usecasewidget"
- || tag == "UML:UseCaseWidget") { // for bkwd compatibility
+ } else if (tag == "usecasewidget") {
if (validateObjType(Uml::ot_UseCase, o, id))
widget = new UseCaseWidget(view, static_cast<UMLUseCase*>(o));
- } else if (tag == "classwidget"
- || tag == "UML:ClassWidget" // for bkwd compatibility
- || tag == "UML:ConceptWidget") { // for bkwd compatibility
+ } else if (tag == "classwidget") {
if (validateObjType(Uml::ot_Class, o, id))
widget = new ClassifierWidget(view, static_cast<UMLClassifier*>(o));
} else if (tag == "packagewidget") {
@@ -232,8 +228,7 @@
} else if (tag == "entitywidget") {
if (validateObjType(Uml::ot_Entity, o, id))
widget = new EntityWidget(view, static_cast<UMLEntity*>(o));
- } else if (tag == "objectwidget"
- || tag == "UML:ObjectWidget") { // for bkwd compatibility
+ } else if (tag == "objectwidget") {
widget = new ObjectWidget(view, o );
} else {
kWarning() << "Trying to create an unknown widget:" << tag << endl;
More information about the umbrello-devel
mailing list