umbrello/umbrello
toolbarstate.cpp
Go to the documentation of this file.
204 // << "visibleArea [x, y, w, h] = [ " << visibleArea.x() << ", " << visibleArea.y() << ", " << visibleArea.width() << ", " << visibleArea.height() << "] / "
205 // << "maxArea [x, y, w, h] = [ " << maxArea.x() << ", " << maxArea.y() << ", " << maxArea.width() << ", " << maxArea.height() << "] / "
207 if (dtr < 30) { uDebug() << "translate RIGHT"; view->ensureVisible(vx, vy, 0.1 /*30-dtr*/, 0, 2, 2); }
217 if (dtl < 30) { uDebug() << "translate LEFT"; view->ensureVisible(vx, vy, -0.1 /*-(30-dtl)*/, 0, 2, 2); }
218 if (dtt < 30) { uDebug() << "translate TOP"; view->ensureVisible(vx, vy, 0, -0.1 /*-(30-dtt)*/, 2, 2); }
296 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:509
virtual void mouseReleaseEmpty()
Called when the release event happened on an empty space.
Definition: toolbarstate.cpp:357
Qt::KeyboardModifiers modifiers() const
virtual void mouseReleaseAssociation()
Called when the release event happened on an association.
Definition: toolbarstate.cpp:341
FloatingDashLineWidget * floatingLineAt(const QPointF &pos)
Returns the FloatingDashLineWidget at the specified position, or null if there is none...
Definition: toolbarstate.cpp:544
qreal x() const
qreal y() const
virtual void mouseMoveWidget()
Called when the move event happened when a widget is currently available.
Definition: toolbarstate.cpp:402
QPointF mapToScene(const QPoint &point) const
virtual void mouseDoubleClickWidget()
Called when the double click event happened on a widget.
Definition: toolbarstate.cpp:373
virtual void mousePressWidget()
Called when the press event happened on a widget.
Definition: toolbarstate.cpp:322
QPoint screenPos() const
QWidget * viewport() const
QPointF scenePos() const
QPointF lastPos() const
bool onAssociation(const QPointF &point)
Returns true if the given point is on the association line.
Definition: associationwidget.cpp:3799
virtual void mouseRelease(QGraphicsSceneMouseEvent *ome)
Handler for mouse release events.
Definition: toolbarstate.cpp:110
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
virtual void slotAssociationRemoved(AssociationWidget *association)
An association was removed from the UMLScene.
Definition: toolbarstate.cpp:228
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:180
virtual void changeTool()
Changes the current tool to the default one if the right button was released.
Definition: toolbarstate.cpp:419
qreal x() const
qreal y() const
virtual void mousePressEmpty()
Called when the press event happened on an empty space.
Definition: toolbarstate.cpp:330
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:1007
AssociationWidgetList & associationList()
Returns a reference to the association list.
Definition: umlscene.cpp:444
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
Qt::MouseButton button() const
virtual void mouseDoubleClickEmpty()
Called when the double click event happened on an empty space.
Definition: toolbarstate.cpp:381
QScrollBar * verticalScrollBar() const
rect
void accept()
virtual void setCurrentWidget(UMLWidget *widget)
Sets the widget currently in use.
Definition: toolbarstate.cpp:445
virtual void setCurrentAssociation(AssociationWidget *association)
Sets the association currently in use.
Definition: toolbarstate.cpp:469
void ensureVisible(const QRectF &rect, int xmargin, int ymargin)
bool isVisible() const
qreal width() const
virtual void slotWidgetRemoved(UMLWidget *widget)
A widget was removed from the UMLScene.
Definition: toolbarstate.cpp:241
virtual void mouseMoveAssociation()
Called when the move event happened when an association is currently available.
Definition: toolbarstate.cpp:393
UMLView * activeView() const
Returns the active view associated with this scene.
Definition: umlscene.cpp:206
AssociationWidget * associationAt(const QPointF &pos)
Returns the AssociationWidget at the specified position, or null if there is none.
Definition: toolbarstate.cpp:527
virtual void mouseReleaseWidget()
Called when the release event happened on a widget.
Definition: toolbarstate.cpp:349
Qt::MouseButtons buttons() const
virtual void mousePressAssociation()
Called when the press event happened on an association.
Definition: toolbarstate.cpp:314
void triggerAction(SliderAction action)
QGraphicsSceneMouseEvent * m_pMouseEvent
The mouse event currently in use.
Definition: toolbarstate.h:121
void setMouseTracking(bool enable)
virtual void mouseDoubleClickAssociation()
Called when the double click event happened on an association.
Definition: toolbarstate.cpp:365
virtual UMLWidget * currentWidget() const
Returns the widget currently in use.
Definition: toolbarstate.cpp:431
qreal height() const
virtual AssociationWidget * currentAssociation() const
Returns the association currently in use.
Definition: toolbarstate.cpp:455
virtual void setCurrentElement()
Sets the current association or widget.
Definition: toolbarstate.cpp:272
QPointF pos() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
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:460
UMLWidget * onWidget(const QPointF &p)
Overrides operation from UMLWidget.
Definition: messagewidget.cpp:598
QPoint lastScreenPos() const
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:972
QPointF lastScenePos() const
virtual void mouseMoveEmpty()
Called when the move event happened when no association nor widget are currently available.
Definition: toolbarstate.cpp:411
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:482
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.