umbrello/umbrello
toolbarstateassociation.cpp
Go to the documentation of this file.
86 m_associationLine->setLine(sp.x(), sp.y(), m_pMouseEvent->scenePos().x(), m_pMouseEvent->scenePos().y());
194 m_associationLine->setPen(QPen(m_pUMLScene->lineColor(), m_pUMLScene->lineWidth(), Qt::DashLine));
277 case WorkToolBar::tbb_Coll_Message_Synchronous: at = Uml::AssociationType::Coll_Message_Synchronous; break;
278 case WorkToolBar::tbb_Coll_Message_Asynchronous: at = Uml::AssociationType::Coll_Message_Asynchronous; break;
Definition: worktoolbar.h:81
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:110
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:345
UMLObject * umlObject() const
Returns the UMLObject set to represent.
Definition: widgetbase.cpp:127
QLineF line() const
ToolBarStateAssociation(UMLScene *umlScene)
Creates a new ToolBarStateAssociation.
Definition: toolbarstateassociation.cpp:40
Definition: basictypes.h:117
FloatingTextWidget * textWidgetByRole(Uml::TextRole::Enum tr) const
Return the FloatingTextWidget object indicated by the given TextRole::Enum.
Definition: associationwidget.cpp:879
Definition: worktoolbar.h:62
Uml::ModelType::Enum convert_DT_MT(Uml::DiagramType::Enum dt)
Return the Model_Type which corresponds to the given DiagramType.
Definition: model_utils.cpp:1141
Definition: worktoolbar.h:73
Definition: worktoolbar.h:75
Definition: basictypes.h:116
Definition: worktoolbar.h:61
Definition: basictypes.h:115
QWidget * viewport() const
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Called when a mouse event happened.
Definition: toolbarstateassociation.cpp:80
QPointF scenePos() const
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:910
int x() const
int y() const
Definition: basictypes.h:104
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:180
qreal x() const
qreal y() const
QPointF p1() const
Definition: worktoolbar.h:74
void showOperationDialog(bool enableAutoIncrement=true)
Shows an operation dialog box.
Definition: floatingtextwidget.cpp:222
Definition: widgetbase.h:46
UMLAssociation * association() const
Returns the UMLAssociation representation of this object.
Definition: associationwidget.cpp:555
bool addAssociation(AssociationWidget *pAssoc, bool isPasteOperation=false)
Adds an association to the view from the given data.
Definition: umlscene.cpp:1912
bool setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:543
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:64
void setLine(const QLineF &line)
Definition: worktoolbar.h:60
Qt::MouseButton button() const
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:2652
virtual ~ToolBarStateAssociation()
Destroys this ToolBarStateAssociation.
Definition: toolbarstateassociation.cpp:51
void setPen(const QPen &pen)
Definition: basictypes.h:162
virtual void slotWidgetRemoved(UMLWidget *widget)
A widget was removed from the UMLScene.
Definition: toolbarstate.cpp:241
virtual void slotWidgetRemoved(UMLWidget *widget)
A widget was removed from the UMLScene.
Definition: toolbarstateassociation.cpp:96
UMLView * activeView() const
Returns the active view associated with this scene.
Definition: umlscene.cpp:206
Definition: basictypes.h:118
virtual void mouseReleaseWidget()
Called when the release event happened on a widget.
Definition: toolbarstateassociation.cpp:133
static bool allowSelf(Uml::AssociationType::Enum assocType, WidgetBase::WidgetType widgetType)
Returns whether to allow an association to self for given variables.
Definition: assocrules.cpp:330
QGraphicsSceneMouseEvent * m_pMouseEvent
The mouse event currently in use.
Definition: toolbarstate.h:121
Definition: basictypes.h:125
void treeViewMoveObjectTo(UMLObject *container, UMLObject *object)
Move an object to a new container in the tree view.
Definition: model_utils.cpp:373
void addAssoc(AssociationWidget *pAssoc)
Adds an already created association to the list of associations that include this UMLWidget...
Definition: umlwidget.cpp:1065
void setX(int x)
void setY(int y)
virtual void cleanBeforeChange()
Called when the current tool is changed to use another tool.
Definition: toolbarstateassociation.cpp:69
void setMouseTracking(bool enable)
void setVisible(bool visible)
virtual UMLWidget * currentWidget() const
Returns the widget currently in use.
Definition: toolbarstate.cpp:431
Definition: worktoolbar.h:120
virtual AssociationWidget * currentAssociation() const
Returns the association currently in use.
Definition: toolbarstate.cpp:455
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:2850
void addItem(QGraphicsItem *item)
Definition: worktoolbar.h:115
virtual void mouseReleaseAssociation()
Called when the release event happened on an association.
Definition: toolbarstateassociation.cpp:112
virtual void mouseReleaseEmpty()
Called when the release event happened on an empty space.
Definition: toolbarstateassociation.cpp:159
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.