umbrello/umbrello
associationline.h
Go to the documentation of this file.
Definition: associationline.h:44
Definition: associationline.h:111
static QString toString(LayoutType layout)
Convert enum LayoutType to string.
Definition: associationline.cpp:738
int closestSegmentIndex(const QPointF &point, qreal delta=Delta) const
Return index of closest segment.
Definition: associationline.cpp:211
bool isEndSegmentIndex(int index) const
Retval True If segment at index is start or end.
Definition: associationline.cpp:246
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Reset active indices and also push undo command.
Definition: associationline.cpp:1038
bool loadFromXMI(QDomElement &qElement)
Loads AssociationLine information saved in qElement XMI element.
Definition: associationline.cpp:295
Definition: associationline.h:113
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Draws the current symbol using the QPainterPath stored for the current symbol.
Definition: associationline.cpp:1260
void setPen(const QPen &pen)
Sets the pen used to draw the symbol.
Definition: associationline.cpp:1338
Definition: associationline.h:47
Definition: associationline.h:46
int closestPointIndex(const QPointF &point, qreal delta=Delta) const
Return index of point closer a given delta.
Definition: associationline.cpp:185
QRectF boundingRect() const
The points are used for the bounding rect.
Definition: associationline.cpp:715
Definition: associationline.h:112
Definition: associationline.h:49
Definition: associationline.h:48
void hoverMoveEvent(QGraphicsSceneHoverEvent *event)
Calculates the "to be highlighted" point and segment indicies and updates if necessary.
Definition: associationline.cpp:1074
Definition: associationline.h:43
This class represents an association inside a diagram.
Definition: associationwidget.h:50
void calculateInitialEndPoints()
This method simply ensures presence of two points and adds the needed points for self associations...
Definition: associationline.cpp:413
A convenience class that encapsulates geometry management, handles mouse and hover events...
Definition: associationline.h:105
void setBrush(const QBrush &brush)
Sets the brush used to fill symbol.
Definition: associationline.cpp:1357
static LayoutType fromString(const QString &layout)
Convert string to enum LayoutType.
Definition: associationline.cpp:746
SymbolType
This enumeration lists all the symbols that can be used as embedded on AssociationLine.
Definition: associationline.h:41
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Reimplemented from QGraphicsItem::paint.
Definition: associationline.cpp:891
Definition: associationline.h:42
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Moves the point or line if active.
Definition: associationline.cpp:1020
void optimizeLinePoints()
This method optimizes the number of points in the AssociationLine.
Definition: associationline.cpp:161
void removePoint(int index)
Removes the point at index passed in.
Definition: associationline.cpp:125
bool setEndPoints(const QPointF &start, const QPointF &end)
Sets the start and end points.
Definition: associationline.cpp:258
Symbol(SymbolType symbolType, QGraphicsItem *parent=0)
Constructs a Symbol with current symbol being symbol and parented to parent.
Definition: associationline.cpp:1224
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves association line information into XMI element named "linepath".
Definition: associationline.cpp:348
void setLayout(LayoutType layout)
Set the layout type of the association line.
Definition: associationline.cpp:770
void alignTo(const QLineF &line)
This method aligns this Symbol to the line being passed.
Definition: associationline.cpp:1305
void cleanup()
Removes all the points and signals a geometry update.
Definition: associationline.cpp:145
void insertPoint(int index, const QPointF &point)
Inserts the passed in point at the index passed in and recalculates the bounding rect.
Definition: associationline.cpp:114
void reconstructSymbols()
This method creates, deletes symbols and collaboration lines based on m_associationWidget->associatio...
Definition: associationline.cpp:452
void setSymbolType(SymbolType symbolType)
Sets the current symbol type to symbol and updates the geometry.
Definition: associationline.cpp:1250
QPen pen() const
Returns the type of pen to use depending on the type of Association.
Definition: associationline.cpp:393
QPointF point(int index) const
Returns the point at the point index.
Definition: associationline.cpp:67
void mousePressEvent(QGraphicsSceneMouseEvent *event)
Determines the active point or segment, the latter being given more priority.
Definition: associationline.cpp:996
void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Calculates the "to be highlighted" point and segment indicies and updates if necessary.
Definition: associationline.cpp:1050
This class provides with various symbols that can be embedded in AssociationLine. ...
Definition: associationline.h:32
Definition: associationline.h:45
bool isEndPointIndex(int index) const
Retval True If point at index is start or end.
Definition: associationline.cpp:235
bool setPoint(int index, const QPointF &point)
Sets the point value at given index to point.
Definition: associationline.cpp:79
Definition: associationline.h:114
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Reset active indicies and updates.
Definition: associationline.cpp:1096
QBrush brush() const
Returns the type of brush to use depending on the type of Association.
Definition: associationline.cpp:375
LayoutType layout() const
Return the layout type of the association line.
Definition: associationline.cpp:761
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 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:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.