umbrello  2.32.2
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  SPDX-License-Identifier: GPL-2.0-or-later
3  SPDX-FileCopyrightText: 2006-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4 */
5 
6 #ifndef WIDGET_FACTORY_H
7 #define WIDGET_FACTORY_H
8 
9 #include <QString>
10 
11 // forward declarations
12 class UMLObject;
13 class UMLScene;
14 class UMLWidget;
15 
20 namespace Widget_Factory {
21 
22  UMLWidget *createWidget(UMLScene *scene, UMLObject *docObj);
23 
24  UMLWidget* makeWidgetFromXMI(const QString& tag,
25  const QString& idStr, UMLScene *scene);
26 
27 } // end namespace Widget_Factory
28 
29 #endif
notewidget.h
UMLObject::asUMLNode
UMLNode * asUMLNode()
Definition: umlobject.cpp:1402
category.h
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1389
instance.h
PinWidget
A graphical version of a UML pin.
Definition: pinwidget.h:23
UMLObject::asUMLUseCase
UMLUseCase * asUMLUseCase()
Definition: umlobject.cpp:1411
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:75
Uml::DiagramType::Component
@ Component
Definition: basictypes.h:73
UMLObject::asUMLComponent
UMLComponent * asUMLComponent()
Definition: umlobject.cpp:1391
port.h
pinwidget.h
statewidget.h
UMLObject::asUMLPort
UMLPort * asUMLPort()
Definition: umlobject.cpp:1406
ObjectNodeWidget
A graphical version of a UML Activity.
Definition: objectnodewidget.h:23
UMLObject::ot_Port
@ ot_Port
Definition: umlobject.h:105
UMLObject::name
QString name() const
Definition: umlobject.cpp:206
umlview.h
activitywidget.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:35
Uml::ID::Reserved
const Type Reserved
special value for illegal ID
Definition: basictypes.h:374
UMLObject::ot_Artifact
@ ot_Artifact
Definition: umlobject.h:93
enumwidget.h
ArtifactWidget
A graphical version of an Artifact.
Definition: artifactwidget.h:25
entity.h
ObjectWidget::topMargin
int topMargin()
Definition: objectwidget.cpp:490
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:33
ActivityWidget
A graphical version of a UML Activity.
Definition: activitywidget.h:28
classifierwidget.h
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:85
RegionWidget
Definition: regionwidget.h:14
UMLObject::ot_Entity
@ ot_Entity
Definition: umlobject.h:97
UMLObject::asUMLInstance
UMLInstance * asUMLInstance()
Definition: umlobject.cpp:1400
UMLObject::setID
virtual void setID(Uml::ID::Type NewID)
Definition: umlobject.cpp:178
CategoryWidget
A graphical version of a UMLCategory.
Definition: categorywidget.h:31
artifact.h
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:63
object_factory.h
Uml::DiagramType::Collaboration
@ Collaboration
Definition: basictypes.h:70
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:82
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1300
floatingdashlinewidget.h
cmds.h
entitywidget.h
UMLObject::asUMLCategory
UMLCategory * asUMLCategory()
Definition: umlobject.cpp:1387
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:649
UMLObject::ot_Actor
@ ot_Actor
Definition: umlobject.h:79
datatypewidget.h
EnumWidget
A graphical version of an enum.
Definition: enumwidget.h:22
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:81
Uml::ID::Type
std::string Type
Definition: basictypes.h:371
UMLObject::asUMLActor
UMLActor * asUMLActor()
Definition: umlobject.cpp:1382
ObjectWidget::setDrawAsActor
void setDrawAsActor(bool drawAsActor)
Definition: objectwidget.cpp:225
packagewidget.h
CombinedFragmentWidget::Ref
@ Ref
Definition: combinedfragmentwidget.h:34
actorwidget.h
UMLObject
The base class for UML objects.
Definition: umlobject.h:69
SignalWidget
Definition: signalwidget.h:22
UMLObject::asUMLEnum
UMLEnum * asUMLEnum()
Definition: umlobject.cpp:1396
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:392
usecasewidget.h
Uml::TextRole::Floating
@ Floating
Definition: basictypes.h:177
UMLObject::asUMLArtifact
UMLArtifact * asUMLArtifact()
Definition: umlobject.cpp:1383
floatingtextwidget.h
UMLObject::asUMLEntity
UMLEntity * asUMLEntity()
Definition: umlobject.cpp:1393
Uml::ID::fromString
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1305
nodewidget.h
node.h
WidgetBase::wt_Pin
@ wt_Pin
Definition: widgetbase.h:134
Widget_Factory
Definition: widget_factory.cpp:60
UMLWidget::setX
virtual void setX(qreal x)
Definition: umlwidget.cpp:1726
PackageWidget
A graphical version of a Package.
Definition: packagewidget.h:25
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1039
Widget_Factory::validateObjType
bool validateObjType(UMLObject::ObjectType expected, UMLObject *&o, Uml::ID::Type id)
Definition: widget_factory.cpp:175
WidgetBase::wt_Port
@ wt_Port
Definition: widgetbase.h:138
DatatypeWidget
A graphical version of an datatype.
Definition: datatypewidget.h:24
objectwidget.h
uWarning
#define uWarning()
Definition: debug_utils.h:110
UMLScene::type
Uml::DiagramType::Enum type() const
Definition: umlscene.cpp:422
componentwidget.h
folder.h
UMLObject::ot_Node
@ ot_Node
Definition: umlobject.h:94
messagewidget.h
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:27
Widget_Factory::createWidget
UMLWidget * createWidget(UMLScene *scene, UMLObject *o)
Definition: widget_factory.cpp:65
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:83
SignalWidget::Send
@ Send
Definition: signalwidget.h:30
widget_factory.h
ForkJoinWidget
Displays a fork/join plate in a state diagram.
Definition: forkjoinwidget.h:20
uDebug
#define uDebug()
Definition: debug_utils.h:108
boxwidget.h
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:31
interfacewidget.h
FloatingDashLineWidget
A dash line for UML combined fragments.
Definition: floatingdashlinewidget.h:28
UMLWidget::setIsInstance
void setIsInstance(bool isInstance)
Definition: umlwidget.h:149
UMLObject::toString
static QString toString(ObjectType ot)
Definition: umlobject.cpp:1180
Widget_Factory::makeWidgetFromXMI
UMLWidget * makeWidgetFromXMI(const QString &tag, const QString &idStr, UMLScene *scene)
Definition: widget_factory.cpp:201
c
type show c for details The hypothetical commands show w and show c should show the appropriate parts of the General Public License Of the commands you use may be called something other than show w and show c
Definition: GPL-2.0-only.txt:301
UMLObject::ot_Instance
@ ot_Instance
Definition: umlobject.h:86
artifactwidget.h
UMLScene::pos
QPointF pos() const
Definition: umlscene.cpp:454
NodeWidget
A graphical version of a Node.
Definition: nodewidget.h:22
NoteWidget
Displays a note box.
Definition: notewidget.h:25
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:275
UMLObject::ot_Component
@ ot_Component
Definition: umlobject.h:92
InterfaceWidget
Definition: interfacewidget.h:19
UMLDoc
Definition: umldoc.h:69
ObjectNodeWidget::Normal
@ Normal
Definition: objectnodewidget.h:30
BoxWidget
Displays a box.
Definition: boxwidget.h:22
Uml::DiagramType::Sequence
@ Sequence
Definition: basictypes.h:69
UseCaseWidget
A graphical version of a UMLUseCase.
Definition: usecasewidget.h:37
UMLWidget::setY
virtual void setY(qreal y)
Definition: umlwidget.cpp:1738
Uml::SequenceMessage::Asynchronous
@ Asynchronous
Definition: basictypes.h:220
associationwidget.h
Uml::DiagramType::Class
@ Class
Definition: basictypes.h:67
classifier.h
ObjectWidget
Displays an instance of a Concept.
Definition: objectwidget.h:27
ActivityWidget::Initial
@ Initial
Definition: activitywidget.h:35
uError
#define uError()
Definition: debug_utils.h:109
Uml::DiagramType::Object
@ Object
Definition: basictypes.h:76
UMLObject::ot_Enum
@ ot_Enum
Definition: umlobject.h:84
umlscene.h
EntityWidget
A graphical version of an entity.
Definition: entitywidget.h:24
uml.h
portwidget.h
signalwidget.h
NoteWidget::Normal
@ Normal
Definition: notewidget.h:33
ComponentWidget
A graphical version of a Component.
Definition: componentwidget.h:24
UMLObject::ot_UseCase
@ ot_UseCase
Definition: umlobject.h:80
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:34
debug_utils.h
usecase.h
PortWidget
A graphical version of a port on a component.
Definition: portwidget.h:22
UMLScene
Definition: umlscene.h:64
actor.h
preconditionwidget.h
objectnodewidget.h
PreconditionWidget
A graphical version of a UML Precondition (new in UML 2.0).
Definition: preconditionwidget.h:27
UMLPackage::addObject
bool addObject(UMLObject *pObject, bool interactOnConflict=true)
Definition: package.cpp:130
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1405
package.h
categorywidget.h
CombinedFragmentWidget
A graphical version of a UML combined fragment.
Definition: combinedfragmentwidget.h:27
UMLObject::ot_Folder
@ ot_Folder
Definition: umlobject.h:99
combinedfragmentwidget.h
Uml::DiagramType::Deployment
@ Deployment
Definition: basictypes.h:74
WidgetBase::baseType
WidgetType baseType() const
Definition: widgetbase.cpp:122
MessageWidget
Displays a message.
Definition: messagewidget.h:35
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1063
umldoc.h
StateWidget::Normal
@ Normal
Definition: statewidget.h:42
forkjoinwidget.h
Import_Rose::diagramType
Uml::DiagramType::Enum diagramType(QString objType)
Definition: petaltree2uml.cpp:604
UMLObject::ot_Category
@ ot_Category
Definition: umlobject.h:104
UMLPackage
Non-graphical information for a Package.
Definition: package.h:27
ClassifierWidget::setDrawAsCircle
void setDrawAsCircle(bool drawAsCircle)
Definition: classifierwidget.cpp:1235
ActorWidget
A graphical version of a UML Actor.
Definition: actorwidget.h:36
enum.h
regionwidget.h