umbrello API Documentation

Widget_Factory Namespace Reference

Widget factory methods. More...


Functions

UMLWidgetcreateWidget (UMLView *view, UMLObject *o)
 Create a UMLWidget in the given view and representing the given document object.
bool validateObjType (Uml::Object_Type expected, UMLObject *&o, Uml::IDType id)
UMLWidgetmakeWidgetFromXMI (const QString &tag, const QString &idStr, UMLView *view)
 Create a UMLWidget according to the given XMI tag.


Detailed Description

Widget factory methods.

Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org


Function Documentation

UMLWidget * Widget_Factory::createWidget UMLView view,
UMLObject docObj
 

Create a UMLWidget in the given view and representing the given document object.

Definition at line 56 of file widget_factory.cpp.

References WidgetBase::getBaseType(), ObjectWidget::setDrawAsActor(), ClassifierWidget::setDrawAsCircle(), UMLWidget::setIsInstance(), UMLWidget::setX(), UMLWidget::setY(), and ObjectWidget::topMargin().

UMLWidget * Widget_Factory::makeWidgetFromXMI const QString &  tag,
const QString &  idStr,
UMLView view
 

Create a UMLWidget according to the given XMI tag.

Definition at line 164 of file widget_factory.cpp.

References UMLDoc::findObjectById(), and UMLApp::getDocument().

Referenced by UMLView::loadWidgetFromXMI().

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:09 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003