ActivityWidget Class Reference
This class is the graphical version of a UML Activity. A graphical version of a UML Activity. More...
#include <activitywidget.h>
Inheritance diagram for ActivityWidget:

Public Types | |
| enum | ActivityType { Initial = 0, Normal, End, Branch } |
Public Slots | |
| void | slotMenuSelection (int sel) |
| Captures any popup menu signals for menus it created. | |
Public Member Functions | |
| ActivityWidget (UMLView *view, ActivityType activityType=Normal, Uml::IDType id=Uml::id_None) | |
| Creates a Activity widget. | |
| virtual | ~ActivityWidget () |
| destructor | |
| void | draw (QPainter &p, int offsetX, int offsetY) |
| Overrides the standard paint event. | |
| void | constrain (int &width, int &height) |
| Overrides Method from UMLWidget. | |
| ActivityType | getActivityType () const |
| Returns the type of activity. | |
| void | setActivityType (ActivityType activityType) |
| Sets the type of activity. | |
| void | showProperties () |
| Show a properties dialog for an ActivityWidget. | |
| void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
| Saves the widget to the <activitywidget> XMI element. | |
| bool | loadFromXMI (QDomElement &qElement) |
| Loads the widget from the <activitywidget> XMI element. | |
Static Public Member Functions | |
| static bool | isActivity (WorkToolBar::ToolBar_Buttons tbb, ActivityType &resultType) |
| Determines whether a toolbar button represents an Activity. | |
Protected Member Functions | |
| QSize | calculateSize () |
| Overrides method from UMLWidget. | |
Protected Attributes | |
| ActivityType | m_ActivityType |
| Type of activity. | |
Detailed Description
This class is the graphical version of a UML Activity. A graphical version of a UML Activity.A ActivityWidget is created by a UMLView. An ActivityWidget belongs to only one UMLView instance. When the UMLView instance that this class belongs to, it will be automatically deleted.
The ActivityWidget class inherits from the UMLWidget class which adds most of the functionality to this class.
- Author:
- Paul Hensgen <phensgen@techie.com> Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
Definition at line 34 of file activitywidget.h.
Constructor & Destructor Documentation
|
||||||||||||||||
|
Creates a Activity widget.
Definition at line 31 of file activitywidget.cpp. References setActivityType(), WidgetBase::setBaseType(), and UMLWidget::updateComponentSize(). |
|
|
destructor
Definition at line 39 of file activitywidget.cpp. |
Member Function Documentation
|
||||||||||||||||
|
Overrides the standard paint event.
Implements UMLWidget. Definition at line 41 of file activitywidget.cpp. References UMLWidget::drawSelected(), UMLWidget::getFontMetrics(), UMLWidget::getName(), m_ActivityType, and UMLWidget::setPen(). |
|
||||||||||||
|
Overrides Method from UMLWidget.
Reimplemented from UMLWidget. Definition at line 96 of file activitywidget.cpp. References calculateSize(), and m_ActivityType. |
|
|
Returns the type of activity.
Definition at line 145 of file activitywidget.cpp. References m_ActivityType. Referenced by AssocRules::allowAssociation(). |
|
|
Sets the type of activity.
Definition at line 149 of file activitywidget.cpp. References m_ActivityType. Referenced by ActivityWidget(), and loadFromXMI(). |
|
|
Show a properties dialog for an ActivityWidget.
Reimplemented from UMLWidget. Definition at line 178 of file activitywidget.cpp. References ActivityDialog::getChangesMade(), UMLApp::getDocument(), UMLApp::getDocWindow(), UMLDoc::setModified(), DocWindow::showDocumentation(), and DocWindow::updateDocumentation(). Referenced by slotMenuSelection(). |
|
||||||||||||
|
Determines whether a toolbar button represents an Activity. CHECK: currently unused - can this be removed?
Definition at line 189 of file activitywidget.cpp. |
|
||||||||||||
|
Saves the widget to the <activitywidget> XMI element.
Reimplemented from UMLWidget. Definition at line 213 of file activitywidget.cpp. References m_ActivityType. |
|
|
Loads the widget from the <activitywidget> XMI element.
Reimplemented from UMLWidget. Definition at line 222 of file activitywidget.cpp. References setActivityType(). |
|
|
Overrides method from UMLWidget.
Reimplemented from UMLWidget. Definition at line 128 of file activitywidget.cpp. References UMLWidget::getFontMetrics(), UMLWidget::getName(), and m_ActivityType. Referenced by constrain(). |
|
|
Captures any popup menu signals for menus it created.
Reimplemented from UMLWidget. Definition at line 154 of file activitywidget.cpp. References showProperties(), and UMLWidget::slotMenuSelection(). |
Member Data Documentation
|
|
Type of activity.
Definition at line 117 of file activitywidget.h. Referenced by calculateSize(), constrain(), draw(), getActivityType(), saveToXMI(), and setActivityType(). |
The documentation for this class was generated from the following files:
