• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

umbrello/umbrello

umlcanvasobject.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   This program is free software; you can redistribute it and/or modify  *
00003  *   it under the terms of the GNU General Public License as published by  *
00004  *   the Free Software Foundation; either version 2 of the License, or     *
00005  *   (at your option) any later version.                                   *
00006  *                                                                         *
00007  *   copyright (C) 2002-2009                                               *
00008  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00009  ***************************************************************************/
00010 
00011 #ifndef CANVASOBJECT_H
00012 #define CANVASOBJECT_H
00013 
00014 #include "umlobject.h"
00015 #include "umlobjectlist.h"
00016 #include "umlclassifierlist.h"
00017 #include "umlassociationlist.h"
00018 
00033 class UMLCanvasObject : public UMLObject
00034 {
00035     Q_OBJECT
00036 public:
00037 
00038     explicit UMLCanvasObject(const QString & name = QString(), Uml::IDType id = Uml::id_None);
00039     virtual ~UMLCanvasObject();
00040 
00041     bool operator==(const UMLCanvasObject& rhs);
00042 
00043     virtual void copyInto(UMLObject *lhs) const;
00044 
00045     // The abstract method UMLObject::clone() is implemented
00046     // in the classes inheriting from UMLCanvasObject.
00047 
00048     bool addAssociationEnd(UMLAssociation* assoc);
00049 
00050     bool hasAssociation(UMLAssociation* assoc);
00051 
00052     int removeAssociationEnd(UMLAssociation *assoc);
00053 
00054     void removeAllAssociationEnds();
00055 
00056     int associations();
00057 
00058     UMLAssociationList getAssociations();
00059 
00060     UMLAssociationList getSpecificAssocs(Uml::Association_Type assocType);
00061 
00062     UMLClassifierList getSuperClasses();
00063 
00064     UMLClassifierList getSubClasses();
00065 
00066     virtual UMLAssociationList getRealizations();
00067 
00068     UMLAssociationList getAggregations();
00069     UMLAssociationList getCompositions();
00070     UMLAssociationList getRelationships();
00071 
00072     virtual UMLObject *findChildObject(const QString &n, Uml::Object_Type t = Uml::ot_UMLObject);
00073     virtual UMLObject *findChildObjectById(Uml::IDType id, bool considerAncestors = false);
00074 
00075     virtual QString uniqChildName(const Uml::Object_Type type,
00076                                   const QString &prefix = QString());
00077 
00078     virtual void removeAllChildObjects();
00079 
00080     UMLObjectList subordinates() const {
00081         return m_List;
00082     }
00083 
00084     virtual bool resolveRef();
00085 
00086     // The abstract method UMLObject::saveToXMI() is implemented
00087     // in the classes inheriting from UMLCanvasObject.
00088 
00089 protected:
00090 
00099     UMLObjectList m_List;
00100 
00101 signals:
00102 
00103     void sigAssociationEndAdded(UMLAssociation * assoc);
00104     void sigAssociationEndRemoved(UMLAssociation * assoc);
00105 
00106 };
00107 
00108 #endif

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdesdk

Skip menu "kdesdk"
  • kapptemplate
  • kate
  •     kate
  • kbugbuster
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal