WidgetBase Class Reference
Common base class for UMLWidget and AssociationWidget. More...
#include <widgetbase.h>
Inheritance diagram for WidgetBase:

Public Member Functions | |
| WidgetBase (UMLView *view) | |
| Creates a WidgetBase object. | |
| virtual | ~WidgetBase () |
| Standard deconstructor. | |
| void | setBaseType (Uml::Widget_Type type) |
| Write property of m_Type. | |
| Uml::Widget_Type | getBaseType () const |
| Read property of m_Type. | |
| UMLObject * | getUMLObject () |
| Returns the UMLObject set to represent. | |
| const UMLView * | getUMLView () const |
| Deliver a const pointer to the connected UMLView ( needed esp. | |
| virtual void | setUMLObject (UMLObject *o) |
| Sets the UMLObject to represent. | |
| virtual QString | getDoc () const |
| Used by some child classes to get documentation. | |
| virtual void | setDoc (const QString &doc) |
| Used by some child classes to set documentation. | |
| virtual void | setLineColor (const QColor &colour) |
| Sets the line colour. | |
| virtual void | setLineWidth (uint width) |
| Sets the line width. | |
| QColor | getLineColor () const |
| Read property of m_LineColour. | |
| uint | getLineWidth () const |
| Read property of m_LineWidth. | |
| bool | getUsesDiagramLineColour () const |
| Returns m_bUsesDiagramLineColour. | |
| bool | getUsesDiagramLineWidth () const |
| Returns m_bUsesDiagramLineWidth. | |
| void | setUsesDiagramLineColour (bool usesDiagramLineColour) |
| Sets m_bUsesDiagramLineColour. | |
| void | setUsesDiagramLineWidth (bool usesDiagramLineWidth) |
| Sets m_bUsesDiagramLineWidth. | |
| void | setID (Uml::IDType id) |
| Write property of m_nId. | |
| Uml::IDType | getID () const |
| Read property of m_nId. | |
| virtual void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
| virtual bool | loadFromXMI (QDomElement &qElement) |
Protected Member Functions | |
| void | init (UMLView *view, Uml::Widget_Type type=Uml::wt_UMLWidget) |
| Initialize members. | |
Protected Attributes | |
| Uml::Widget_Type | m_Type |
| Type of widget. | |
| UMLView * | m_pView |
| UMLObject * | m_pObject |
| QString | m_Doc |
| Only used if m_pObject is not set. | |
| Uml::IDType | m_nId |
| This ID is only used when the widget does not have a corresponding UMLObject (i.e. | |
| QColor | m_LineColour |
| Color of the lines of the widget. | |
| uint | m_LineWidth |
| Width of the lines of the widget. | |
| bool | m_bUsesDiagramLineColour |
| true by default, false if the colours have been explicitly set for this widget. | |
| bool | m_bUsesDiagramLineWidth |
| true by default, false if the colours have been explicitly set for this widget. | |
Detailed Description
Common base class for UMLWidget and AssociationWidget.
- Author:
- Oliver Kellogg <okellogg@users.sourceforge.net> Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
Definition at line 30 of file widgetbase.h.
Constructor & Destructor Documentation
|
|
Creates a WidgetBase object.
Definition at line 19 of file widgetbase.cpp. References init(). |
|
|
Standard deconstructor.
Definition at line 43 of file widgetbase.h. |
Member Function Documentation
|
|
Write property of m_Type.
Definition at line 42 of file widgetbase.cpp. References m_Type. Referenced by ActivityWidget::ActivityWidget(), ActorWidget::ActorWidget(), BoxWidget::BoxWidget(), ClassifierWidget::changeToClass(), ClassifierWidget::changeToInterface(), ClassifierWidget::ClassifierWidget(), MessageWidget::init(), EnumWidget::init(), EntityWidget::init(), ClassifierWidget::init(), NodeWidget::NodeWidget(), StateWidget::StateWidget(), and UseCaseWidget::UseCaseWidget(). |
|
|
|
Returns the UMLObject set to represent.
Definition at line 50 of file widgetbase.cpp. Referenced by MessageWidget::activate(), ClassPropDlg::ClassPropDlg(), UMLView::createAutoAssociations(), UMLView::createAutoAttributeAssociations(), MessageWidget::getOperationOwner(), AssociationWidget::getOperationOwner(), MessageWidget::getSeqNumAndOp(), AssociationWidget::getSeqNumAndOp(), UMLView::getUMLObjects(), UMLView::getWidgetAssocs(), AssociationWidget::loadFromXMI(), UMLWidget::showProperties(), DocWindow::slotAssociationRemoved(), DocWindow::slotWidgetRemoved(), UMLView::updateContainment(), and ClassGenPage::updateObject(). |
|
|
Deliver a const pointer to the connected UMLView ( needed esp. by event handling of LinePath ) Definition at line 66 of file widgetbase.h. Referenced by LinePath::getCanvas(), LinePath::slotLineColorChanged(), and LinePath::slotLineWidthChanged(). |
|
|
Sets the UMLObject to represent.
Reimplemented in AssociationWidget. Definition at line 54 of file widgetbase.cpp. Referenced by AssociationWidget::setUMLObject(). |
|
|
Used by some child classes to get documentation.
Reimplemented in NoteWidget. Definition at line 75 of file widgetbase.cpp. References UMLObject::getDoc(), and m_Doc. Referenced by AssociationWidget::showDialog(). |
|
|
Used by some child classes to set documentation.
Reimplemented in NoteWidget. Definition at line 81 of file widgetbase.cpp. References m_Doc, and UMLObject::setDoc(). Referenced by AssociationWidget::loadFromXMI(), AssociationWidget::showDialog(), ClassGenPage::updateObject(), and AssocGenPage::updateObject(). |
|
|
Sets the line colour.
Reimplemented in AssociationWidget, and UMLWidget. Definition at line 88 of file widgetbase.cpp. References m_bUsesDiagramLineColour, and m_LineColour. Referenced by UMLWidget::setLineColor(), and AssociationWidget::setLineColor(). |
|
|
Sets the line width.
Reimplemented in AssociationWidget, and UMLWidget. Definition at line 93 of file widgetbase.cpp. References m_bUsesDiagramLineWidth, and m_LineWidth. Referenced by UMLWidget::setLineWidth(), and AssociationWidget::setLineWidth(). |
|
|
Read property of m_LineColour.
Definition at line 107 of file widgetbase.h. References m_LineColour. Referenced by AssociationWidget::createAssocClassLine(), SeqLineWidget::SeqLineWidget(), SeqLineWidget::setupDestructionBox(), and UMLWidget::slotMenuSelection(). |
|
|
Read property of m_LineWidth.
Definition at line 114 of file widgetbase.h. References m_LineWidth. Referenced by AssociationWidget::createAssocClassLine(). |
|
|
Returns m_bUsesDiagramLineColour.
Definition at line 121 of file widgetbase.h. References m_bUsesDiagramLineColour. |
|
|
Returns m_bUsesDiagramLineWidth.
Definition at line 128 of file widgetbase.h. References m_bUsesDiagramLineWidth. |
|
|
Sets m_bUsesDiagramLineColour.
Definition at line 135 of file widgetbase.h. References m_bUsesDiagramLineColour. Referenced by UMLView::selectionSetLineColor(). |
|
|
Sets m_bUsesDiagramLineWidth.
Definition at line 142 of file widgetbase.h. References m_bUsesDiagramLineWidth. Referenced by UMLView::selectionSetLineWidth(). |
|
|
Write property of m_nId.
Definition at line 58 of file widgetbase.cpp. References UMLObject::getID(), m_nId, and UMLObject::setID(). Referenced by UMLView::addWidget(), and UMLView::slotMenuSelection(). |
|
|
Read property of m_nId.
Definition at line 69 of file widgetbase.cpp. References UMLObject::getID(), and m_nId. Referenced by UMLView::addWidget(), UMLView::createAutoAssociations(), UMLView::findAssocWidget(), Widget_Utils::findWidget(), UMLWidget::operator==(), MessageWidget::saveToXMI(), and AssociationWidget::saveToXMI(). |
|
||||||||||||
|
Initialize members.
Definition at line 23 of file widgetbase.cpp. References UMLView::getOptionState(), m_bUsesDiagramLineColour, m_bUsesDiagramLineWidth, m_LineColour, m_LineWidth, and m_Type. Referenced by AssociationWidget::AssociationWidget(), and WidgetBase(). |
Member Data Documentation
|
|
Type of widget.
Definition at line 169 of file widgetbase.h. Referenced by getBaseType(), init(), UMLWidget::operator=(), and setBaseType(). |
|
|
Only used if m_pObject is not set.
Definition at line 173 of file widgetbase.h. |
|
|
This ID is only used when the widget does not have a corresponding UMLObject (i.e. the m_pObject pointer is NULL.) For UMLObjects, the ID from the UMLObject is used. Definition at line 180 of file widgetbase.h. Referenced by getID(), UMLWidget::operator=(), and setID(). |
|
|
Color of the lines of the widget. Is saved to XMI. Definition at line 185 of file widgetbase.h. Referenced by getLineColor(), init(), UMLWidget::operator=(), and setLineColor(). |
|
|
Width of the lines of the widget. Is saved to XMI. Definition at line 190 of file widgetbase.h. Referenced by getLineWidth(), init(), UMLWidget::operator=(), and setLineWidth(). |
|
|
true by default, false if the colours have been explicitly set for this widget. These are saved to XMI. Definition at line 197 of file widgetbase.h. Referenced by getUsesDiagramLineColour(), init(), UMLWidget::operator=(), setLineColor(), and setUsesDiagramLineColour(). |
|
|
true by default, false if the colours have been explicitly set for this widget. These are saved to XMI. Definition at line 197 of file widgetbase.h. Referenced by getUsesDiagramLineWidth(), init(), UMLWidget::operator=(), setLineWidth(), and setUsesDiagramLineWidth(). |
The documentation for this class was generated from the following files:
