umbrello API Documentation

BoxWidget Class Reference

Displays a rectangular box. Displays a box. More...

#include <boxwidget.h>

Inheritance diagram for BoxWidget:

UMLWidget WidgetBase ForkJoinWidget List of all members.

Public Member Functions

 BoxWidget (UMLView *view, Uml::IDType id=Uml::id_None)
 Constructs a BoxWidget.
virtual ~BoxWidget ()
 destructor
void draw (QPainter &p, int offsetX, int offsetY)
 Draws a rectangle.
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
 Saves the widget to the <boxwidget> XMI element.

Detailed Description

Displays a rectangular box. Displays a box.

These widgets are diagram specific. They will still need a unique id from the UMLDoc class for deletion and other purposes.

Author:
Jonathan Riddell
See also:
UMLWidget Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 32 of file boxwidget.h.


Constructor & Destructor Documentation

BoxWidget::BoxWidget UMLView view,
Uml::IDType  id = Uml::id_None
[explicit]
 

Constructs a BoxWidget.

Parameters:
view The parent to this widget.
id The ID to assign (-1 will prompt a new ID.)

Definition at line 18 of file boxwidget.cpp.

References WidgetBase::setBaseType(), UMLWidget::setSize(), and UMLWidget::setZ().

BoxWidget::~BoxWidget  )  [virtual]
 

destructor

Definition at line 27 of file boxwidget.cpp.


Member Function Documentation

void BoxWidget::draw QPainter &  p,
int  offsetX,
int  offsetY
[virtual]
 

Draws a rectangle.

Implements UMLWidget.

Reimplemented in ForkJoinWidget.

Definition at line 30 of file boxwidget.cpp.

References UMLWidget::drawSelected(), and UMLWidget::setPen().

void BoxWidget::saveToXMI QDomDocument &  qDoc,
QDomElement &  qElement
[virtual]
 

Saves the widget to the <boxwidget> XMI element.

Note: For loading from XMI, the inherited parent method is used.

Reimplemented from UMLWidget.

Reimplemented in ForkJoinWidget.

Definition at line 39 of file boxwidget.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:03 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003