[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
Oliver.Kellogg at t-online.de
Fri Sep 19 12:28:03 UTC 2003
CVS commit by okellogg:
Add missing method saveToXMI.
M +7 -0 actorwidget.cpp 1.5
M +12 -5 actorwidget.h 1.5
--- kdesdk/umbrello/umbrello/actorwidget.cpp #1.4:1.5
@@ -61,3 +61,10 @@ void ActorWidget::calculateSize() {
adjustAssocs( getX(), getY() );//adjust assoc lines
}
+////////////////////////////////////////////////////////////////////////////////////////////////////
+bool ActorWidget::saveToXMI( QDomDocument & qDoc, QDomElement & qElement ) {
+ QDomElement actorElement = qDoc.createElement( "UML:ActorWidget" );
+ bool status = UMLWidget::saveToXMI( qDoc, actorElement );
+ qElement.appendChild( actorElement );
+ return status;
+}
--- kdesdk/umbrello/umbrello/actorwidget.h #1.4:1.5
@@ -11,4 +11,5 @@
#define ACTORWIDGET_H
+#include <qdom.h>
#include "umlwidget.h"
@@ -62,4 +63,10 @@ public:
void draw(QPainter & p, int offsetX, int offsetY);
+ /**
+ * Saves the widget to XMI.
+ * Note: for loadFromXMI(), the inherited parent method is used.
+ */
+ bool saveToXMI( QDomDocument & qDoc, QDomElement & qElement );
+
protected:
/**
More information about the umbrello-devel
mailing list