[Uml-devel] branches/work/isi-umbrello/umbrello/umbrello

Florence Mattler florence.mattler at libertysurf.fr
Fri Feb 2 12:01:14 UTC 2007


SVN commit 629338 by mattler:

modification of LoadFromXMI and saveToXmi to save and load lost and 
found messages


 M  +8 -0      messagewidget.cpp  


--- branches/work/isi-umbrello/umbrello/umbrello/messagewidget.cpp #629337:629338
@@ -856,6 +856,10 @@
         messageElement.setAttribute( "operation", m_CustomOp );
     messageElement.setAttribute( "seqnum", m_SequenceNumber );
     messageElement.setAttribute( "sequencemessagetype", m_sequenceMessageType );
+    if (m_sequenceMessageType == Uml::sequence_message_lost || m_sequenceMessageType == Uml::sequence_message_found) {
+	 messageElement.setAttribute( "xclicked", xclicked );
+	 messageElement.setAttribute( "yclicked", yclicked );
+    }
 
     // save the corresponding message text
     if (m_pFText && !m_pFText->getText().isEmpty()) {
@@ -877,6 +881,10 @@
     m_SequenceNumber = qElement.attribute( "seqnum", "" );
     QString sequenceMessageType = qElement.attribute( "sequencemessagetype", "1001" );
     m_sequenceMessageType = (Uml::Sequence_Message_Type)sequenceMessageType.toInt();
+    if (m_sequenceMessageType == Uml::sequence_message_lost || m_sequenceMessageType == Uml::sequence_message_found) {
+	 xclicked = qElement.attribute( "xclicked", "-1" ).toInt();
+	 yclicked = qElement.attribute( "yclicked", "-1" ).toInt();
+    }
 
     Uml::IDType aId = STR2ID(widgetaid);
     Uml::IDType bId = STR2ID(widgetbid);




More information about the umbrello-devel mailing list