umbrello: umbrello/model_utils.h Source File

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

model_utils.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) 2004-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef MODEL_UTILS_H
12 #define MODEL_UTILS_H
13
14 #include "basictypes.h"
15 #include "umllistviewitem.h"
16 #include "umlobjectlist.h"
17 #include "umlviewlist.h"
18 #include "foreignkeyconstraint.h"
19 #include "icon_utils.h"
20 #include "multipagedialogbase.h"
21 #include "widgetbase.h"
22
23 #include <QLinkedList>
24 #include <QString>
25
26 // forward declarations
27 class UMLClassifier;
28 class UMLPackage;
29 class UMLEntity;
30
36 namespace Model_Utils {
37
38 bool isCloneable(WidgetBase::WidgetType type);
39
40 UMLObject* findObjectInList(Uml::ID::Type id, const UMLObjectList& inList);
41
42 UMLObject* findUMLObject(const UMLObjectList& inList,
43 const QString& name,
44 UMLObject::ObjectType type = UMLObject::ot_UMLObject,
45 UMLObject *currentObj = 0);
46
47 UMLObject* findUMLObjectRaw(const UMLObjectList& inList,
48 const QString& name,
49 UMLObject::ObjectType type = UMLObject::ot_UMLObject,
50 UMLObject *currentObj = 0);
51
52 UMLObject* findUMLObjectRecursive(const UMLObjectList& inList,
53 const QString& name,
54 UMLObject::ObjectType type = UMLObject::ot_UMLObject);
55
56 UMLPackage* rootPackage(UMLObject* obj);
57
58 void treeViewAddViews(const UMLViewList& viewList);
59 void treeViewChangeIcon(UMLObject* object, Icon_Utils::IconType to);
60 void treeViewSetCurrentItem(UMLObject* object);
61 void treeViewMoveObjectTo(UMLObject* container, UMLObject* object);
62 UMLObject* treeViewGetCurrentObject();
63 UMLPackage* treeViewGetPackageFromCurrent();
64 QString treeViewBuildDiagramName(Uml::ID::Type id);
65
66 QString uniqObjectName(UMLObject::ObjectType type,
67 UMLPackage *parentPkg,
68 QString prefix = QString());
69 QString newTitle(UMLObject::ObjectType type);
70 QString newText(UMLObject::ObjectType type);
71 QString renameTitle(UMLObject::ObjectType type);
72 QString renameText(UMLObject::ObjectType type);
73
74 QString getXmiId(QDomElement element);
75 bool isCommonXMI1Attribute(const QString &tag);
76 bool isCommonDataType(QString type);
77 bool isClassifierListitem(UMLObject::ObjectType ot);
78
79 bool typeIsCanvasWidget(UMLListViewItem::ListViewType type);
80 bool typeIsRootView(UMLListViewItem::ListViewType type);
81 bool typeIsFolder(UMLListViewItem::ListViewType type);
82 bool typeIsContainer(UMLListViewItem::ListViewType type);
83 bool typeIsDiagram(UMLListViewItem::ListViewType type);
84 bool typeIsClassifierList(UMLListViewItem::ListViewType type);
85 bool typeIsClassifier(UMLListViewItem::ListViewType type);
86 bool typeIsProperties(UMLListViewItem::ListViewType type);
87 bool typeIsAllowedInType(UMLListViewItem::ListViewType childType,
88 UMLListViewItem::ListViewType parentType);
89 bool typeIsAllowedInDiagram(UMLObject *o, UMLScene *scene);
90 bool typeIsAllowedInDiagram(UMLWidget *w, UMLScene *scene);
91 bool hasAssociations(UMLObject::ObjectType type);
92
93 Uml::ModelType::Enum convert_DT_MT(Uml::DiagramType::Enum dt);
94 UMLListViewItem::ListViewType convert_MT_LVT(Uml::ModelType::Enum mt);
95 Uml::ModelType::Enum convert_LVT_MT(UMLListViewItem::ListViewType lvt);
96 UMLListViewItem::ListViewType convert_DT_LVT(Uml::DiagramType::Enum dt);
97 UMLObject::ObjectType convert_LVT_OT(UMLListViewItem::ListViewType lvt);
98 UMLListViewItem::ListViewType convert_OT_LVT(UMLObject *o);
99 Icon_Utils::IconType convert_LVT_IT(UMLListViewItem::ListViewType lvt, UMLObject *o=0);
100 Uml::DiagramType::Enum convert_LVT_DT(UMLListViewItem::ListViewType lvt);
101 MultiPageDialogBase::PageType convert_LVT_PT(UMLListViewItem::ListViewType type);
102 Uml::ModelType::Enum convert_OT_MT(UMLObject::ObjectType ot);
103
104 Uml::ModelType::Enum guessContainer(UMLObject *o); // deprecated !
105
106 int stringToDirection(QString input, Uml::ParameterDirection::Enum & result);
107
108 enum Parse_Status {
109 PS_OK, PS_Empty, PS_Malformed_Arg, PS_Unknown_ArgType,
110 PS_Illegal_MethodName, PS_Unknown_ReturnType, PS_Unspecified_Error
111 };
112
113 struct NameAndType {
114 QString m_name;
115 UMLObject *m_type;
116 Uml::ParameterDirection::Enum m_direction;
117 QString m_initialValue;
118 NameAndType() : m_type(0), m_direction(Uml::ParameterDirection::In) {}
119 NameAndType(QString name, UMLObject *type,
120 Uml::ParameterDirection::Enum direction = Uml::ParameterDirection::In,
121 QString initialValue = QString())
122 : m_name(name), m_type(type),
123 m_direction(direction), m_initialValue(initialValue) {}
124 };
125
126 typedef QLinkedList<NameAndType> NameAndType_List;
127 typedef QLinkedList<NameAndType>::iterator NameAndType_ListIt;
128
129 struct OpDescriptor {
130 QString m_name;
131 NameAndType_List m_args;
132 UMLObject *m_pReturnType;
133 };
134
135 Parse_Status parseTemplate(QString t, NameAndType& nmTp, UMLClassifier *owningScope);
136 Parse_Status parseAttribute(QString a, NameAndType& nmTp, UMLClassifier *owningScope,
137 Uml::Visibility::Enum *vis = 0);
138 Parse_Status parseOperation(QString m, OpDescriptor& desc, UMLClassifier *owningScope);
139 Parse_Status parseConstraint(QString m, QString& name, UMLEntity* owningScope);
140
141 QString psText(Parse_Status value);
142
143 QString updateDeleteActionToString(UMLForeignKeyConstraint::UpdateDeleteAction uda);
144
145 }
146
147 #endif
UMLForeignKeyConstraint::UpdateDeleteAction
UpdateDeleteAction
Definition: foreignkeyconstraint.h:42
Model_Utils::convert_LVT_DT
Uml::DiagramType::Enum convert_LVT_DT(UMLListViewItem::ListViewType lvt)
Definition: model_utils.cpp:2020
UMLObject::id
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:425
umlrole.h
UMLEntity
Non-graphical Information for an Entity.
Definition: entity.h:35
Model_Utils::typeIsDiagram
bool typeIsDiagram(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1393
Icon_Utils::it_Properties_Class
@ it_Properties_Class
Definition: icon_utils.h:79
UMLListViewItem::lvt_UseCase_Folder
@ lvt_UseCase_Folder
Definition: umllistviewitem.h:51
Uml::DiagramType::UseCase
@ UseCase
Definition: basictypes.h:82
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1308
Uml::ModelType::Enum
Enum
Definition: basictypes.h:41
template.h
UMLListViewItem::lvt_CheckConstraint
@ lvt_CheckConstraint
Definition: umllistviewitem.h:90
UMLListViewItem::lvt_Logical_View
@ lvt_Logical_View
Definition: umllistviewitem.h:48
umlpackagelist.h
Uml::ProgrammingLanguage::scopeSeparator
QString scopeSeparator(Enum item)
Definition: basictypes.cpp:1110
Icon_Utils::it_Properties_UserInterface
@ it_Properties_UserInterface
Definition: icon_utils.h:78
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
Uml::DiagramType::Component
@ Component
Definition: basictypes.h:87
UMLObject::ot_EntityConstraint
@ ot_EntityConstraint
Definition: umlobject.h:104
UMLListViewItem::lvt_Enum
@ lvt_Enum
Definition: umllistviewitem.h:78
Model_Utils::convert_LVT_IT
Icon_Utils::IconType convert_LVT_IT(UMLListViewItem::ListViewType lvt, UMLObject *o)
Definition: model_utils.cpp:1842
Icon_Utils::it_Folder_Violet
@ it_Folder_Violet
Definition: icon_utils.h:60
Icon_Utils::it_Properties_CodeImport
@ it_Properties_CodeImport
Definition: icon_utils.h:80
Icon_Utils::it_Folder_Cyan
@ it_Folder_Cyan
Definition: icon_utils.h:52
Model_Utils::Parse_Status
Parse_Status
Definition: model_utils.h:108
Model_Utils::isClassifierListitem
bool isClassifierListitem(UMLObject::ObjectType type)
Definition: model_utils.cpp:808
Uml::Visibility::Implementation
@ Implementation
Definition: basictypes.h:63
Icon_Utils::it_Check_Constraint
@ it_Check_Constraint
Definition: icon_utils.h:123
Icon_Utils::it_Folder_Grey
@ it_Folder_Grey
Definition: icon_utils.h:56
UMLObject::ot_CheckConstraint
@ ot_CheckConstraint
Definition: umlobject.h:107
Model_Utils::convert_DT_MT
Uml::ModelType::Enum convert_DT_MT(Uml::DiagramType::Enum dt)
Definition: model_utils.cpp:1414
UMLObject::ot_Port
@ ot_Port
Definition: umlobject.h:109
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
Icon_Utils::it_Properties
@ it_Properties
Definition: icon_utils.h:147
Model_Utils::convert_OT_LVT
UMLListViewItem::ListViewType convert_OT_LVT(UMLObject *o)
Definition: model_utils.cpp:1568
UMLObject::asUMLClassifierListItem
UMLClassifierListItem * asUMLClassifierListItem()
Definition: umlobject.cpp:1309
UMLApp::activeLanguageIsCaseSensitive
bool activeLanguageIsCaseSensitive()
Definition: uml.cpp:2517
umlview.h
Model_Utils::PS_Malformed_Arg
@ PS_Malformed_Arg
Definition: model_utils.h:109
Model_Utils::updateDeleteActionToString
QString updateDeleteActionToString(UMLForeignKeyConstraint::UpdateDeleteAction uda)
Definition: model_utils.cpp:2142
Uml::ParameterDirection::In
@ In
Definition: basictypes.h:257
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
Model_Utils::parseConstraint
Parse_Status parseConstraint(QString m, QString &name, UMLEntity *owningScope)
Definition: model_utils.cpp:1125
MultiPageDialogBase::UserInterfacePage
@ UserInterfacePage
Definition: multipagedialogbase.h:65
WidgetBase::wt_Instance
@ wt_Instance
Definition: widgetbase.h:143
WidgetBase::wt_Package
@ wt_Package
Definition: widgetbase.h:121
UMLObject::ot_Artifact
@ ot_Artifact
Definition: umlobject.h:97
Icon_Utils::it_Diagram_Collaboration
@ it_Diagram_Collaboration
Definition: icon_utils.h:126
UMLObject::ot_Association
@ ot_Association
Definition: umlobject.h:91
entity.h
UMLListView::createDiagramItem
UMLListViewItem * createDiagramItem(UMLView *view)
Definition: umllistview.cpp:1998
UMLListViewItem::ListViewType
ListViewType
Definition: umllistviewitem.h:43
UMLListViewItem::lvt_EntityRelationship_Folder
@ lvt_EntityRelationship_Folder
Definition: umllistviewitem.h:82
Model_Utils::convert_OT_MT
Uml::ModelType::Enum convert_OT_MT(UMLObject::ObjectType ot)
Definition: model_utils.cpp:2106
UMLListViewItem::lvt_EntityRelationship_Diagram
@ lvt_EntityRelationship_Diagram
Definition: umllistviewitem.h:81
UMLListViewItem::lvt_Properties
@ lvt_Properties
Definition: umllistviewitem.h:93
UMLListViewItem::umlObject
UMLObject * umlObject() const
Definition: umllistviewitem.cpp:312
Model_Utils::renameText
QString renameText(UMLObject::ObjectType type)
Definition: model_utils.cpp:706
UMLApp::activeLanguageScopeSeparator
QString activeLanguageScopeSeparator()
Definition: uml.cpp:2526
Model_Utils::typeIsAllowedInDiagram
bool typeIsAllowedInDiagram(UMLObject *o, UMLScene *scene)
Definition: model_utils.cpp:2167
UMLListViewItem::lvt_Collaboration_Diagram
@ lvt_Collaboration_Diagram
Definition: umllistviewitem.h:53
Model_Utils::NameAndType::NameAndType
NameAndType(QString name, UMLObject *type, Uml::ParameterDirection::Enum direction=Uml::ParameterDirection::In, QString initialValue=QString())
Definition: model_utils.h:119
UMLObject::ot_ForeignKeyConstraint
@ ot_ForeignKeyConstraint
Definition: umlobject.h:106
Model_Utils::treeViewGetCurrentObject
UMLObject * treeViewGetCurrentObject()
Definition: model_utils.cpp:450
UMLListViewItem
Items used by UMLListView.
Definition: umllistviewitem.h:40
multipagedialogbase.h
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
operation.h
UMLObject::ot_Entity
@ ot_Entity
Definition: umlobject.h:101
foreignkeyconstraint.h
Model_Utils::OpDescriptor
Definition: model_utils.h:129
UMLListViewItem::lvt_Datatype
@ lvt_Datatype
Definition: umllistviewitem.h:76
Uml::DiagramType::State
@ State
Definition: basictypes.h:85
UMLListViewItem::lvt_Subsystem
@ lvt_Subsystem
Definition: umllistviewitem.h:84
UMLListViewItem::lvt_Attribute
@ lvt_Attribute
Definition: umllistviewitem.h:61
UMLListViewItem::type
ListViewType type() const
Definition: umllistviewitem.cpp:234
Model_Utils::NameAndType::m_initialValue
QString m_initialValue
Definition: model_utils.h:117
FloatingTextWidget::textRole
Uml::TextRole::Enum textRole() const
Definition: floatingtextwidget.cpp:344
Uml::RoleType::A
@ A
Definition: basictypes.h:239
UMLListViewItem::lvt_Actor
@ lvt_Actor
Definition: umllistviewitem.h:58
Uml::ModelType::Logical
@ Logical
Definition: basictypes.h:42
UMLListViewItem::lvt_EntityRelationship_Model
@ lvt_EntityRelationship_Model
Definition: umllistviewitem.h:83
Model_Utils::findUMLObject
UMLObject * findUMLObject(const UMLObjectList &inList, const QString &inName, UMLObject::ObjectType type, UMLObject *currentObj)
Definition: model_utils.cpp:152
UMLObject::ot_Attribute
@ ot_Attribute
Definition: umlobject.h:92
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
Icon_Utils::it_ClassOrPackage
@ it_ClassOrPackage
Definition: icon_utils.h:237
Icon_Utils::it_Diagram_Activity
@ it_Diagram_Activity
Definition: icon_utils.h:124
Uml::DiagramType::Collaboration
@ Collaboration
Definition: basictypes.h:84
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
MultiPageDialogBase::FontPage
@ FontPage
Definition: multipagedialogbase.h:63
UMLListViewItem::lvt_UseCase_Diagram
@ lvt_UseCase_Diagram
Definition: umllistviewitem.h:52
Model_Utils::NameAndType::m_type
UMLObject * m_type
Definition: model_utils.h:115
WidgetBase::wt_Artifact
@ wt_Artifact
Definition: widgetbase.h:130
Icon_Utils::it_Diagram_State
@ it_Diagram_State
Definition: icon_utils.h:131
UMLListViewItem::lvt_Properties_CodeGeneration
@ lvt_Properties_CodeGeneration
Definition: umllistviewitem.h:96
UMLForeignKeyConstraint::uda_SetDefault
@ uda_SetDefault
Definition: foreignkeyconstraint.h:46
Model_Utils::typeIsAllowedInType
bool typeIsAllowedInType(UMLListViewItem::ListViewType childType, UMLListViewItem::ListViewType parentType)
Definition: model_utils.cpp:1306
Model_Utils::convert_MT_LVT
UMLListViewItem::ListViewType convert_MT_LVT(Uml::ModelType::Enum mt)
Definition: model_utils.cpp:1449
association.h
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:670
Icon_Utils::it_Folder_Green
@ it_Folder_Green
Definition: icon_utils.h:54
UMLListViewItem::lvt_Deployment_View
@ lvt_Deployment_View
Definition: umllistviewitem.h:74
Icon_Utils::it_Diagram_Object
@ it_Diagram_Object
Definition: icon_utils.h:133
UMLObject::umlPackage
UMLPackage * umlPackage() const
Definition: umlobject.cpp:645
UMLListViewItem::lvt_Activity_Diagram
@ lvt_Activity_Diagram
Definition: umllistviewitem.h:56
UMLListViewItem::lvt_Sequence_Diagram
@ lvt_Sequence_Diagram
Definition: umllistviewitem.h:57
Uml::ParameterDirection::Enum
Enum
Definition: basictypes.h:256
Model_Utils::hasAssociations
bool hasAssociations(UMLObject::ObjectType type)
Definition: model_utils.cpp:2295
Icon_Utils::it_Diagram_Class
@ it_Diagram_Class
Definition: icon_utils.h:125
UMLObject::ot_Actor
@ ot_Actor
Definition: umlobject.h:83
UMLObject::asUMLAssociation
UMLAssociation * asUMLAssociation()
Definition: umlobject.cpp:1303
Model_Utils::getXmiId
QString getXmiId(QDomElement element)
Definition: model_utils.cpp:747
UMLPackage::containedObjects
UMLObjectList & containedObjects()
Definition: package.cpp:228
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:85
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
Model_Utils::typeIsContainer
bool typeIsContainer(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1232
Icon_Utils::it_Properties_CodeGeneration
@ it_Properties_CodeGeneration
Definition: icon_utils.h:81
Icon_Utils::it_Port
@ it_Port
Definition: icon_utils.h:93
WidgetBase::wt_UseCase
@ wt_UseCase
Definition: widgetbase.h:115
Icon_Utils::it_Class
@ it_Class
Definition: icon_utils.h:85
Model_Utils::PS_Unspecified_Error
@ PS_Unspecified_Error
Definition: model_utils.h:110
Icon_Utils::it_Diagram_EntityRelationship
@ it_Diagram_EntityRelationship
Definition: icon_utils.h:129
UMLListViewItem::lvt_Component_Folder
@ lvt_Component_Folder
Definition: umllistviewitem.h:67
UMLListViewItem::lvt_Class
@ lvt_Class
Definition: umllistviewitem.h:60
Icon_Utils::it_Folder_Orange
@ it_Folder_Orange
Definition: icon_utils.h:62
UMLListViewItem::lvt_Deployment_Folder
@ lvt_Deployment_Folder
Definition: umllistviewitem.h:73
Icon_Utils::it_Private_Attribute
@ it_Private_Attribute
Definition: icon_utils.h:117
UMLObject::ot_UMLObject
@ ot_UMLObject
Definition: umlobject.h:82
Icon_Utils::it_Enum
@ it_Enum
Definition: icon_utils.h:100
model_utils.h
UMLListViewItem::lvt_ForeignKeyConstraint
@ lvt_ForeignKeyConstraint
Definition: umllistviewitem.h:89
MultiPageDialogBase::CodeImportPage
@ CodeImportPage
Definition: multipagedialogbase.h:60
UMLListViewItem::lvt_InstanteAttribute
@ lvt_InstanteAttribute
Definition: umllistviewitem.h:105
Uml::DiagramType::EntityRelationship
@ EntityRelationship
Definition: basictypes.h:89
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
Uml::RoleType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:811
Model_Utils::findUMLObjectRecursive
UMLObject * findUMLObjectRecursive(const UMLObjectList &inList, const QString &name, UMLObject::ObjectType type)
Definition: model_utils.cpp:360
UMLObject::isAbstract
bool isAbstract() const
Definition: umlobject.cpp:348
UMLListViewItem::lvt_EntityAttribute
@ lvt_EntityAttribute
Definition: umllistviewitem.h:80
Icon_Utils::it_Node
@ it_Node
Definition: icon_utils.h:94
Model_Utils::NameAndType_List
QLinkedList< NameAndType > NameAndType_List
Auxiliary type for OpDescriptor.
Definition: model_utils.h:126
WidgetBase::wt_Component
@ wt_Component
Definition: widgetbase.h:129
UMLRole
Definition: umlrole.h:25
UMLObject::ot_InstanceAttribute
@ ot_InstanceAttribute
Definition: umlobject.h:110
Icon_Utils::it_Datatype
@ it_Datatype
Definition: icon_utils.h:99
UMLListViewItem::lvt_Component_Diagram
@ lvt_Component_Diagram
Definition: umllistviewitem.h:66
Icon_Utils::it_Properties_CodeViewer
@ it_Properties_CodeViewer
Definition: icon_utils.h:82
UMLDoc::isUnique
bool isUnique(const QString &name)
Definition: umldoc.cpp:1232
UMLAssociation::getObject
UMLObject * getObject(Uml::RoleType::Enum role) const
Definition: association.cpp:496
UMLListViewItem::lvt_Properties_CodeImport
@ lvt_Properties_CodeImport
Definition: umllistviewitem.h:97
UMLObject::baseType
ObjectType baseType() const
Definition: umlobject.cpp:397
Model_Utils::NameAndType::NameAndType
NameAndType()
Definition: model_utils.h:118
Uml::ParameterDirection::InOut
@ InOut
Definition: basictypes.h:258
WidgetBase::wt_Note
@ wt_Note
Definition: widgetbase.h:123
Uml::TextRole::Floating
@ Floating
Definition: basictypes.h:179
Icon_Utils::it_Properties_AutoLayout
@ it_Properties_AutoLayout
Definition: icon_utils.h:235
Uml::ModelType::Deployment
@ Deployment
Definition: basictypes.h:45
UMLObject::asUMLFolder
UMLFolder * asUMLFolder()
Definition: umlobject.cpp:1317
UMLAssociation::getUMLRole
UMLRole * getUMLRole(Uml::RoleType::Enum role) const
Definition: association.cpp:585
UMLObject::ot_EnumLiteral
@ ot_EnumLiteral
Definition: umlobject.h:94
floatingtextwidget.h
UMLListView::rootView
UMLListViewItem * rootView(UMLListViewItem::ListViewType type)
Definition: umllistview.cpp:2684
UMLObject::asUMLEntity
UMLEntity * asUMLEntity()
Definition: umlobject.cpp:1312
Icon_Utils::it_Artifact
@ it_Artifact
Definition: icon_utils.h:95
Model_Utils::isCloneable
bool isCloneable(WidgetBase::WidgetType type)
Definition: model_utils.cpp:53
MultiPageDialogBase::CodeViewerPage
@ CodeViewerPage
Definition: multipagedialogbase.h:62
UMLListViewItem::lvt_Properties_CodeViewer
@ lvt_Properties_CodeViewer
Definition: umllistviewitem.h:98
WidgetBase::wt_Actor
@ wt_Actor
Definition: widgetbase.h:114
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
Model_Utils
Definition: model_utils.cpp:45
Icon_Utils::it_Entity
@ it_Entity
Definition: icon_utils.h:101
Icon_Utils::it_Home
@ it_Home
Definition: icon_utils.h:48
Model_Utils::typeIsRootView
bool typeIsRootView(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1160
UMLListView::findItem
UMLListViewItem * findItem(Uml::ID::Type id)
Definition: umllistview.cpp:1404
UMLObject::ot_Stereotype
@ ot_Stereotype
Definition: umlobject.h:99
Model_Utils::treeViewAddViews
void treeViewAddViews(const UMLViewList &viewList)
Definition: model_utils.cpp:399
Icon_Utils::it_Diagram_Sequence
@ it_Diagram_Sequence
Definition: icon_utils.h:130
Model_Utils::parseOperation
Parse_Status parseOperation(QString m, OpDescriptor &desc, UMLClassifier *owningScope)
Definition: model_utils.cpp:1055
UMLView
Definition: umlview.h:35
Model_Utils::convert_LVT_OT
UMLObject::ObjectType convert_LVT_OT(UMLListViewItem::ListViewType lvt)
Definition: model_utils.cpp:1726
Uml::ModelType::EntityRelationship
@ EntityRelationship
Definition: basictypes.h:46
UMLListViewItem::lvt_Object_Diagram
@ lvt_Object_Diagram
Definition: umllistviewitem.h:103
UMLListViewItem::lvt_View
@ lvt_View
Definition: umllistviewitem.h:47
umlviewlist.h
WidgetBase::wt_Port
@ wt_Port
Definition: widgetbase.h:142
attribute.h
UMLObject::ot_Role
@ ot_Role
Definition: umlobject.h:100
UMLClassifier::findChildObjectById
virtual UMLObject * findChildObjectById(Uml::ID::Type id, bool considerAncestors=false)
Definition: classifier.cpp:546
Model_Utils::uniqObjectName
QString uniqObjectName(UMLObject::ObjectType type, UMLPackage *parentPkg, QString prefix)
Definition: model_utils.cpp:526
Icon_Utils::it_Template
@ it_Template
Definition: icon_utils.h:87
UMLListViewItem::lvt_PrimaryKeyConstraint
@ lvt_PrimaryKeyConstraint
Definition: umllistviewitem.h:88
UMLApp::listView
UMLListView * listView() const
Definition: uml.cpp:1065
a
QString a
Definition: petalnode.cpp:18
UMLListViewItem::lvt_Properties_Font
@ lvt_Properties_Font
Definition: umllistviewitem.h:99
Icon_Utils::it_UseCase
@ it_UseCase
Definition: icon_utils.h:103
uWarning
#define uWarning()
Definition: debug_utils.h:124
UMLScene::type
Uml::DiagramType::Enum type() const
Definition: umlscene.cpp:426
Uml::ModelType::Component
@ Component
Definition: basictypes.h:44
UMLListViewItem::lvt_Unknown
@ lvt_Unknown
Definition: umllistviewitem.h:108
UMLListViewItem::lvt_Instance
@ lvt_Instance
Definition: umllistviewitem.h:104
UMLPackage::findObjectById
UMLObject * findObjectById(Uml::ID::Type id)
Definition: package.cpp:261
Model_Utils::isCommonDataType
bool isCommonDataType(QString type)
Definition: model_utils.cpp:786
UMLApp::generator
CodeGenerator * generator() const
Definition: uml.cpp:2337
Model_Utils::parseAttribute
Parse_Status parseAttribute(QString a, NameAndType &nmTp, UMLClassifier *owningScope, Uml::Visibility::Enum *vis)
Definition: model_utils.cpp:980
Model_Utils::findObjectInList
UMLObject * findObjectInList(Uml::ID::Type id, const UMLObjectList &inList)
Definition: model_utils.cpp:84
UMLObjectListIt
QListIterator< QPointer< UMLObject > > UMLObjectListIt
Definition: umlobjectlist.h:19
folder.h
UMLObject::ot_Node
@ ot_Node
Definition: umlobject.h:98
i18n
#define i18n
Definition: main.cpp:39
UMLListViewItem::lvt_Properties_General
@ lvt_Properties_General
Definition: umllistviewitem.h:100
UMLListViewItem::lvt_Deployment_Diagram
@ lvt_Deployment_Diagram
Definition: umllistviewitem.h:72
UMLObject::ot_SubSystem
@ ot_SubSystem
no real object type
Definition: umlobject.h:111
WidgetBase::wt_Class
@ wt_Class
Definition: widgetbase.h:116
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
Model_Utils::isCommonXMI1Attribute
bool isCommonXMI1Attribute(const QString &tag)
Definition: model_utils.cpp:761
MultiPageDialogBase::ClassPage
@ ClassPage
Definition: multipagedialogbase.h:59
Model_Utils::treeViewSetCurrentItem
void treeViewSetCurrentItem(UMLObject *object)
Definition: model_utils.cpp:425
Model_Utils::OpDescriptor::m_name
QString m_name
< Data structure filled by parseOperation().
Definition: model_utils.h:130
UMLListViewItem::lvt_Interface
@ lvt_Interface
Definition: umllistviewitem.h:64
WidgetBase::wt_Text
@ wt_Text
Definition: widgetbase.h:126
UMLObject::ot_EntityAttribute
@ ot_EntityAttribute
Definition: umlobject.h:102
Model_Utils::NameAndType_ListIt
QLinkedList< NameAndType >::iterator NameAndType_ListIt
Auxiliary type for OpDescriptor.
Definition: model_utils.h:127
Model_Utils::convert_LVT_MT
Uml::ModelType::Enum convert_LVT_MT(UMLListViewItem::ListViewType lvt)
Definition: model_utils.cpp:1479
basictypes.h
Icon_Utils::it_Association
@ it_Association
Definition: icon_utils.h:105
Model_Utils::treeViewChangeIcon
void treeViewChangeIcon(UMLObject *object, Icon_Utils::IconType to)
Definition: model_utils.cpp:415
uDebug
#define uDebug()
Definition: debug_utils.h:122
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:37
UMLListViewItem::lvt_Artifact
@ lvt_Artifact
Definition: umllistviewitem.h:71
UMLListViewItem::lvt_UniqueConstraint
@ lvt_UniqueConstraint
Definition: umllistviewitem.h:87
v
std::vector< std::string > v
Definition: cxx11-initializer-lists.h:19
Uml::RoleType::B
@ B
Definition: basictypes.h:240
Uml::ParameterDirection::Out
@ Out
Definition: basictypes.h:259
Model_Utils::typeIsCanvasWidget
bool typeIsCanvasWidget(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1180
Model_Utils::PS_Unknown_ReturnType
@ PS_Unknown_ReturnType
Definition: model_utils.h:110
UMLObject::toString
static QString toString(ObjectType ot)
Definition: umlobject.cpp:1124
UMLObject::ot_UniqueConstraint
@ ot_UniqueConstraint
Definition: umlobject.h:105
Icon_Utils::it_PrimaryKey_Constraint
@ it_PrimaryKey_Constraint
Definition: icon_utils.h:121
Model_Utils::renameTitle
QString renameTitle(UMLObject::ObjectType type)
Definition: model_utils.cpp:663
Icon_Utils::it_Category
@ it_Category
Definition: icon_utils.h:221
Icon_Utils::it_ForeignKey_Constraint
@ it_ForeignKey_Constraint
Definition: icon_utils.h:122
umllistview.h
UMLObject::ot_Instance
@ ot_Instance
Definition: umlobject.h:90
UMLListViewItem::lvt_Entity
@ lvt_Entity
Definition: umllistviewitem.h:79
UMLListViewItem::lvt_Template
@ lvt_Template
Definition: umllistviewitem.h:63
WidgetBase::asFloatingTextWidget
FloatingTextWidget * asFloatingTextWidget()
Definition: widgetbase.cpp:1493
Model_Utils::newTitle
QString newTitle(UMLObject::ObjectType type)
Definition: model_utils.cpp:577
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
UMLObject::ot_Component
@ ot_Component
Definition: umlobject.h:96
UMLDoc
Definition: umldoc.h:75
Model_Utils::NameAndType
Definition: model_utils.h:113
UMLListViewItem::lvt_Properties_UserInterface
@ lvt_Properties_UserInterface
Definition: umllistviewitem.h:101
Icon_Utils::it_Diagram_Usecase
@ it_Diagram_Usecase
Definition: icon_utils.h:132
UMLListViewItem::lvt_Component
@ lvt_Component
Definition: umllistviewitem.h:69
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:35
UMLForeignKeyConstraint::uda_SetNull
@ uda_SetNull
Definition: foreignkeyconstraint.h:45
Model_Utils::PS_Empty
@ PS_Empty
Definition: model_utils.h:109
Uml
Definition: basictypes.cpp:37
UMLPackageList
QList< UMLPackage * > UMLPackageList
Definition: umlpackagelist.h:17
Uml::DiagramType::Sequence
@ Sequence
Definition: basictypes.h:83
Icon_Utils::it_Properties_General
@ it_Properties_General
Definition: icon_utils.h:64
Model_Utils::findUMLObjectRaw
UMLObject * findUMLObjectRaw(const UMLObjectList &inList, const QString &name, UMLObject::ObjectType type, UMLObject *currentObj)
Definition: model_utils.cpp:334
UMLListViewItem::lvt_Datatype_Folder
@ lvt_Datatype_Folder
Definition: umllistviewitem.h:77
UniqueID::gen
Uml::ID::Type gen()
Definition: uniqueid.cpp:26
UMLDoc::tagEq
static bool tagEq(const QString &tag, const QString &pattern)
Definition: umldoc.cpp:3550
Icon_Utils::it_Unique_Constraint
@ it_Unique_Constraint
Definition: icon_utils.h:120
umllistviewitem.h
Model_Utils::treeViewMoveObjectTo
void treeViewMoveObjectTo(UMLObject *container, UMLObject *object)
Definition: model_utils.cpp:437
Uml::Visibility::Enum
Enum
Definition: basictypes.h:59
Icon_Utils::it_Component
@ it_Component
Definition: icon_utils.h:92
Uml::ModelType::N_MODELTYPES
@ N_MODELTYPES
Definition: basictypes.h:47
MultiPageDialogBase::AutoLayoutPage
@ AutoLayoutPage
Definition: multipagedialogbase.h:58
Uml::DiagramType::Class
@ Class
Definition: basictypes.h:81
UMLListViewItem::lvt_Component_View
@ lvt_Component_View
Definition: umllistviewitem.h:68
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1065
Icon_Utils::it_Actor
@ it_Actor
Definition: icon_utils.h:102
widgetbase.h
UMLListViewItem::lvt_Category
@ lvt_Category
Definition: umllistviewitem.h:91
classifier.h
Model_Utils::convert_DT_LVT
UMLListViewItem::ListViewType convert_DT_LVT(Uml::DiagramType::Enum dt)
Definition: model_utils.cpp:1507
uError
#define uError()
Definition: debug_utils.h:123
UMLObject::asUMLUniqueConstraint
UMLUniqueConstraint * asUMLUniqueConstraint()
Definition: umlobject.cpp:1329
Uml::DiagramType::Object
@ Object
Definition: basictypes.h:90
uniqueconstraint.h
UMLObject::ot_Enum
@ ot_Enum
Definition: umlobject.h:88
Icon_Utils::it_Public_Method
@ it_Public_Method
Definition: icon_utils.h:112
umlscene.h
UMLListViewItem::lvt_Properties_AutoLayout
@ lvt_Properties_AutoLayout
Definition: umllistviewitem.h:94
UMLListViewItem::lvt_UseCase
@ lvt_UseCase
Definition: umllistviewitem.h:59
Icon_Utils::IconType
IconType
Definition: icon_utils.h:47
WidgetBase::wt_Interface
@ wt_Interface
Definition: widgetbase.h:117
UMLListViewItem::lvt_Properties_Class
@ lvt_Properties_Class
Definition: umllistviewitem.h:95
Icon_Utils::it_Subsystem
@ it_Subsystem
Definition: icon_utils.h:91
uml.h
Icon_Utils::it_Interface
@ it_Interface
Definition: icon_utils.h:96
Model_Utils::typeIsProperties
bool typeIsProperties(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1282
Model_Utils::OpDescriptor::m_pReturnType
UMLObject * m_pReturnType
Definition: model_utils.h:132
Model_Utils::stringToDirection
int stringToDirection(QString input, Uml::ParameterDirection::Enum &result)
Definition: model_utils.cpp:911
Icon_Utils::it_Properties_Font
@ it_Properties_Font
Definition: icon_utils.h:75
UMLListView::moveObject
UMLListViewItem * moveObject(Uml::ID::Type srcId, UMLListViewItem::ListViewType srcType, UMLListViewItem *newParent)
Definition: umllistview.cpp:1630
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
Uml::ModelType::UseCase
@ UseCase
Definition: basictypes.h:43
Model_Utils::PS_Unknown_ArgType
@ PS_Unknown_ArgType
Definition: model_utils.h:109
WidgetBase::wt_Entity
@ wt_Entity
Definition: widgetbase.h:120
Model_Utils::psText
QString psText(Parse_Status value)
Definition: model_utils.cpp:1145
icon_utils.h
UMLScene::widgetOnDiagram
UMLWidget * widgetOnDiagram(Uml::ID::Type id)
Definition: umlscene.cpp:1139
Model_Utils::convert_LVT_PT
MultiPageDialogBase::PageType convert_LVT_PT(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:2066
WidgetBase::WidgetType
WidgetType
Definition: widgetbase.h:111
WidgetBase::wt_Datatype
@ wt_Datatype
Definition: widgetbase.h:118
UMLListView::changeIconOf
void changeIconOf(UMLObject *o, Icon_Utils::IconType to)
Definition: umllistview.cpp:1326
UMLScene
Definition: umlscene.h:69
Model_Utils::OpDescriptor::m_args
NameAndType_List m_args
Definition: model_utils.h:131
UMLListViewItem::lvt_Logical_Folder
@ lvt_Logical_Folder
Definition: umllistviewitem.h:50
Model_Utils::newText
QString newText(UMLObject::ObjectType type)
Definition: model_utils.cpp:620
Icon_Utils::it_Package
@ it_Package
Definition: icon_utils.h:90
umlobject.h
Icon_Utils::it_Diagram_Deployment
@ it_Diagram_Deployment
Definition: icon_utils.h:128
UMLListViewItem::lvt_Class_Diagram
@ lvt_Class_Diagram
Definition: umllistviewitem.h:54
Icon_Utils::it_Public_Attribute
@ it_Public_Attribute
Definition: icon_utils.h:116
UMLEntity::isPrimaryKey
bool isPrimaryKey(UMLUniqueConstraint *uConstr) const
Definition: entity.cpp:679
UMLListViewItem::lvt_Package
@ lvt_Package
Definition: umllistviewitem.h:65
UMLObject::ot_Template
@ ot_Template
Definition: umlobject.h:95
UMLListViewItem::lvt_Node
@ lvt_Node
Definition: umllistviewitem.h:75
UMLClassifier::findTemplate
UMLTemplate * findTemplate(const QString &name)
Definition: classifier.cpp:1119
Model_Utils::treeViewGetPackageFromCurrent
UMLPackage * treeViewGetPackageFromCurrent()
Definition: model_utils.cpp:464
Model_Utils::guessContainer
Uml::ModelType::Enum guessContainer(UMLObject *o)
Definition: model_utils.cpp:831
UMLListViewItem::lvt_Operation
@ lvt_Operation
Definition: umllistviewitem.h:62
Uml::DiagramType::Undefined
@ Undefined
Definition: basictypes.h:80
UMLListViewItem::lvt_EnumLiteral
@ lvt_EnumLiteral
Definition: umllistviewitem.h:86
UMLForeignKeyConstraint::uda_Cascade
@ uda_Cascade
Definition: foreignkeyconstraint.h:44
codegenerator.h
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1324
UMLForeignKeyConstraint::uda_NoAction
@ uda_NoAction
Definition: foreignkeyconstraint.h:42
UMLListView
Displays the list view for the program.
Definition: umllistview.h:47
UMLListView::findUMLObject
UMLListViewItem * findUMLObject(const UMLObject *p) const
Definition: umllistview.cpp:1314
uIgnoreZeroPointer
#define uIgnoreZeroPointer(a)
Definition: debug_utils.h:134
Uml::DiagramType::Activity
@ Activity
Definition: basictypes.h:86
Model_Utils::typeIsClassifier
bool typeIsClassifier(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1268
UMLObject::ot_Operation
@ ot_Operation
Definition: umlobject.h:93
CodeGenerator
Definition: codegenerator.h:57
UMLListViewItem::lvt_State_Diagram
@ lvt_State_Diagram
Definition: umllistviewitem.h:55
Uml::Visibility::Private
@ Private
Definition: basictypes.h:61
Model_Utils::parseTemplate
Parse_Status parseTemplate(QString t, NameAndType &nmTp, UMLClassifier *owningScope)
Definition: model_utils.cpp:940
umlobjectlist.h
Model_Utils::NameAndType::m_direction
Uml::ParameterDirection::Enum m_direction
Definition: model_utils.h:116
Model_Utils::PS_OK
@ PS_OK
Return type of parseOperation().
Definition: model_utils.h:109
package.h
Icon_Utils::it_Diagram_Component
@ it_Diagram_Component
Definition: icon_utils.h:127
Uml::Visibility::Protected
@ Protected
Definition: basictypes.h:62
UMLObject::stereotype
QString stereotype(bool includeAdornments=false) const
Definition: umlobject.cpp:558
UMLObject::ot_Folder
@ ot_Folder
Definition: umlobject.h:103
Uml::DiagramType::Deployment
@ Deployment
Definition: basictypes.h:88
UMLViewList
QList< QPointer< UMLView > > UMLViewList
Definition: umlviewlist.h:26
Model_Utils::typeIsFolder
bool typeIsFolder(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1213
Model_Utils::rootPackage
UMLPackage * rootPackage(UMLObject *obj)
Definition: model_utils.cpp:380
UMLObjectList
Definition: umlobjectlist.h:29
Icon_Utils::it_Instance
@ it_Instance
Definition: icon_utils.h:238
UMLListViewItem::lvt_Port
@ lvt_Port
Definition: umllistviewitem.h:92
WidgetBase::baseType
WidgetType baseType() const
Definition: widgetbase.cpp:115
UMLDoc::rootFolderType
Uml::ModelType::Enum rootFolderType(UMLObject *obj)
Definition: umldoc.cpp:3211
MultiPageDialogBase::GeneralPage
@ GeneralPage
Definition: multipagedialogbase.h:64
Model_Utils::treeViewBuildDiagramName
QString treeViewBuildDiagramName(Uml::ID::Type id)
Definition: model_utils.cpp:490
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1055
WidgetBase::wt_Enum
@ wt_Enum
Definition: widgetbase.h:119
Model_Utils::NameAndType::m_name
QString m_name
< Data structure filled by parseAttribute().
Definition: model_utils.h:114
WidgetBase::wt_Node
@ wt_Node
Definition: widgetbase.h:131
umldoc.h
Model_Utils::typeIsClassifierList
bool typeIsClassifierList(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1246
Model_Utils::PS_Illegal_MethodName
@ PS_Illegal_MethodName
Definition: model_utils.h:110
MultiPageDialogBase::CodeGenerationPage
@ CodeGenerationPage
Definition: multipagedialogbase.h:61
UMLForeignKeyConstraint::uda_Restrict
@ uda_Restrict
Definition: foreignkeyconstraint.h:43
UMLUniqueConstraint
Sets up Unique entity constraint information.
Definition: uniqueconstraint.h:29
UMLListViewItem::lvt_Association
@ lvt_Association
Definition: umllistviewitem.h:102
Icon_Utils::it_Folder_Red
@ it_Folder_Red
Definition: icon_utils.h:58
UMLListViewItem::lvt_UseCase_View
@ lvt_UseCase_View
Definition: umllistviewitem.h:49
Import_Rose::diagramType
Uml::DiagramType::Enum diagramType(QString objType)
Definition: petaltree2uml.cpp:543
UMLObject::ot_Category
@ ot_Category
Definition: umlobject.h:108
MultiPageDialogBase::PageType
PageType
Available page types.
Definition: multipagedialogbase.h:57
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
enum.h