umbrello API Documentation

toolbarstateassociation.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) 2004-2006                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
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
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:08:00 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003