toolbarstateassociation.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef TOOLBARSTATEASSOCIATION_H
00013 #define TOOLBARSTATEASSOCIATION_H
00014
00015 #include "toolbarstatepool.h"
00016
00017 class QCanvasLine;
00018
00038 class ToolBarStateAssociation : public ToolBarStatePool {
00039 Q_OBJECT
00040 public:
00041
00047 ToolBarStateAssociation(UMLView *umlView);
00048
00053 virtual ~ToolBarStateAssociation();
00054
00058 virtual void init();
00059
00064 virtual void cleanBeforeChange();
00065
00071 virtual void mouseMove(QMouseEvent* ome);
00072
00073 public slots:
00074
00081 virtual void slotWidgetRemoved(UMLWidget* widget);
00082
00083 protected:
00084
00092 virtual void mouseReleaseAssociation();
00093
00100 virtual void mouseReleaseWidget();
00101
00106 virtual void mouseReleaseEmpty();
00107
00108 private:
00109
00117 void setFirstWidget();
00118
00131 void setSecondWidget();
00132
00138 Uml::Association_Type getAssociationType();
00139
00147 void addAssociationInViewAndDoc(AssociationWidget* association);
00148
00153 void cleanAssociation();
00154
00158 UMLWidget* m_firstWidget;
00159
00164 QCanvasLine* m_associationLine;
00165
00166 };
00167
00168 #endif //TOOLBARSTATEASSOCIATION_H
This file is part of the documentation for umbrello Version 3.1.0.