[Uml-devel] kdesdk/umbrello/umbrello

Brian Thomas thomas at mail630.gsfc.nasa.gov
Fri Oct 3 13:56:04 UTC 2003


CVS commit by thomas: 

allow a forced re-syncing of the code documents codeclassfields


  M +8 -2      classifiercodedocument.cpp   1.13
  M +3 -0      classifiercodedocument.h   1.8


--- kdesdk/umbrello/umbrello/classifiercodedocument.h  #1.7:1.8
@@ -210,4 +210,7 @@ protected:
         virtual void updateContent( ) = 0;
  
+        // force syncronization of child classfields to their parent objects
+        void ClassifierCodeDocument::syncClassFields( );
+
 private:
 

--- kdesdk/umbrello/umbrello/classifiercodedocument.cpp  #1.12:1.13
@@ -343,11 +343,17 @@ void ClassifierCodeDocument::syncNamesTo
 void ClassifierCodeDocument::syncronize( ) {
 
-kdWarning()<<" Syncronize classifier code doc:"<<this<<endl;
-
         updateHeader(); // doing this insures time/date stamp is at the time of this call
         syncNamesToParent();
         updateContent();
+        syncClassFields();
         updateOperations();
 
+}
+
+void ClassifierCodeDocument::syncClassFields( ) 
+{
+        QPtrList<CodeClassField> *list = getCodeClassFieldList();
+        for(CodeClassField * cf = list->first(); cf; cf=list->next())
+                cf->syncronize();
 }
 






More information about the umbrello-devel mailing list