enumwidget.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ENUMWIDGET_H
00013 #define ENUMWIDGET_H
00014
00015 #include "umlwidget.h"
00016
00017 class UMLView;
00018
00019 #define ENUM_MARGIN 5
00020
00030 class EnumWidget : public UMLWidget {
00031 public:
00032
00039 EnumWidget(UMLView* view, UMLObject* o);
00040
00044 ~EnumWidget();
00045
00049 void init();
00050
00056 bool getShowPackage() const;
00057
00061 void toggleShowPackage();
00062
00068 void setShowPackage(bool _status);
00069
00073 void draw(QPainter& p, int offsetX, int offsetY);
00074
00078 void saveToXMI(QDomDocument& qDoc, QDomElement& qElement);
00079
00083 bool loadFromXMI(QDomElement& qElement);
00084
00085 protected:
00089 QSize calculateSize();
00090
00091 bool m_bShowPackage;
00092
00093 private:
00097 ListPopupMenu* m_pMenu;
00098
00099 public slots:
00106 void slotMenuSelection(int sel);
00107 };
00108
00109 #endif
This file is part of the documentation for umbrello Version 3.1.0.