SeqLineWidget Class Reference
Widget class for graphical representation of sequence lines. More...
#include <seqlinewidget.h>
Public Member Functions | |
| SeqLineWidget (UMLView *pView, ObjectWidget *pObject) | |
| Constructor. | |
| ~SeqLineWidget () | |
| Destructor. | |
| int | onWidget (const QPoint &p) |
| Return whether on seq. | |
| void | cleanup () |
| Clean up anything before deletion. | |
| void | setupDestructionBox () |
| Set up destruction box. | |
| void | setStartPoint (int startX, int startY) |
| Set the start point of the line. | |
| int | getLineLength () |
| Gets the length of the line. | |
| ObjectWidget * | getObjectWidget () |
| Returns the ObjectWidget associated with this sequence line. | |
| void | setEndOfLine (int yPosition) |
| Sets the y position of the bottom of the vertical line. | |
Protected Member Functions | |
| void | cleanupDestructionBox () |
| Clean up destruction box. | |
| void | moveDestructionBox () |
| Move destruction box. | |
Protected Attributes | |
| ObjectWidget * | m_pObject |
| ObjectWidget associated with this sequence line. | |
| UMLView * | m_pView |
| View displayed on. | |
| SeqLineWidget::DestructionBox | m_DestructionBox |
| The destruction box. | |
| int | m_nLengthY |
| The length of the line. | |
Static Protected Attributes | |
| static int const | m_nMouseDownEpsilonX = 20 |
| Margin used for mouse clicks. | |
Classes | |
| struct | DestructionBox |
| The destruction box. More... | |
Detailed Description
Widget class for graphical representation of sequence lines.
- Author:
- Paul Hensgen Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
Definition at line 25 of file seqlinewidget.h.
Constructor & Destructor Documentation
|
||||||||||||
|
Constructor.
Definition at line 26 of file seqlinewidget.cpp. References WidgetBase::getLineColor(), SeqLineWidget::DestructionBox::line1, m_DestructionBox, m_nLengthY, m_pObject, m_pView, and setupDestructionBox(). |
|
|
Destructor.
Definition at line 37 of file seqlinewidget.cpp. |
Member Function Documentation
|
|
Return whether on seq. line. Takes into account destruction box if shown.
Definition at line 39 of file seqlinewidget.cpp. References m_nMouseDownEpsilonX. Referenced by UMLView::onWidgetLine(). |
|
|
Clean up anything before deletion.
Definition at line 53 of file seqlinewidget.cpp. References cleanupDestructionBox(). |
|
|
Set up destruction box.
Definition at line 73 of file seqlinewidget.cpp. References cleanupDestructionBox(), UMLWidget::getHeight(), WidgetBase::getLineColor(), ObjectWidget::getShowDestruction(), UMLWidget::getWidth(), UMLWidget::getX(), UMLWidget::getY(), SeqLineWidget::DestructionBox::line1, SeqLineWidget::DestructionBox::line2, m_DestructionBox, m_nLengthY, m_pObject, m_pView, SeqLineWidget::DestructionBox::setLine1Points(), and SeqLineWidget::DestructionBox::setLine2Points(). Referenced by ObjectWidget::activate(), and SeqLineWidget(). |
|
||||||||||||
|
Set the start point of the line.
Definition at line 57 of file seqlinewidget.cpp. References m_nLengthY, and moveDestructionBox(). Referenced by ObjectWidget::moveEvent(). |
|
|
Gets the length of the line.
Definition at line 69 of file seqlinewidget.h. References m_nLengthY. |
|
|
Returns the ObjectWidget associated with this sequence line.
Definition at line 78 of file seqlinewidget.h. References m_pObject. |
|
|
Sets the y position of the bottom of the vertical line.
Definition at line 110 of file seqlinewidget.cpp. References UMLWidget::getHeight(), UMLWidget::getY(), m_nLengthY, m_pObject, m_pView, moveDestructionBox(), and UMLView::resizeCanvasToItems(). Referenced by ObjectWidget::slotMessageMoved(). |
|
|
Clean up destruction box.
Definition at line 64 of file seqlinewidget.cpp. References SeqLineWidget::DestructionBox::line1, SeqLineWidget::DestructionBox::line2, and m_DestructionBox. Referenced by cleanup(), and setupDestructionBox(). |
|
|
Move destruction box.
Definition at line 97 of file seqlinewidget.cpp. References UMLWidget::getHeight(), UMLWidget::getWidth(), UMLWidget::getX(), UMLWidget::getY(), SeqLineWidget::DestructionBox::line1, m_DestructionBox, m_nLengthY, m_pObject, SeqLineWidget::DestructionBox::setLine1Points(), and SeqLineWidget::DestructionBox::setLine2Points(). Referenced by setEndOfLine(), and setStartPoint(). |
Member Data Documentation
|
|
ObjectWidget associated with this sequence line.
Definition at line 103 of file seqlinewidget.h. Referenced by getObjectWidget(), moveDestructionBox(), SeqLineWidget(), setEndOfLine(), and setupDestructionBox(). |
|
|
View displayed on.
Definition at line 108 of file seqlinewidget.h. Referenced by SeqLineWidget(), setEndOfLine(), and setupDestructionBox(). |
|
|
The destruction box.
Referenced by cleanupDestructionBox(), moveDestructionBox(), SeqLineWidget(), and setupDestructionBox(). |
|
|
The length of the line.
Definition at line 127 of file seqlinewidget.h. Referenced by getLineLength(), moveDestructionBox(), SeqLineWidget(), setEndOfLine(), setStartPoint(), and setupDestructionBox(). |
|
|
Margin used for mouse clicks.
Definition at line 24 of file seqlinewidget.cpp. Referenced by onWidget(). |
The documentation for this class was generated from the following files:
