umbrello API Documentation

entitywidget.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 ENTITYWIDGET_H
00013 #define ENTITYWIDGET_H
00014 
00015 #include "umlwidget.h"
00016 
00017 class UMLView;
00018 
00019 #define ENTITY_MARGIN 5
00020 
00030 class EntityWidget : public UMLWidget {
00031 public:
00032 
00039     EntityWidget(UMLView* view, UMLObject* o);
00040 
00044     ~EntityWidget();
00045 
00049     void init();
00050 
00054     void draw(QPainter& p, int offsetX, int offsetY);
00055 
00059     void saveToXMI(QDomDocument& qDoc, QDomElement& qElement);
00060 
00064     bool loadFromXMI(QDomElement& qElement);
00065 
00066 protected:
00070     QSize calculateSize();
00071 
00072 private:
00076     ListPopupMenu* m_pMenu;
00077 
00078 public slots:
00085     void slotMenuSelection(int sel);
00086 };
00087 
00088 #endif
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:57 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003