umbrello: umbrello/petaltree2uml.h Source File

umbrello 2.31.0 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:99
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1308
Uml::ModelType::Enum
Enum
Definition: basictypes.h:75
Import_Rose::ClassifierListReader::m_itemTypeDesignator
const QString m_itemTypeDesignator
Definition: petaltree2uml.cpp:265
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:51
Import_Rose::petalTree2Uml
UMLPackage * petalTree2Uml(PetalNode *root, UMLPackage *parentPkg)
Definition: petaltree2uml.cpp:942
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:79
Uml::DiagramType::Component
@ Component
Definition: basictypes.h:104
x
int x
Definition: cxx11-lambda-functions-and-expressions.h:4
Import_Rose::transferVisibility
void transferVisibility(const PetalNode *from, UMLObject *to)
Definition: petaltree2uml.cpp:171
Import_Rose::importView
bool importView(PetalNode *root, UMLPackage *parent, const QString &rootName, const QString &modelsName, const QString &firstNodeName, const QString &presentationsName)
Definition: petaltree2uml.cpp:886
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:1323
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
umlview.h
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:40
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:188
component.h
Import_Rose::SuperclassesReader::m_classifier
UMLClassifier * m_classifier
Definition: petaltree2uml.cpp:359
UMLObject::asUMLAttribute
UMLAttribute * asUMLAttribute()
Definition: umlobject.cpp:1304
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition: object_factory.cpp:211
AssociationWidget::create
static AssociationWidget * create(UMLScene *scene)
Definition: associationwidget.cpp:102
PetalNode
Definition: petalnode.h:39
UMLObject::setSecondaryId
void setSecondaryId(const QString &id)
Definition: umlobject.cpp:688
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:370
Uml::RoleType::A
@ A
Definition: basictypes.h:256
UMLObject::setID
virtual void setID(Uml::ID::Type NewID)
Definition: umlobject.cpp:183
Import_Rose::OperationsReader::createListItem
UMLObject * createListItem()
Definition: petaltree2uml.cpp:314
PetalNode::NameValueList
QList< NameValue > NameValueList
Definition: petalnode.h:64
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:94
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:1280
association.h
Import_Rose::typeToCreate
UMLObject::ObjectType typeToCreate(const QString &name)
Definition: petaltree2uml.cpp:156
UMLObject::setName
virtual void setName(const QString &strName)
Definition: umlobject.cpp:192
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:645
PetalNode::initialArgs
QStringList initialArgs() const
Definition: petalnode.cpp:88
Import_Rose::AttributesReader::m_classifier
UMLClassifier * m_classifier
Definition: petaltree2uml.cpp:283
Import_Rose::OperationsReader::~OperationsReader
virtual ~OperationsReader()
Definition: petaltree2uml.cpp:313
UMLObject::ot_Actor
@ ot_Actor
Definition: umlobject.h:83
UMLObject::asUMLAssociation
UMLAssociation * asUMLAssociation()
Definition: umlobject.cpp:1303
Import_Rose::RealizationsReader::m_classifier
UMLClassifier * m_classifier
Definition: petaltree2uml.cpp:394
Uml::AssociationType::toString
QString toString(Enum item)
Definition: basictypes.cpp:300
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:85
Uml::ID::Type
std::string Type
Definition: basictypes.h:368
Import_Rose::ClassifierListReader
Definition: petaltree2uml.cpp:184
PetalNode::NameValue
QPair< QString, StringOrNode > NameValue
Definition: petalnode.h:63
Uml::AssociationType::UniAssociation
@ UniAssociation
Definition: basictypes.h:136
Import_Rose::ParametersReader::m_operation
UMLOperation * m_operation
Definition: petaltree2uml.cpp:303
model_utils.h
Import_Rose::ParametersReader
Definition: petaltree2uml.cpp:286
UMLObject
The base class for UML objects.
Definition: umlobject.h:73
Uml::RoleType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:828
Import_Rose::SuperclassesReader::~SuperclassesReader
virtual ~SuperclassesReader()
Definition: petaltree2uml.cpp:334
UMLRole
Definition: umlrole.h:24
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
Import_Rose::RealizationsReader::~RealizationsReader
virtual ~RealizationsReader()
Definition: petaltree2uml.cpp:369
Uml::TextRole::Floating
@ Floating
Definition: basictypes.h:196
Uml::AssociationType::Anchor
@ Anchor
Definition: basictypes.h:137
UMLObject::asUMLFolder
UMLFolder * asUMLFolder()
Definition: umlobject.cpp:1317
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:387
Import_Rose::RealizationsReader
Definition: petaltree2uml.cpp:362
Import_Rose::mdlPath
QString mdlPath()
Definition: import_rose.cpp:66
Import_Rose::AttributesReader::AttributesReader
AttributesReader(UMLClassifier *c)
Definition: petaltree2uml.cpp:271
UMLScene::setupNewWidget
void setupNewWidget(UMLWidget *w, bool setPosition=true)
Definition: umlscene.cpp:715
Uml::AssociationType::Aggregation
@ Aggregation
Definition: basictypes.h:125
UMLObject::setStereotypeCmd
void setStereotypeCmd(const QString &_name)
Definition: umlobject.cpp:534
Uml::ID::fromString
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1285
node.h
Import_Rose::fetchLocation
QPointF fetchLocation(const PetalNode *node, qreal width, qreal height)
Definition: petaltree2uml.cpp:105
Import_Rose::ParametersReader::createListItem
UMLObject * createListItem()
Definition: petaltree2uml.cpp:294
Import_Rose::RealizationsReader::RealizationsReader
RealizationsReader(UMLClassifier *c)
Definition: petaltree2uml.cpp:365
Import_Rose::RealizationsReader::createListItem
UMLObject * createListItem()
Definition: petaltree2uml.cpp:370
PetalNode::StringOrNode
Definition: petalnode.h:56
UMLView
Definition: umlview.h:34
Import_Rose::fetchInt
qreal fetchInt(const PetalNode *node, const QString &attribute, int defaultValue=0)
Definition: petaltree2uml.cpp:143
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:1036
attribute.h
UMLScene::addAssociation
bool addAssociation(AssociationWidget *pAssoc, bool isPasteOperation=false)
Definition: umlscene.cpp:2080
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:1479
Uml::ModelType::Component
@ Component
Definition: basictypes.h:95
UMLDoc::createDiagram
UMLView * createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name, Uml::ID::Type id=Uml::ID::None)
Definition: umldoc.cpp:1646
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:293
folder.h
Uml::AssociationType::Association
@ Association
Definition: basictypes.h:127
Widget_Factory::createWidget
UMLWidget * createWidget(UMLScene *scene, UMLObject *o)
Definition: widget_factory.cpp:78
Import_Rose::handleAssocView
void handleAssocView(PetalNode *attr, const PetalNode::NameValueList &parentAttrs, Uml::AssociationType::Enum assocType, UMLView *view, UMLObject *umlAssoc=0)
Definition: petaltree2uml.cpp:471
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
widget_factory.h
Import_Rose::clean
QString clean(const QString &s)
Definition: petaltree2uml.cpp:68
Import_Rose::ClassifierListReader::setTypeReferences
virtual void setTypeReferences(UMLObject *item, const QString &quid, const QString &type)
Definition: petaltree2uml.cpp:204
UMLWidget::setFillColorCmd
void setFillColorCmd(const QColor &color)
Definition: umlwidget.cpp:1180
Import_Rose::AttributesReader::insertAtParent
void insertAtParent(const PetalNode *, UMLObject *item)
Definition: petaltree2uml.cpp:279
uDebug
#define uDebug()
Definition: debug_utils.h:122
Import_Rose::ClassifierListReader::m_elementName
const QString m_elementName
Definition: petaltree2uml.cpp:265
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:36
v
std::vector< std::string > v
Definition: cxx11-initializer-lists.h:19
Uml::RoleType::B
@ B
Definition: basictypes.h:257
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:132
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:123
Uml::AssociationType::Generalization
@ Generalization
Definition: basictypes.h:124
import_rose.h
NoteWidget
Displays a note box.
Definition: notewidget.h:30
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
UMLObject::ot_Component
@ ot_Component
Definition: umlobject.h:96
UMLDoc
Definition: umldoc.h:74
Import_Rose::RealizationsReader::setTypeReferences
void setTypeReferences(UMLObject *item, const QString &quid, const QString &type)
Definition: petaltree2uml.cpp:377
Import_Rose::quid
Uml::ID::Type quid(const PetalNode *node)
Definition: petaltree2uml.cpp:81
UMLAttribute
Sets up attribute information.
Definition: attribute.h:27
UMLWidget::setLineColorCmd
virtual void setLineColorCmd(const QColor &color)
Definition: umlwidget.cpp:1128
Import_Rose::ClassifierListReader::~ClassifierListReader
virtual ~ClassifierListReader()
destructor
Definition: petaltree2uml.cpp:196
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:34
Import_Rose::Rose2Qt
const qreal Rose2Qt
Definition: petaltree2uml.cpp:62
Import_Rose::loadFromMDL
UMLPackage * loadFromMDL(QFile &file, UMLPackage *parentPkg)
Definition: import_rose.cpp:405
Import_Rose::SuperclassesReader
Definition: petaltree2uml.cpp:327
UniqueID::gen
Uml::ID::Type gen()
Definition: uniqueid.cpp:34
Import_Rose::OperationsReader::m_classifier
UMLClassifier * m_classifier
Definition: petaltree2uml.cpp:324
associationwidget.h
Uml::Visibility::Enum
Enum
Definition: basictypes.h:76
UMLObject::setDoc
void setDoc(const QString &d)
Definition: umlobject.cpp:455
Uml::DiagramType::Class
@ Class
Definition: basictypes.h:98
PetalNode::attributes
NameValueList attributes() const
Definition: petalnode.cpp:117
UMLPackage::addObject
bool addObject(UMLObject *pObject)
Definition: package.cpp:128
classifier.h
uError
#define uError()
Definition: debug_utils.h:123
UMLOperation
Definition: operation.h:24
Import_Rose::OperationsReader
Definition: petaltree2uml.cpp:306
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:317
NoteWidget::Normal
@ Normal
Definition: notewidget.h:38
UMLObject::setUMLPackage
bool setUMLPackage(UMLPackage *pPkg)
Definition: umlobject.cpp:615
UMLObject::ot_UseCase
@ ot_UseCase
Definition: umlobject.h:84
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:39
debug_utils.h
UMLAssociation
Sets up association information.
Definition: association.h:32
Import_Rose::SuperclassesReader::setTypeReferences
void setTypeReferences(UMLObject *item, const QString &quid, const QString &type)
Definition: petaltree2uml.cpp:342
UMLScene::widgetOnDiagram
UMLWidget * widgetOnDiagram(Uml::ID::Type id)
Definition: umlscene.cpp:1139
usecase.h
Import_Rose::SuperclassesReader::createListItem
UMLObject * createListItem()
Definition: petaltree2uml.cpp:335
Import_Rose::ClassifierListReader::read
void read(const PetalNode *node, const QString &name)
Definition: petaltree2uml.cpp:234
actor.h
PetalNode::StringOrNode::string
QString string
Definition: petalnode.h:65
Import_Rose::ParametersReader::insertAtParent
void insertAtParent(const PetalNode *, UMLObject *item)
Definition: petaltree2uml.cpp:297
PetalNode::StringOrNode::node
PetalNode * node
Definition: petalnode.h:66
Import_Rose::ParametersReader::ParametersReader
ParametersReader(UMLOperation *op)
Definition: petaltree2uml.cpp:289
Uml::AssociationType::Composition
@ Composition
Definition: basictypes.h:134
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:407
Uml::DiagramType::Undefined
@ Undefined
Definition: basictypes.h:97
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1324
Import_Rose::ClassifierListReader::m_attributeTag
const QString m_attributeTag
Definition: petaltree2uml.cpp:265
petaltree2uml.h
Import_Rose::AttributesReader::~AttributesReader
virtual ~AttributesReader()
Definition: petaltree2uml.cpp:275
Import_Rose::OperationsReader::OperationsReader
OperationsReader(UMLClassifier *c)
Definition: petaltree2uml.cpp:309
Import_Rose::SuperclassesReader::SuperclassesReader
SuperclassesReader(UMLClassifier *c)
Definition: petaltree2uml.cpp:330
package.h
Uml::AssociationType::Dependency
@ Dependency
Definition: basictypes.h:126
UMLObject::ot_Folder
@ ot_Folder
Definition: umlobject.h:103
Uml::DiagramType::Deployment
@ Deployment
Definition: basictypes.h:105
Model_Utils::rootPackage
UMLPackage * rootPackage(UMLObject *obj)
Definition: model_utils.cpp:381
UMLDoc::rootFolderType
Uml::ModelType::Enum rootFolderType(UMLObject *obj)
Definition: umldoc.cpp:3209
Import_Rose::SuperclassesReader::insertAtParent
void insertAtParent(const PetalNode *, UMLObject *item)
Definition: petaltree2uml.cpp:352
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1055
Uml::AssociationType::Realization
@ Realization
Definition: basictypes.h:135
Uml::Visibility::fromString
Enum fromString(const QString &item, bool checkUnkown)
Definition: basictypes.cpp:144
umldoc.h
UMLObject::setSecondaryFallback
void setSecondaryFallback(const QString &id)
Definition: umlobject.cpp:706
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:276
Import_Rose::quidu
QString quidu(const PetalNode *node)
Definition: petaltree2uml.cpp:93
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:551
Import_Rose::umbrellify
bool umbrellify(PetalNode *node, UMLPackage *parentPkg)
Definition: petaltree2uml.cpp:570
UMLPackage
Non-graphical information for a Package.
Definition: package.h:32