[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Thu Dec 30 01:35:00 UTC 2004


CVS commit by okellogg: 

getTypeName(): Reimplement from UMLClassifierListItem.


  M +6 -0      template.cpp   1.17
  M +10 -0     template.h   1.18


--- kdesdk/umbrello/umbrello/template.cpp  #1.16:1.17
@@ -46,4 +46,10 @@ QString UMLTemplate::toString(Uml::Signa
 }
 
+QString UMLTemplate::getTypeName() {
+        if (m_pSecondary == NULL)
+                return "class";
+        return m_pSecondary->getName();
+}
+
 bool UMLTemplate::operator==(UMLTemplate &rhs) {
         if (this == &rhs) {

--- kdesdk/umbrello/umbrello/template.h  #1.17:1.18
@@ -79,4 +79,14 @@ public:
 
         /**
+         * Overrides method from UMLClassifierListItem.
+         * Returns the type name of the UMLTemplate.
+         * If the template parameter is a class, there is no separate
+         * type object. In this case, getTypeName() returns "class".
+         *
+         * @return      The type name of the UMLClassifierListItem.
+         */
+        virtual QString getTypeName();
+
+        /**
          * Display the properties configuration dialogue for the template.
          *






More information about the umbrello-devel mailing list