umbrello/umbrello
toolbarstate.cpp
Go to the documentation of this file.
199 // << "visibleArea [x, y, w, h] = [ " << visibleArea.x() << ", " << visibleArea.y() << ", " << visibleArea.width() << ", " << visibleArea.height() << "] / "
200 // << "maxArea [x, y, w, h] = [ " << maxArea.x() << ", " << maxArea.y() << ", " << maxArea.width() << ", " << maxArea.height() << "] / "
202 if (dtr < 30) { uDebug() << "translate RIGHT"; view->ensureVisible(vx, vy, 0.1 /*30-dtr*/, 0, 2, 2); }
212 if (dtl < 30) { uDebug() << "translate LEFT"; view->ensureVisible(vx, vy, -0.1 /*-(30-dtl)*/, 0, 2, 2); }
213 if (dtt < 30) { uDebug() << "translate TOP"; view->ensureVisible(vx, vy, 0, -0.1 /*-(30-dtt)*/, 2, 2); }
291 ObjectWidget* objectWidgetLine = m_pUMLScene->onWidgetDestructionBox(m_pMouseEvent->scenePos());
MessageWidget * messageAt(const QPointF &pos)
Returns the MessageWidget at the specified position, or null if there is none.
Definition: toolbarstate.cpp:504
virtual void mouseReleaseEmpty()
Called when the release event happened on an empty space.
Definition: toolbarstate.cpp:352
virtual void mouseReleaseAssociation()
Called when the release event happened on an association.
Definition: toolbarstate.cpp:336
FloatingDashLineWidget * floatingLineAt(const QPointF &pos)
Returns the FloatingDashLineWidget at the specified position, or null if there is none...
Definition: toolbarstate.cpp:539
virtual void mouseMoveWidget()
Called when the move event happened when a widget is currently available.
Definition: toolbarstate.cpp:397
virtual void mouseDoubleClickWidget()
Called when the double click event happened on a widget.
Definition: toolbarstate.cpp:368
virtual void mousePressWidget()
Called when the press event happened on a widget.
Definition: toolbarstate.cpp:317
bool onAssociation(const QPointF &point)
Returns true if the given point is on the association line.
Definition: associationwidget.cpp:3748
virtual void mouseRelease(QGraphicsSceneMouseEvent *ome)
Handler for mouse release events.
Definition: toolbarstate.cpp:110
virtual void slotAssociationRemoved(AssociationWidget *association)
An association was removed from the UMLScene.
Definition: toolbarstate.cpp:223
This class represents an association inside a diagram.
Definition: associationwidget.h:50
virtual void mouseMove(QGraphicsSceneMouseEvent *ome)
Handler for mouse move events.
Definition: toolbarstate.cpp:175
virtual void changeTool()
Changes the current tool to the default one if the right button was released.
Definition: toolbarstate.cpp:414
virtual void mousePressEmpty()
Called when the press event happened on an empty space.
Definition: toolbarstate.cpp:325
virtual void cleanBeforeChange()
Called when the current tool is changed to use another tool.
Definition: toolbarstate.cpp:59
UMLWidget * widgetAt(const QPointF &p)
Tests the given point against all widgets and returns the widget for which the point is within its bo...
Definition: umlscene.cpp:968
AssociationWidgetList & associationList()
Returns a reference to the association list.
Definition: umlscene.cpp:416
Definition: widgetbase.h:66
This class is used to draw dash lines for UML combined fragments.
Definition: floatingdashlinewidget.h:33
virtual void mouseDoubleClick(QGraphicsSceneMouseEvent *ome)
Handler for mouse double click events.
Definition: toolbarstate.cpp:143
virtual void mouseDoubleClickEmpty()
Called when the double click event happened on an empty space.
Definition: toolbarstate.cpp:376
virtual void setCurrentWidget(UMLWidget *widget)
Sets the widget currently in use.
Definition: toolbarstate.cpp:440
virtual void setCurrentAssociation(AssociationWidget *association)
Sets the association currently in use.
Definition: toolbarstate.cpp:464
virtual void slotWidgetRemoved(UMLWidget *widget)
A widget was removed from the UMLScene.
Definition: toolbarstate.cpp:236
virtual void mouseMoveAssociation()
Called when the move event happened when an association is currently available.
Definition: toolbarstate.cpp:388
UMLView * activeView() const
Returns the active view associated with this scene.
Definition: umlscene.cpp:193
AssociationWidget * associationAt(const QPointF &pos)
Returns the AssociationWidget at the specified position, or null if there is none.
Definition: toolbarstate.cpp:522
virtual void mouseReleaseWidget()
Called when the release event happened on a widget.
Definition: toolbarstate.cpp:344
virtual void mousePressAssociation()
Called when the press event happened on an association.
Definition: toolbarstate.cpp:309
QGraphicsSceneMouseEvent * m_pMouseEvent
The mouse event currently in use.
Definition: toolbarstate.h:121
virtual void mouseDoubleClickAssociation()
Called when the double click event happened on an association.
Definition: toolbarstate.cpp:360
virtual UMLWidget * currentWidget() const
Returns the widget currently in use.
Definition: toolbarstate.cpp:426
virtual AssociationWidget * currentAssociation() const
Returns the association currently in use.
Definition: toolbarstate.cpp:450
virtual void setCurrentElement()
Sets the current association or widget.
Definition: toolbarstate.cpp:267
virtual void mousePress(QGraphicsSceneMouseEvent *ome)
Handler for mouse press events.
Definition: toolbarstate.cpp:78
MessageWidgetList & messageList()
Returns a reference to the message list.
Definition: umlscene.cpp:432
ObjectWidget * onWidgetDestructionBox(const QPointF &point) const
Determine whether on a sequence diagram we have clicked on the destruction box of an Object...
Definition: umlscene.cpp:933
qreal onWidget(const QPointF &p)
Overrides operation from UMLWidget.
Definition: messagewidget.cpp:597
virtual void mouseMoveEmpty()
Called when the move event happened when no association nor widget are currently available.
Definition: toolbarstate.cpp:406
void setMouseEvent(QGraphicsSceneMouseEvent *ome, const QEvent::Type &type)
Sets m_pMouseEvent as the equivalent of the received event after transforming it using the inverse wo...
Definition: toolbarstate.cpp:477
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.