umbrello/umbrello
toolbarstateassociation.cpp
Go to the documentation of this file.
85 m_associationLine->setLine(sp.x(), sp.y(), m_pMouseEvent->scenePos().x(), m_pMouseEvent->scenePos().y());
193 m_associationLine->setPen(QPen(m_pUMLScene->lineColor(), m_pUMLScene->lineWidth(), Qt::DashLine));
Definition: worktoolbar.h:78
static AssociationWidget * create(UMLScene *scene)
This constructor is really only for loading from XMI, otherwise it should not be allowed as it create...
Definition: associationwidget.cpp:111
Definition: worktoolbar.h:61
Definition: worktoolbar.h:63
Base class for tools that can use the same state but with different button.
Definition: toolbarstatepool.h:22
static Uml::AssociationType::Enum isGeneralisationOrRealisation(UMLWidget *widgetA, UMLWidget *widgetB)
Returns whether an implements association should be a Realisation or a Generalisation.
Definition: assocrules.cpp:343
UMLObject * umlObject() const
Returns the UMLObject set to represent.
Definition: widgetbase.cpp:113
ToolBarStateAssociation(UMLScene *umlScene)
Creates a new ToolBarStateAssociation.
Definition: toolbarstateassociation.cpp:39
Definition: basictypes.h:115
Definition: worktoolbar.h:60
Uml::ModelType::Enum convert_DT_MT(Uml::DiagramType::Enum dt)
Return the Model_Type which corresponds to the given DiagramType.
Definition: model_utils.cpp:1037
Definition: worktoolbar.h:70
Definition: worktoolbar.h:72
Definition: basictypes.h:114
Definition: worktoolbar.h:59
Definition: basictypes.h:113
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Called when a mouse event happened.
Definition: toolbarstateassociation.cpp:79
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
Definition: basictypes.h:102
This class represents an association inside a diagram.
Definition: associationwidget.h:50
This class contains the non-graphic representation of an association.
Definition: association.h:32
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Handler for mouse move events.
Definition: toolbarstate.cpp:175
Definition: worktoolbar.h:71
Definition: widgetbase.h:46
UMLAssociation * association() const
Returns the UMLAssociation representation of this object.
Definition: associationwidget.cpp:548
bool addAssociation(AssociationWidget *pAssoc, bool isPasteOperation=false)
Adds an association to the view from the given data.
Definition: umlscene.cpp:2119
bool setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:545
virtual void cleanBeforeChange()
Called when the current tool is changed to use another tool.
Definition: toolbarstate.cpp:59
WorkToolBar::ToolBar_Buttons getButton() const
Returns the current button.
Definition: toolbarstatepool.cpp:42
Definition: worktoolbar.h:62
Definition: worktoolbar.h:58
void setModified(bool modified=true)
Sets the modified flag for the document after a modifying action on the view connected to the documen...
Definition: umldoc.cpp:2607
virtual ~ToolBarStateAssociation()
Destroys this ToolBarStateAssociation.
Definition: toolbarstateassociation.cpp:50
virtual void slotWidgetRemoved(UMLWidget *widget)
A widget was removed from the UMLScene.
Definition: toolbarstate.cpp:236
virtual void slotWidgetRemoved(UMLWidget *widget)
A widget was removed from the UMLScene.
Definition: toolbarstateassociation.cpp:95
UMLView * activeView() const
Returns the active view associated with this scene.
Definition: umlscene.cpp:193
Definition: basictypes.h:116
virtual void mouseReleaseWidget()
Called when the release event happened on a widget.
Definition: toolbarstateassociation.cpp:132
static bool allowSelf(Uml::AssociationType::Enum assocType, WidgetBase::WidgetType widgetType)
Returns whether to allow an association to self for given variables.
Definition: assocrules.cpp:328
QGraphicsSceneMouseEvent * m_pMouseEvent
The mouse event currently in use.
Definition: toolbarstate.h:121
Definition: basictypes.h:120
void treeViewMoveObjectTo(UMLObject *container, UMLObject *object)
Move an object to a new container in the tree view.
Definition: model_utils.cpp:364
void addAssoc(AssociationWidget *pAssoc)
Adds an already created association to the list of associations that include this UMLWidget...
Definition: umlwidget.cpp:976
virtual void cleanBeforeChange()
Called when the current tool is changed to use another tool.
Definition: toolbarstateassociation.cpp:68
virtual UMLWidget * currentWidget() const
Returns the widget currently in use.
Definition: toolbarstate.cpp:426
Definition: worktoolbar.h:117
virtual AssociationWidget * currentAssociation() const
Returns the association currently in use.
Definition: toolbarstate.cpp:450
static bool allowAssociation(Uml::AssociationType::Enum assocType, UMLWidget *widget)
Returns whether an association is going to be allowed for the given values.
Definition: assocrules.cpp:50
void createAssocClassLine()
Creates the association class connecting line.
Definition: associationwidget.cpp:2799
Definition: worktoolbar.h:112
virtual void mouseReleaseAssociation()
Called when the release event happened on an association.
Definition: toolbarstateassociation.cpp:111
virtual void mouseReleaseEmpty()
Called when the release event happened on an empty space.
Definition: toolbarstateassociation.cpp:158
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.