componentwidget.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef COMPONENTWIDGET_H
00013 #define COMPONENTWIDGET_H
00014
00015 #include "umlwidget.h"
00016
00017 class UMLComponent;
00018
00019 #define COMPONENT_MARGIN 10
00020
00030 class ComponentWidget : public UMLWidget {
00031 public:
00032
00039 ComponentWidget(UMLView * view, UMLComponent *c);
00040
00044 virtual ~ComponentWidget();
00045
00049 void draw(QPainter& p, int offsetX, int offsetY);
00050
00054 void saveToXMI(QDomDocument& qDoc, QDomElement& qElement);
00055
00056 protected:
00060 QSize calculateSize();
00061
00062 private:
00066 void init();
00067
00071 ListPopupMenu* m_pMenu;
00072 };
00073
00074 #endif
This file is part of the documentation for umbrello Version 3.1.0.