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

petaltree2uml.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 PETALTREE2UML_H
12 #define PETALTREE2UML_H
13
14 #include <QString>
15
16 // fwd decl
17 class PetalNode;
18 class UMLPackage;
19
27 namespace Import_Rose {
28
29 bool importView(PetalNode *root,
30 UMLPackage *parent,
31 const QString& rootName,
32 const QString& modelsName,
33 const QString& firstNodeName,
34 const QString& presentationsName = QString());
35
36 UMLPackage* petalTree2Uml(PetalNode *root, UMLPackage *parentPkg);
37
38 }
39
40 #endif
41
notewidget.h
UMLObject::id
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:425
umlrole.h
PetalNode::name
QString name() const
Definition: petalnode.cpp:93
Uml::DiagramType::UseCase
@ UseCase
Definition: basictypes.h:82
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1309
Uml::ModelType::Enum
Enum
Definition: basictypes.h:41
Import_Rose::ClassifierListReader::m_itemTypeDesignator
const QString m_itemTypeDesignator
Definition: petaltree2uml.cpp:257
UMLOperation::addParm
void addParm(UMLAttribute *parameter, int position=-1)
Definition: operation.cpp:276
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
Import_Rose::petalTree2Uml
UMLPackage * petalTree2Uml(PetalNode *root, UMLPackage *parentPkg)
Definition: petaltree2uml.cpp:934
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
Uml::DiagramType::Component
@ Component
Definition: basictypes.h:87
x
int x
Definition: cxx11-lambda-functions-and-expressions.h:4
Import_Rose::transferVisibility
void transferVisibility(const PetalNode *from, UMLObject *to)
Definition: petaltree2uml.cpp:163
Import_Rose::importView
bool importView(PetalNode *root, UMLPackage *parent, const QString &rootName, const QString &modelsName, const QString &firstNodeName, const QString &presentationsName)
Definition: petaltree2uml.cpp:878
UMLAssociation::setAssociationType
void setAssociationType(Uml::AssociationType::Enum assocType)
Definition: association.cpp:611
PetalNode::findAttribute
StringOrNode findAttribute(const QString &name) const
Definition: petalnode.cpp:144
UMLObject::asUMLOperation
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1324
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
umlview.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
petalnode.h
WidgetBase::setDocumentation
virtual void setDocumentation(const QString &doc)
Definition: widgetbase.cpp:294
UMLObject::ot_Association
@ ot_Association
Definition: umlobject.h:91
Import_Rose::ClassifierListReader::ClassifierListReader
ClassifierListReader(const char *attributeTag, const char *elementName, const char *itemTypeDesignator)
constructor
Definition: petaltree2uml.cpp:180
component.h
Import_Rose::SuperclassesReader::m_classifier
UMLClassifier * m_classifier
Definition: petaltree2uml.cpp:351
UMLObject::asUMLAttribute
UMLAttribute * asUMLAttribute()
Definition: umlobject.cpp:1305
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition: object_factory.cpp:203
AssociationWidget::create
static AssociationWidget * create(UMLScene *scene)
Definition: associationwidget.cpp:102
PetalNode
Definition: petalnode.h:40
UMLObject::setSecondaryId
void setSecondaryId(const QString &id)
Definition: umlobject.cpp:689
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
operation.h
UMLObject::setVisibilityCmd
void setVisibilityCmd(Uml::Visibility::Enum visibility)
Definition: umlobject.cpp:486
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
Uml::RoleType::A
@ A
Definition: basictypes.h:239
UMLObject::setID
virtual void setID(Uml::ID::Type NewID)
Definition: umlobject.cpp:183
Import_Rose::OperationsReader::createListItem
UMLObject * createListItem()
Definition: petaltree2uml.cpp:306
PetalNode::NameValueList
QList< NameValue > NameValueList
Definition: petalnode.h:56
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
object_factory.h
Import_Rose::ClassifierListReader::createListItem
virtual UMLObject * createListItem()=0
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1263
association.h
Import_Rose::typeToCreate
UMLObject::ObjectType typeToCreate(const QString &name)
Definition: petaltree2uml.cpp:148
UMLObject::setName
virtual void setName(const QString &strName)
Definition: umlobject.cpp:192
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:646
Import_Rose::AttributesReader
Definition: petaltree2uml.cpp:261
PetalNode::initialArgs
QStringList initialArgs() const
Definition: petalnode.cpp:88
Import_Rose::AttributesReader::m_classifier
UMLClassifier * m_classifier
Definition: petaltree2uml.cpp:275
Import_Rose::OperationsReader::~OperationsReader
virtual ~OperationsReader()
Definition: petaltree2uml.cpp:305
UMLObject::ot_Actor
@ ot_Actor
Definition: umlobject.h:83
UMLObject::asUMLAssociation
UMLAssociation * asUMLAssociation()
Definition: umlobject.cpp:1304
Import_Rose::RealizationsReader::m_classifier
UMLClassifier * m_classifier
Definition: petaltree2uml.cpp:386
Uml::AssociationType::toString
QString toString(Enum item)
Definition: basictypes.cpp:283
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:85
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
Import_Rose::ClassifierListReader
Definition: petaltree2uml.cpp:177
PetalNode::NameValue
QPair< QString, StringOrNode > NameValue
Definition: petalnode.h:55
Uml::AssociationType::UniAssociation
@ UniAssociation
Definition: basictypes.h:119
Import_Rose::ParametersReader::m_operation
UMLOperation * m_operation
Definition: petaltree2uml.cpp:295
model_utils.h
Import_Rose::ParametersReader
Definition: petaltree2uml.cpp:279
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
Uml::RoleType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:811
Import_Rose::SuperclassesReader::~SuperclassesReader
virtual ~SuperclassesReader()
Definition: petaltree2uml.cpp:326
UMLRole
Definition: umlrole.h:25
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
Import_Rose::RealizationsReader::~RealizationsReader
virtual ~RealizationsReader()
Definition: petaltree2uml.cpp:361
Uml::TextRole::Floating
@ Floating
Definition: basictypes.h:179
Uml::AssociationType::Anchor
@ Anchor
Definition: basictypes.h:120
UMLObject::asUMLFolder
UMLFolder * asUMLFolder()
Definition: umlobject.cpp:1318
UMLAssociation::getUMLRole
UMLRole * getUMLRole(Uml::RoleType::Enum role) const
Definition: association.cpp:585
floatingtextwidget.h
Import_Rose::RealizationsReader::insertAtParent
void insertAtParent(const PetalNode *, UMLObject *item)
Definition: petaltree2uml.cpp:379
Import_Rose::RealizationsReader
Definition: petaltree2uml.cpp:355
Import_Rose::mdlPath
QString mdlPath()
Definition: import_rose.cpp:58
Import_Rose::AttributesReader::AttributesReader
AttributesReader(UMLClassifier *c)
Definition: petaltree2uml.cpp:263
UMLScene::setupNewWidget
void setupNewWidget(UMLWidget *w, bool setPosition=true)
Definition: umlscene.cpp:715
Uml::AssociationType::Aggregation
@ Aggregation
Definition: basictypes.h:108
UMLObject::setStereotypeCmd
void setStereotypeCmd(const QString &_name)
Definition: umlobject.cpp:535
Uml::ID::fromString
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1268
node.h
Import_Rose::fetchLocation
QPointF fetchLocation(const PetalNode *node, qreal width, qreal height)
Definition: petaltree2uml.cpp:97
Import_Rose::ParametersReader::createListItem
UMLObject * createListItem()
Definition: petaltree2uml.cpp:286
Import_Rose::RealizationsReader::RealizationsReader
RealizationsReader(UMLClassifier *c)
Definition: petaltree2uml.cpp:357
Import_Rose::RealizationsReader::createListItem
UMLObject * createListItem()
Definition: petaltree2uml.cpp:362
PetalNode::StringOrNode
Definition: petalnode.h:48
UMLView
Definition: umlview.h:35
Import_Rose::fetchInt
qreal fetchInt(const PetalNode *node, const QString &attribute, int defaultValue=0)
Definition: petaltree2uml.cpp:135
uniqueid.h
UMLAssociation::setObject
void setObject(UMLObject *obj, Uml::RoleType::Enum role)
Definition: association.cpp:630
UMLDoc::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1038
attribute.h
UMLScene::addAssociation
bool addAssociation(AssociationWidget *pAssoc, bool isPasteOperation=false)
Definition: umlscene.cpp:2095
UMLRole::setMultiplicity
void setMultiplicity(const QString &multi)
Definition: umlrole.cpp:156
a
QString a
Definition: petalnode.cpp:18
UMLClassifier::addOperation
bool addOperation(UMLOperation *op, int position=-1)
Definition: classifier.cpp:310
uWarning
#define uWarning()
Definition: debug_utils.h:124
UMLDoc::addAssociation
void addAssociation(UMLAssociation *assoc)
Definition: umldoc.cpp:1481
Uml::ModelType::Component
@ Component
Definition: basictypes.h:44
UMLDoc::createDiagram
UMLView * createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: umldoc.cpp:1648
PetalNode::documentation
QString documentation() const
Definition: petalnode.cpp:105
UMLClassifier::setBaseType
void setBaseType(UMLObject::ObjectType ot)
Definition: classifier.cpp:83
Import_Rose::ParametersReader::~ParametersReader
virtual ~ParametersReader()
Definition: petaltree2uml.cpp:285
folder.h
Uml::AssociationType::Association
@ Association
Definition: basictypes.h:110
Widget_Factory::createWidget
UMLWidget * createWidget(UMLScene *scene, UMLObject *o)
Definition: widget_factory.cpp:70
Import_Rose::handleAssocView
void handleAssocView(PetalNode *attr, const PetalNode::NameValueList &parentAttrs, Uml::AssociationType::Enum assocType, UMLView *view, UMLObject *umlAssoc=0)
Definition: petaltree2uml.cpp:463
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
widget_factory.h
Import_Rose::clean
QString clean(const QString &s)
Definition: petaltree2uml.cpp:60
Import_Rose::ClassifierListReader::setTypeReferences
virtual void setTypeReferences(UMLObject *item, const QString &quid, const QString &type)
Definition: petaltree2uml.cpp:196
UMLWidget::setFillColorCmd
void setFillColorCmd(const QColor &color)
Definition: umlwidget.cpp:1180
Import_Rose::AttributesReader::insertAtParent
void insertAtParent(const PetalNode *, UMLObject *item)
Definition: petaltree2uml.cpp:271
uDebug
#define uDebug()
Definition: debug_utils.h:122
Import_Rose::ClassifierListReader::m_elementName
const QString m_elementName
Definition: petaltree2uml.cpp:257
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:37
v
std::vector< std::string > v
Definition: cxx11-initializer-lists.h:19
Uml::RoleType::B
@ B
Definition: basictypes.h:240
PetalNode::setAttributes
void setAttributes(NameValueList vl)
Definition: petalnode.cpp:134
Import_Rose::fetchDouble
qreal fetchDouble(const PetalNode *node, const QString &attribute, qreal defaultValue=0)
Definition: petaltree2uml.cpp:124
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:106
Uml::AssociationType::Generalization
@ Generalization
Definition: basictypes.h:107
import_rose.h
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
UMLDoc
Definition: umldoc.h:75
Import_Rose::RealizationsReader::setTypeReferences
void setTypeReferences(UMLObject *item, const QString &quid, const QString &type)
Definition: petaltree2uml.cpp:369
Import_Rose::quid
Uml::ID::Type quid(const PetalNode *node)
Definition: petaltree2uml.cpp:73
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
UMLWidget::setLineColorCmd
virtual void setLineColorCmd(const QColor &color)
Definition: umlwidget.cpp:1128
Import_Rose::ClassifierListReader::~ClassifierListReader
virtual ~ClassifierListReader()
destructor
Definition: petaltree2uml.cpp:188
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:35
Import_Rose::Rose2Qt
const qreal Rose2Qt
Definition: petaltree2uml.cpp:54
Import_Rose::loadFromMDL
UMLPackage * loadFromMDL(QFile &file, UMLPackage *parentPkg)
Definition: import_rose.cpp:397
Import_Rose::SuperclassesReader
Definition: petaltree2uml.cpp:320
UniqueID::gen
Uml::ID::Type gen()
Definition: uniqueid.cpp:26
Import_Rose::OperationsReader::m_classifier
UMLClassifier * m_classifier
Definition: petaltree2uml.cpp:316
associationwidget.h
Uml::Visibility::Enum
Enum
Definition: basictypes.h:59
UMLObject::setDoc
void setDoc(const QString &d)
Definition: umlobject.cpp:455
Uml::DiagramType::Class
@ Class
Definition: basictypes.h:81
PetalNode::attributes
NameValueList attributes() const
Definition: petalnode.cpp:117
classifier.h
uError
#define uError()
Definition: debug_utils.h:123
UMLOperation
Definition: operation.h:25
Import_Rose::OperationsReader
Definition: petaltree2uml.cpp:299
umlscene.h
uml.h
UMLWidget::setSize
void setSize(qreal width, qreal height)
Definition: umlwidget.cpp:1745
Import_Rose::OperationsReader::insertAtParent
void insertAtParent(const PetalNode *node, UMLObject *item)
Definition: petaltree2uml.cpp:309
NoteWidget::Normal
@ Normal
Definition: notewidget.h:38
UMLObject::setUMLPackage
bool setUMLPackage(UMLPackage *pPkg)
Definition: umlobject.cpp:616
UMLObject::ot_UseCase
@ ot_UseCase
Definition: umlobject.h:84
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
UMLAssociation
Sets up association information.
Definition: association.h:33
Import_Rose::SuperclassesReader::setTypeReferences
void setTypeReferences(UMLObject *item, const QString &quid, const QString &type)
Definition: petaltree2uml.cpp:334
UMLScene::widgetOnDiagram
UMLWidget * widgetOnDiagram(Uml::ID::Type id)
Definition: umlscene.cpp:1139
usecase.h
Import_Rose::SuperclassesReader::createListItem
UMLObject * createListItem()
Definition: petaltree2uml.cpp:327
Import_Rose::ClassifierListReader::read
void read(const PetalNode *node, const QString &name)
Definition: petaltree2uml.cpp:226
actor.h
PetalNode::StringOrNode::string
QString string
Definition: petalnode.h:49
Import_Rose::ParametersReader::insertAtParent
void insertAtParent(const PetalNode *, UMLObject *item)
Definition: petaltree2uml.cpp:289
PetalNode::StringOrNode::node
PetalNode * node
Definition: petalnode.h:50
Import_Rose::ParametersReader::ParametersReader
ParametersReader(UMLOperation *op)
Definition: petaltree2uml.cpp:281
Uml::AssociationType::Composition
@ Composition
Definition: basictypes.h:117
UMLView::umlScene
UMLScene * umlScene() const
Definition: umlview.cpp:56
Import_Rose::handleControlledUnit
UMLPackage * handleControlledUnit(PetalNode *node, const QString &name, Uml::ID::Type id, UMLPackage *parentPkg)
Definition: petaltree2uml.cpp:399
Uml::DiagramType::Undefined
@ Undefined
Definition: basictypes.h:80
UMLPackage::addObject
bool addObject(UMLObject *pObject, bool interactOnConflict=true)
Definition: package.cpp:135
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1325
Import_Rose::ClassifierListReader::m_attributeTag
const QString m_attributeTag
Definition: petaltree2uml.cpp:257
petaltree2uml.h
Import_Rose::AttributesReader::~AttributesReader
virtual ~AttributesReader()
Definition: petaltree2uml.cpp:267
Import_Rose::OperationsReader::OperationsReader
OperationsReader(UMLClassifier *c)
Definition: petaltree2uml.cpp:301
Import_Rose::SuperclassesReader::SuperclassesReader
SuperclassesReader(UMLClassifier *c)
Definition: petaltree2uml.cpp:322
package.h
Uml::AssociationType::Dependency
@ Dependency
Definition: basictypes.h:109
UMLObject::ot_Folder
@ ot_Folder
Definition: umlobject.h:103
Uml::DiagramType::Deployment
@ Deployment
Definition: basictypes.h:88
Model_Utils::rootPackage
UMLPackage * rootPackage(UMLObject *obj)
Definition: model_utils.cpp:380
UMLDoc::rootFolderType
Uml::ModelType::Enum rootFolderType(UMLObject *obj)
Definition: umldoc.cpp:3220
Import_Rose::SuperclassesReader::insertAtParent
void insertAtParent(const PetalNode *, UMLObject *item)
Definition: petaltree2uml.cpp:344
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
Uml::AssociationType::Realization
@ Realization
Definition: basictypes.h:118
Uml::Visibility::fromString
Enum fromString(const QString &item, bool checkUnkown)
Definition: basictypes.cpp:127
umldoc.h
UMLObject::setSecondaryFallback
void setSecondaryFallback(const QString &id)
Definition: umlobject.cpp:707
Import_Rose
Definition: import_rose.cpp:33
Import_Rose::ClassifierListReader::insertAtParent
virtual void insertAtParent(const PetalNode *node, UMLObject *o)=0
WidgetBase::id
Uml::ID::Type id() const
Definition: widgetbase.cpp:214
Import_Rose::AttributesReader::createListItem
UMLObject * createListItem()
Definition: petaltree2uml.cpp:268
Import_Rose::quidu
QString quidu(const PetalNode *node)
Definition: petaltree2uml.cpp:85
UMLClassifier::addAttribute
UMLAttribute * addAttribute(const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: classifier.cpp:810
Import_Rose::diagramType
Uml::DiagramType::Enum diagramType(QString objType)
Definition: petaltree2uml.cpp:543
Import_Rose::umbrellify
bool umbrellify(PetalNode *node, UMLPackage *parentPkg)
Definition: petaltree2uml.cpp:562
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33