umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

widget_factory.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2006-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef WIDGET_FACTORY_H
12 #define WIDGET_FACTORY_H
13
14 #include <QString>
15
16 // forward declarations
17 class UMLObject;
18 class UMLScene;
19 class UMLWidget;
20
25 namespace Widget_Factory {
26
27 UMLWidget *createWidget(UMLScene *scene, UMLObject *docObj);
28
29 UMLWidget* makeWidgetFromXMI(const QString& tag,
30 const QString& idStr, UMLScene *scene);
31
32 } // end namespace Widget_Factory
33
34 #endif
notewidget.h
UMLObject::asUMLNode
UMLNode * asUMLNode()
Definition: umlobject.cpp:1322
category.h
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1309
instance.h
PinWidget
A graphical version of a UML pin.
Definition: pinwidget.h:29
UMLObject::asUMLUseCase
UMLUseCase * asUMLUseCase()
Definition: umlobject.cpp:1331
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
Uml::DiagramType::Component
@ Component
Definition: basictypes.h:87
UMLObject::asUMLComponent
UMLComponent * asUMLComponent()
Definition: umlobject.cpp:1311
port.h
pinwidget.h
statewidget.h
UMLObject::asUMLPort
UMLPort * asUMLPort()
Definition: umlobject.cpp:1326
ObjectNodeWidget
A graphical version of a UML Activity.
Definition: objectnodewidget.h:29
UMLObject::ot_Port
@ ot_Port
Definition: umlobject.h:109
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
umlview.h
activitywidget.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
Uml::ID::Reserved
const Type Reserved
special value for illegal ID
Definition: basictypes.h:354
UMLObject::ot_Artifact
@ ot_Artifact
Definition: umlobject.h:97
enumwidget.h
ArtifactWidget
A graphical version of an Artifact.
Definition: artifactwidget.h:31
entity.h
ObjectWidget::topMargin
int topMargin()
Definition: objectwidget.cpp:494
component.h
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition: object_factory.cpp:203
StateWidget
A graphical version of a UML State.
Definition: statewidget.h:39
ActivityWidget
A graphical version of a UML Activity.
Definition: activitywidget.h:34
classifierwidget.h
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
RegionWidget
Definition: regionwidget.h:20
UMLObject::ot_Entity
@ ot_Entity
Definition: umlobject.h:101
UMLObject::asUMLInstance
UMLInstance * asUMLInstance()
Definition: umlobject.cpp:1320
UMLObject::setID
virtual void setID(Uml::ID::Type NewID)
Definition: umlobject.cpp:183
CategoryWidget
A graphical version of a UMLCategory.
Definition: categorywidget.h:37
artifact.h
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
object_factory.h
Uml::DiagramType::Collaboration
@ Collaboration
Definition: basictypes.h:84
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1263
floatingdashlinewidget.h
cmds.h
entitywidget.h
UMLObject::asUMLCategory
UMLCategory * asUMLCategory()
Definition: umlobject.cpp:1307
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:646
UMLObject::ot_Actor
@ ot_Actor
Definition: umlobject.h:83
datatypewidget.h
EnumWidget
A graphical version of an enum.
Definition: enumwidget.h:28
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:85
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
UMLObject::asUMLActor
UMLActor * asUMLActor()
Definition: umlobject.cpp:1302
ObjectWidget::setDrawAsActor
void setDrawAsActor(bool drawAsActor)
Definition: objectwidget.cpp:229
packagewidget.h
CombinedFragmentWidget::Ref
@ Ref
Definition: combinedfragmentwidget.h:39
actorwidget.h
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
SignalWidget
Definition: signalwidget.h:28
UMLObject::asUMLEnum
UMLEnum * asUMLEnum()
Definition: umlobject.cpp:1316
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
usecasewidget.h
Uml::TextRole::Floating
@ Floating
Definition: basictypes.h:179
UMLObject::asUMLArtifact
UMLArtifact * asUMLArtifact()
Definition: umlobject.cpp:1303
floatingtextwidget.h
UMLObject::asUMLEntity
UMLEntity * asUMLEntity()
Definition: umlobject.cpp:1313
Uml::ID::fromString
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1268
nodewidget.h
node.h
WidgetBase::wt_Pin
@ wt_Pin
Definition: widgetbase.h:138
Widget_Factory
Definition: widget_factory.cpp:65
UMLWidget::setX
virtual void setX(qreal x)
Definition: umlwidget.cpp:1685
PackageWidget
A graphical version of a Package.
Definition: packagewidget.h:31
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1038
Widget_Factory::validateObjType
bool validateObjType(UMLObject::ObjectType expected, UMLObject *&o, Uml::ID::Type id)
Definition: widget_factory.cpp:180
WidgetBase::wt_Port
@ wt_Port
Definition: widgetbase.h:142
DatatypeWidget
A graphical version of an datatype.
Definition: datatypewidget.h:30
objectwidget.h
uWarning
#define uWarning()
Definition: debug_utils.h:124
UMLScene::type
Uml::DiagramType::Enum type() const
Definition: umlscene.cpp:426
componentwidget.h
folder.h
UMLObject::ot_Node
@ ot_Node
Definition: umlobject.h:98
messagewidget.h
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:33
Widget_Factory::createWidget
UMLWidget * createWidget(UMLScene *scene, UMLObject *o)
Definition: widget_factory.cpp:70
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
SignalWidget::Send
@ Send
Definition: signalwidget.h:35
widget_factory.h
ForkJoinWidget
Displays a fork/join plate in a state diagram.
Definition: forkjoinwidget.h:26
uDebug
#define uDebug()
Definition: debug_utils.h:122
boxwidget.h
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:37
interfacewidget.h
FloatingDashLineWidget
A dash line for UML combined fragments.
Definition: floatingdashlinewidget.h:34
UMLWidget::setIsInstance
void setIsInstance(bool isInstance)
Definition: umlwidget.h:151
UMLObject::toString
static QString toString(ObjectType ot)
Definition: umlobject.cpp:1125
Widget_Factory::makeWidgetFromXMI
UMLWidget * makeWidgetFromXMI(const QString &tag, const QString &idStr, UMLScene *scene)
Definition: widget_factory.cpp:206
UMLObject::ot_Instance
@ ot_Instance
Definition: umlobject.h:90
artifactwidget.h
UMLScene::pos
QPointF pos() const
Definition: umlscene.cpp:458
NodeWidget
A graphical version of a Node.
Definition: nodewidget.h:28
NoteWidget
Displays a note box.
Definition: notewidget.h:31
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
UMLObject::ot_Component
@ ot_Component
Definition: umlobject.h:96
InterfaceWidget
Definition: interfacewidget.h:25
UMLDoc
Definition: umldoc.h:75
ObjectNodeWidget::Normal
@ Normal
Definition: objectnodewidget.h:35
BoxWidget
Displays a box.
Definition: boxwidget.h:28
Uml::DiagramType::Sequence
@ Sequence
Definition: basictypes.h:83
UseCaseWidget
A graphical version of a UMLUseCase.
Definition: usecasewidget.h:43
UMLWidget::setY
virtual void setY(qreal y)
Definition: umlwidget.cpp:1697
Uml::SequenceMessage::Asynchronous
@ Asynchronous
Definition: basictypes.h:222
associationwidget.h
Uml::DiagramType::Class
@ Class
Definition: basictypes.h:81
classifier.h
ObjectWidget
Displays an instance of a Concept.
Definition: objectwidget.h:33
ActivityWidget::Initial
@ Initial
Definition: activitywidget.h:40
uError
#define uError()
Definition: debug_utils.h:123
Uml::DiagramType::Object
@ Object
Definition: basictypes.h:90
UMLObject::ot_Enum
@ ot_Enum
Definition: umlobject.h:88
umlscene.h
EntityWidget
A graphical version of an entity.
Definition: entitywidget.h:30
uml.h
portwidget.h
signalwidget.h
NoteWidget::Normal
@ Normal
Definition: notewidget.h:38
ComponentWidget
A graphical version of a Component.
Definition: componentwidget.h:30
UMLObject::ot_UseCase
@ ot_UseCase
Definition: umlobject.h:84
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
usecase.h
PortWidget
A graphical version of a port on a component.
Definition: portwidget.h:28
UMLScene
Definition: umlscene.h:69
actor.h
preconditionwidget.h
objectnodewidget.h
PreconditionWidget
A graphical version of a UML Precondition (new in UML 2.0).
Definition: preconditionwidget.h:33
UMLPackage::addObject
bool addObject(UMLObject *pObject, bool interactOnConflict=true)
Definition: package.cpp:135
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1325
package.h
categorywidget.h
CombinedFragmentWidget
A graphical version of a UML combined fragment.
Definition: combinedfragmentwidget.h:33
UMLObject::ot_Folder
@ ot_Folder
Definition: umlobject.h:103
combinedfragmentwidget.h
Uml::DiagramType::Deployment
@ Deployment
Definition: basictypes.h:88
WidgetBase::baseType
WidgetType baseType() const
Definition: widgetbase.cpp:115
MessageWidget
Displays a message.
Definition: messagewidget.h:41
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
StateWidget::Normal
@ Normal
Definition: statewidget.h:47
forkjoinwidget.h
Import_Rose::diagramType
Uml::DiagramType::Enum diagramType(QString objType)
Definition: petaltree2uml.cpp:543
UMLObject::ot_Category
@ ot_Category
Definition: umlobject.h:108
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
ClassifierWidget::setDrawAsCircle
void setDrawAsCircle(bool drawAsCircle)
Definition: classifierwidget.cpp:1153
ActorWidget
A graphical version of a UML Actor.
Definition: actorwidget.h:42
enum.h
regionwidget.h