[Uml-devel] kdesdk/umbrello/umbrello

Brian Thomas thomas at mail630.gsfc.nasa.gov
Sun Aug 31 15:31:02 UTC 2003


CVS commit by thomas: 

added typename, initialvalue settor methods


  M +17 -2     attribute.cpp   1.4
  M +14 -17    attribute.h   1.7


--- kdesdk/umbrello/umbrello/attribute.h  #1.6:1.7
@@ -73,7 +73,5 @@ public:
          *      @param  type    The type of the UMLAttribute.
          */
-        void setTypeName(QString type) {
-                m_TypeName = type;
-        }
+        void setTypeName(QString type);
 
         /**
@@ -82,7 +80,5 @@ public:
          *      @param  iv      The inital value of the UMLAttribute.
          */
-        void setInitialValue(QString iv) {
-                m_InitialValue = iv;
-        }
+        void setInitialValue(QString iv);
 
         /**

--- kdesdk/umbrello/umbrello/attribute.cpp  #1.3:1.4
@@ -26,12 +25,28 @@ UMLAttribute::UMLAttribute(QObject * par
 }
 ////////////////////////////////////////////////////////////////////////////////////////////////////
-UMLAttribute::~UMLAttribute() {}
+UMLAttribute::~UMLAttribute() { }
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 QString UMLAttribute::getTypeName() {
         return m_TypeName;
 }
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+void UMLAttribute::setTypeName(QString type) {
+        if(m_TypeName != type) {
+                m_TypeName = type;
+                emit modified();
+        }
+}
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 QString UMLAttribute::getInitialValue() {
         return m_InitialValue;
+}
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+void UMLAttribute::setInitialValue(QString iv) {
+        if(m_InitialValue != iv) {
+                m_InitialValue = iv;
+                emit modified();
+        }
 }
 ////////////////////////////////////////////////////////////////////////////////////////////////////






More information about the umbrello-devel mailing list