node.cpp
00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 * copyright (C) 2003-2006 * 00009 * Umbrello UML Modeller Authors <uml-devel@uml.sf.net> * 00010 ***************************************************************************/ 00011 00012 #include "node.h" 00013 #include <kdebug.h> 00014 #include <klocale.h> 00015 00016 UMLNode::UMLNode(const QString & name, Uml::IDType id) 00017 : UMLCanvasObject(name, id) { 00018 init(); 00019 } 00020 00021 UMLNode::~UMLNode() { 00022 } 00023 00024 void UMLNode::init() { 00025 m_BaseType = Uml::ot_Node; 00026 } 00027 00028 UMLObject* UMLNode::clone() const { 00029 UMLNode *clone = new UMLNode(); 00030 UMLObject::copyInto(clone); 00031 return clone; 00032 } 00033 00034 void UMLNode::saveToXMI(QDomDocument& qDoc, QDomElement& qElement) { 00035 QDomElement nodeElement = UMLObject::save("UML:Node", qDoc); 00036 qElement.appendChild(nodeElement); 00037 } 00038 00039 bool UMLNode::load(QDomElement& ) { 00040 return true; 00041 } 00042 00043 #include "node.moc"
