[Uml-devel] [Bug 113748] parameter types don't show up until diagram is reloaded

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


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=113748         
okellogg users sourceforge net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From okellogg users sourceforge net  2005-11-05 19:36 -------
SVN commit 478044 by okellogg:

slotOk(): Call UMLDoc::createUMLObject(Uml::ot_Class) if typeName not found.
BUG:113748


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


--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #478043:478044
 @ -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)
 
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/dialogs/parmpropdlg.cpp #478043:478044
 @ -1,5 +1,5  @
 /*
- *  copyright (C) 2002-2004
+ *  copyright (C) 2002-2005
  *  Umbrello UML Modeller Authors <uml-devel@ uml.sf.net>
  */
 
 @ -204,10 +204,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