stereotype.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 STEREOTYPE_H 00013 #define STEREOTYPE_H 00014 00015 #include "umlobject.h" 00016 00028 class UMLStereotype : public UMLObject { 00029 public: 00036 explicit UMLStereotype(const QString &name, Uml::IDType id = Uml::id_None); 00037 00041 UMLStereotype(); 00042 00046 bool operator==(UMLStereotype &rhs); 00047 00051 virtual ~UMLStereotype(); 00052 00057 virtual void copyInto(UMLStereotype *rhs) const; 00058 00062 virtual UMLObject* clone() const; 00063 00067 void incrRefCount(); 00068 00072 void decrRefCount(); 00073 00077 int refCount() const; 00078 00082 void saveToXMI(QDomDocument& qDoc, QDomElement& qElement); 00083 00088 bool showPropertiesDialog(QWidget* parent); 00089 00090 protected: 00100 int m_refCount; 00101 }; 00102 00103 #endif
