template.h
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 #ifndef TEMPLATE_H 00013 #define TEMPLATE_H 00014 00015 #include "classifierlistitem.h" 00016 00028 class UMLTemplate : public UMLClassifierListItem { 00029 public: 00038 UMLTemplate(const UMLObject *parent, const QString& name, 00039 Uml::IDType id = Uml::id_None, const QString& type = "class"); 00040 00046 UMLTemplate(const UMLObject *parent); 00047 00051 bool operator==(UMLTemplate &rhs); 00052 00057 virtual void copyInto(UMLTemplate *rhs) const; 00058 00062 virtual UMLObject* clone() const; 00063 00067 virtual ~UMLTemplate(); 00068 00075 QString toString(Uml::Signature_Type sig = Uml::st_NoSig); 00076 00085 virtual QString getTypeName(); 00086 00092 bool showPropertiesDialog(QWidget* parent); 00093 00097 void saveToXMI(QDomDocument & qDoc, QDomElement & qElement); 00098 00099 protected: 00103 bool load(QDomElement & element); 00104 00105 }; 00106 00107 #endif
