umbrello/umbrello
#include <seqlinewidget.h>
Classes | |
struct | DestructionBox |
Public Member Functions | |
SeqLineWidget (UMLScene *scene, ObjectWidget *pObject) | |
virtual | ~SeqLineWidget () |
void | cleanup () |
int | getLineLength () |
ObjectWidget * | getObjectWidget () |
int | onDestructionBox (const QPointF &p) |
int | onWidget (const QPointF &p) |
void | setEndOfLine (int yPosition) |
void | setStartPoint (int startX, int startY) |
void | setupDestructionBox () |
Protected Member Functions | |
void | cleanupDestructionBox () |
void | moveDestructionBox () |
Protected Attributes | |
struct SeqLineWidget::DestructionBox | m_DestructionBox |
int | m_nLengthY |
ObjectWidget * | m_pObject |
UMLScene * | m_scene |
Static Protected Attributes | |
static int const | m_nMouseDownEpsilonX = 20 |
Detailed Description
Widget class for graphical representation of sequence lines.
Definition at line 24 of file seqlinewidget.h.
Constructor & Destructor Documentation
SeqLineWidget::SeqLineWidget | ( | UMLScene * | scene, |
ObjectWidget * | pObject | ||
) |
Constructor.
Definition at line 29 of file seqlinewidget.cpp.
|
virtual |
Destructor.
Definition at line 46 of file seqlinewidget.cpp.
Member Function Documentation
void SeqLineWidget::cleanup | ( | ) |
Clean up anything before deletion.
Definition at line 99 of file seqlinewidget.cpp.
|
protected |
Clean up destruction box.
Definition at line 121 of file seqlinewidget.cpp.
|
inline |
Gets the length of the line.
- Returns
- Length of the line.
Definition at line 45 of file seqlinewidget.h.
|
inline |
Returns the ObjectWidget associated with this sequence line.
- Returns
- Pointer to the associated ObjectWidget.
Definition at line 54 of file seqlinewidget.h.
|
protected |
Move destruction box.
Definition at line 164 of file seqlinewidget.cpp.
int SeqLineWidget::onDestructionBox | ( | const QPointF & | p | ) |
Return whether on the destruction box.
- Parameters
-
p The point to investigate.
- Returns
- Non-zero if point is on the destruction box of this sequence line.
Definition at line 78 of file seqlinewidget.cpp.
int SeqLineWidget::onWidget | ( | const QPointF & | p | ) |
Return whether on seq.
line. Takes into account destruction box if shown.
- Parameters
-
p The point to investigate.
- Returns
- Non-zero if point is on this sequence line.
Definition at line 57 of file seqlinewidget.cpp.
void SeqLineWidget::setEndOfLine | ( | int | yPosition | ) |
Sets the y position of the bottom of the vertical line.
- Parameters
-
yPosition The y coordinate for the bottom of the line.
Definition at line 183 of file seqlinewidget.cpp.
void SeqLineWidget::setStartPoint | ( | int | startX, |
int | startY | ||
) |
Set the start point of the line.
- Parameters
-
startX X coordinate of the start point. startY Y coordinate of the start point.
Definition at line 110 of file seqlinewidget.cpp.
void SeqLineWidget::setupDestructionBox | ( | ) |
Set up destruction box.
Definition at line 134 of file seqlinewidget.cpp.
Member Data Documentation
|
protected |
the destruction box
|
protected |
the length of the line
Definition at line 81 of file seqlinewidget.h.
|
staticprotected |
margin used for mouse clicks
Definition at line 83 of file seqlinewidget.h.
|
protected |
ObjectWidget associated with this sequence line.
Definition at line 65 of file seqlinewidget.h.
|
protected |
scene displayed on
Definition at line 66 of file seqlinewidget.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.