ForkJoinWidget Class Reference
Displays a fork/join plate in a state diagram. More...
#include <forkjoinwidget.h>
Inheritance diagram for ForkJoinWidget:

Public Member Functions | |
| ForkJoinWidget (UMLView *view, bool drawVertical=false, Uml::IDType id=Uml::id_None) | |
| Constructs a ForkJoinWidget. | |
| virtual | ~ForkJoinWidget () |
| destructor | |
| void | setDrawVertical (bool to) |
| Set whether to draw the plate vertically. | |
| bool | getDrawVertical () const |
| Get whether to draw the plate vertically. | |
| void | slotMenuSelection (int sel) |
| Overrides the function from UMLWidget. | |
| void | draw (QPainter &p, int offsetX, int offsetY) |
| Draws a slim solid black rectangle. | |
| void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
| Saves the widget to the <forkjoinwidget> XMI element. | |
| bool | loadFromXMI (QDomElement &qElement) |
| Loads the widget from the <forkjoinwidget> XMI element. | |
Protected Member Functions | |
| void | drawSelected (QPainter *p, int offsetX, int offsetY) |
| Reimplement method from UMLWidget to suppress the resize corner. | |
| QSize | calculateSize () |
| Overrides the function from UMLWidget. | |
| void | constrain (int &width, int &height) |
| Reimplement method from UMLWidget. | |
Detailed Description
Displays a fork/join plate in a state diagram.
- Author:
- Oliver Kellogg <okellogg@users.sourceforge.net>
- See also:
- UMLWidget Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
Definition at line 28 of file forkjoinwidget.h.
Constructor & Destructor Documentation
|
||||||||||||||||
|
Constructs a ForkJoinWidget.
Definition at line 23 of file forkjoinwidget.cpp. References UMLWidget::init(). |
|
|
destructor
Definition at line 33 of file forkjoinwidget.cpp. |
Member Function Documentation
|
|
Set whether to draw the plate vertically.
Definition at line 87 of file forkjoinwidget.cpp. References UMLWidget::adjustAssocs(), UMLWidget::getX(), UMLWidget::getY(), and UMLWidget::updateComponentSize(). Referenced by loadFromXMI(), and slotMenuSelection(). |
|
|
Get whether to draw the plate vertically.
Definition at line 93 of file forkjoinwidget.cpp. Referenced by ListPopupMenu::ListPopupMenu(). |
|
|
Overrides the function from UMLWidget.
Reimplemented from UMLWidget. Definition at line 77 of file forkjoinwidget.cpp. References setDrawVertical(). |
|
||||||||||||||||
|
Draws a slim solid black rectangle.
Reimplemented from BoxWidget. Definition at line 44 of file forkjoinwidget.cpp. References drawSelected(). |
|
||||||||||||
|
Saves the widget to the <forkjoinwidget> XMI element.
Reimplemented from BoxWidget. Definition at line 97 of file forkjoinwidget.cpp. |
|
|
Loads the widget from the <forkjoinwidget> XMI element.
Reimplemented from UMLWidget. Definition at line 104 of file forkjoinwidget.cpp. References setDrawVertical(). |
|
||||||||||||||||
|
Reimplement method from UMLWidget to suppress the resize corner. Although the ForkJoinWidget supports resizing, we suppress the resize corner because it is too large for this very slim widget. Reimplemented from UMLWidget. Definition at line 52 of file forkjoinwidget.cpp. Referenced by draw(). |
|
|
Overrides the function from UMLWidget.
Reimplemented from UMLWidget. Definition at line 36 of file forkjoinwidget.cpp. |
|
||||||||||||
|
Reimplement method from UMLWidget.
Reimplemented from UMLWidget. Definition at line 55 of file forkjoinwidget.cpp. |
The documentation for this class was generated from the following files:
