[Uml-devel] KDE/kdesdk/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sat Nov 5 10:37:40 UTC 2005


SVN commit 478047 by okellogg:

apply commit 478044 from branches/KDE/3.5


 M  +1 -1      ChangeLog  
 M  +7 -4      umbrello/dialogs/parmpropdlg.cpp  


--- trunk/KDE/kdesdk/umbrello/ChangeLog #478046:478047
@@ -13,7 +13,7 @@
  57588  57672  58809  66461  67120  67719  72016  79433  87252  88117
  97162  98368 101550 105564 107405 108223 109591 109636 110073 110216
 110231 110379 110400 110843 111088 111470 111502 111759 111768 112017
-112292 112293 112333 112531 112552 112936 112991 112992 114892
+112292 112293 112333 112531 112552 112936 112991 112992 113748 114892
 
 Version 1.4.2 (maintenance release)
 
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/parmpropdlg.cpp #478046:478047
@@ -1,5 +1,5 @@
 /*
- *  copyright (C) 2002-2004
+ *  copyright (C) 2002-2005
  *  Umbrello UML Modeller Authors <uml-devel@ uml.sf.net>
  */
 
@@ -209,10 +209,13 @@
             }
         }
         if (obj == NULL) {
-            // Nothing found: set type name directly. Bad.
+            // Nothing found: Create a new type on the fly.
+            // @todo There should be an extra dialog to decide whether to
+            // create a datatype or a class. For now, we create a class.
             kdDebug() << "ParmPropDlg::slotOk: " << typeName << " not found."
-            << endl;
-            m_pAtt->setTypeName( typeName );
+                << " Creating a new class for the type." << endl;
+            UMLObject *o = m_pUmldoc->createUMLObject(Uml::ot_Class, typeName);
+            m_pAtt->setType(o);
         }
 
     }




More information about the umbrello-devel mailing list