enumliteral.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 ENUMLITERAL_H 00013 #define ENUMLITERAL_H 00014 00015 #include "classifierlistitem.h" 00016 00027 class UMLEnumLiteral : public UMLClassifierListItem { 00028 public: 00036 UMLEnumLiteral(const UMLObject* parent, 00037 const QString& name, Uml::IDType id = Uml::id_None); 00038 00044 UMLEnumLiteral(const UMLObject* parent); 00045 00049 bool operator==(UMLEnumLiteral &rhs); 00050 00055 virtual void copyInto(UMLEnumLiteral *rhs) const; 00056 00060 virtual UMLObject* clone() const; 00061 00065 virtual ~UMLEnumLiteral(); 00066 00070 void saveToXMI(QDomDocument& qDoc, QDomElement& qElement); 00071 00075 bool showPropertiesDialog(QWidget* parent); 00076 00077 protected: 00081 bool load(QDomElement& element); 00082 00083 }; 00084 00085 #endif
