umbrello/umbrello
model_utils.cpp
Go to the documentation of this file.
bool isClassifierListitem(UMLObject::ObjectType type)
Return true if the given object type is a classifier list item type.
Definition: model_utils.cpp:550
Uml::ModelType::Enum rootFolderType(UMLObject *obj)
Return the corresponding Model_Type if the given object is one of the root folders.
Definition: umldoc.cpp:2691
bool typeIsClassifierList(UMLListViewItem::ListViewType type)
Return true if the listview type is an attribute, operation, or template.
Definition: model_utils.cpp:983
UMLObject * getObject(Uml::RoleType::Enum role) const
Returns the UMLObject assigned to the given role.
Definition: association.cpp:476
Definition: umlobject.h:60
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
Definition: umlobject.h:62
bool typeIsClassifier(UMLListViewItem::ListViewType type)
Return true if the listview type is a classifier (Class, Entity, Enum)
Definition: model_utils.cpp:1003
Definition: widgetbase.h:51
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
Definition: umllistviewitem.h:63
UMLObject * umlObject() const
Return the UMLObject associated with this instance.
Definition: umllistviewitem.cpp:309
Definition: icon_utils.h:113
bool typeIsDiagram(UMLListViewItem::ListViewType type)
Return true if the listview type is a diagram.
Definition: model_utils.cpp:1017
QString treeViewBuildDiagramName(Uml::ID::Type id)
Build the diagram name from the tree view.
Definition: model_utils.cpp:415
Definition: widgetbase.h:48
Definition: basictypes.h:209
Definition: widgetbase.h:44
Definition: icon_utils.h:53
Definition: basictypes.h:76
Definition: icon_utils.h:49
Definition: umlobject.h:55
Definition: model_utils.h:112
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3030
Definition: basictypes.h:41
Uml::ModelType::Enum convert_DT_MT(Uml::DiagramType::Enum dt)
Return the Model_Type which corresponds to the given DiagramType.
Definition: model_utils.cpp:1037
Definition: umllistviewitem.h:73
Definition: icon_utils.h:87
Definition: umlobject.h:51
Parse_Status parseConstraint(QString m, QString &name, UMLEntity *owningScope)
Parses a constraint.
Definition: model_utils.cpp:863
UpdateDeleteAction
Update/Delete Action: Action to be taken on Update or Delete of a referenced attribute is either...
Definition: foreignkeyconstraint.h:42
Definition: basictypes.h:210
Definition: umllistviewitem.h:90
Definition: icon_utils.h:85
Definition: basictypes.h:84
Definition: umllistviewitem.h:57
Definition: umlobject.h:71
Definition: basictypes.h:80
QString updateDeleteActionToString(UMLForeignKeyConstraint::UpdateDeleteAction uda)
Converts from the UpdateDeleteAction enum to a QString.
Definition: model_utils.cpp:1636
Definition: icon_utils.h:118
Definition: umlobject.h:59
bool isCloneable(WidgetBase::WidgetType type)
Determines whether the given widget type is cloneable.
Definition: model_utils.cpp:52
Definition: umlobject.h:61
Definition: widgetbase.h:47
Definition: umllistviewitem.h:56
UMLObject * findUMLObject(const UMLObjectList &inList, const QString &inName, UMLObject::ObjectType type, UMLObject *currentObj)
Find the UML object of the given type and name in the passed-in list.
Definition: model_utils.cpp:139
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
Definition: umllistviewitem.h:76
Definition: icon_utils.h:40
Uml::ModelType::Enum convert_OT_MT(UMLObject::ObjectType ot)
Return the Model_Type which corresponds to the given ObjectType.
Definition: model_utils.cpp:1602
Definition: widgetbase.h:59
Definition: icon_utils.h:91
UMLListViewItem::ListViewType convert_MT_LVT(Uml::ModelType::Enum mt)
Return the ListViewType which corresponds to the given Model_Type.
Definition: model_utils.cpp:1071
Definition: basictypes.h:58
UMLObject * treeViewGetCurrentObject()
Return the current UMLObject from the tree view.
Definition: model_utils.cpp:377
This class contains the non-graphic representation of an association.
Definition: association.h:32
Definition: icon_utils.h:112
void treeViewAddViews(const UMLViewList &viewList)
Add the given list of views to the tree view.
Definition: model_utils.cpp:326
Definition: basictypes.h:79
static QString toString(ObjectType ot)
Helper function for debug output.
Definition: umlobject.cpp:1094
Definition: basictypes.h:82
bool typeIsRootView(UMLListViewItem::ListViewType type)
Return true if the listview type is one of the predefined root views (root, logical, usecase, component, deployment, datatype, or entity- relationship view.)
Definition: model_utils.cpp:898
ListViewType type() const
Returns the type this instance represents.
Definition: umllistviewitem.cpp:231
Definition: umllistviewitem.h:77
Definition: icon_utils.h:45
QString uniqObjectName(UMLObject::ObjectType type, UMLPackage *parentPkg, QString prefix)
Returns a name for the new object, appended with a number if the default name is taken e...
Definition: model_utils.cpp:452
Definition: widgetbase.h:49
Definition: basictypes.h:83
Definition: widgetbase.h:46
Definition: icon_utils.h:119
bool typeIsCanvasWidget(UMLListViewItem::ListViewType type)
Return true if the listview type also has a widget representation in diagrams.
Definition: model_utils.cpp:918
bool isCommonDataType(QString type)
Return true if the given type is common among the majority of programming languages, such as "bool" or "boolean".
Definition: model_utils.cpp:528
bool isUnique(const QString &name)
Returns true if the given name is unique within its scope.
Definition: umldoc.cpp:972
Definition: icon_utils.h:76
bool typeIsContainer(UMLListViewItem::ListViewType type)
Return true if the listview type may act as a container for other objects, i.e.
Definition: model_utils.cpp:969
Definition: umlobject.h:69
Definition: icon_utils.h:203
Definition: icon_utils.h:105
Definition: basictypes.h:60
virtual QStringList defaultDatatypes()
Return the default datatypes for your language (bool, int etc).
Definition: codegenerator.cpp:860
Definition: icon_utils.h:83
UMLListViewItem * rootView(UMLListViewItem::ListViewType type)
Returns the corresponding view if the listview type is one of the root views, Root/Logical/UseCase/Co...
Definition: umllistview.cpp:2949
Definition: umlobject.h:73
Definition: icon_utils.h:84
Definition: icon_utils.h:88
Definition: widgetbase.h:60
UMLObject * findUMLObjectRaw(const UMLObjectList &inList, const QString &name, UMLObject::ObjectType type, UMLObject *currentObj)
Find the UML object of the given type and name in the passed-in list.
Definition: model_utils.cpp:290
UMLListViewItem * findItem(Uml::ID::Type id)
Searches through the tree for the item with the given ID.
Definition: umllistview.cpp:1232
Definition: umlobject.h:74
Definition: umlobject.h:67
Definition: basictypes.h:40
Definition: basictypes.h:229
Icon_Utils::IconType convert_LVT_IT(UMLListViewItem::ListViewType lvt)
Return the IconType which corresponds to the given listview type.
Definition: model_utils.cpp:1428
Definition: icon_utils.h:90
Definition: umlobject.h:72
Definition: model_utils.h:96
Definition: basictypes.h:81
UMLRole * getUMLRole(Uml::RoleType::Enum role) const
Get the underlying UMLRole object for the given role.
Definition: association.cpp:563
int stringToDirection(QString input, Uml::ParameterDirection::Enum &result)
Parse a direction string into the Uml::ParameterDirection::Enum.
Definition: model_utils.cpp:649
Definition: icon_utils.h:104
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:581
Definition: basictypes.h:78
bool isCommonXMIAttribute(const QString &tag)
Return true if the given tag is a one of the common XMI attributes, such as: "name" | "visibility" | ...
Definition: model_utils.cpp:503
Definition: basictypes.h:57
UMLObject::ObjectType convert_LVT_OT(UMLListViewItem::ListViewType lvt)
Converts a list view type enum to the equivalent object type.
Definition: model_utils.cpp:1324
QString psText(Parse_Status value)
Returns the Parse_Status as a text.
Definition: model_utils.cpp:883
Uml::ModelType::Enum convert_LVT_MT(UMLListViewItem::ListViewType lvt)
Return the Model_Type which corresponds to the given ListViewType.
Definition: model_utils.cpp:1101
Parse_Status parseOperation(QString m, OpDescriptor &desc, UMLClassifier *owningScope)
Parses an operation given in UML syntax.
Definition: model_utils.cpp:793
UMLListViewItem * moveObject(Uml::ID::Type srcId, UMLListViewItem::ListViewType srcType, UMLListViewItem *newParent)
Moves an object given is unique ID and listview type to an other listview parent item.
Definition: umllistview.cpp:1543
Definition: umlobject.h:58
Definition: icon_utils.h:89
Definition: umllistviewitem.h:45
void treeViewChangeIcon(UMLObject *object, Icon_Utils::IconType to)
Change an icon of an object in the tree view.
Definition: model_utils.cpp:342
Definition: umlobject.h:53
Definition: umlobject.h:50
Definition: umlobject.h:63
Definition: umlobject.h:57
Definition: icon_utils.h:115
Parse_Status parseAttribute(QString a, NameAndType &nmTp, UMLClassifier *owningScope, Uml::Visibility::Enum *vis)
Parses an attribute given in UML syntax.
Definition: model_utils.cpp:718
UMLObject * findObjectInList(Uml::ID::Type id, const UMLObjectList &inList)
Seek the given id in the given list of objects.
Definition: model_utils.cpp:80
UMLPackage * umlPackage()
Returns the UMLPackage that this class is located in.
Definition: umlobject.cpp:641
Parse_Status parseTemplate(QString t, NameAndType &nmTp, UMLClassifier *owningScope)
Parses a template parameter given in UML syntax.
Definition: model_utils.cpp:678
Definition: icon_utils.h:78
This class is used to set up information for a unique entity constraint.
Definition: uniqueconstraint.h:28
Definition: basictypes.h:77
Definition: basictypes.h:44
void treeViewSetCurrentItem(UMLObject *object)
Set the given object to the current item in the tree view.
Definition: model_utils.cpp:352
Definition: umlobject.h:56
This class contains the non-graphic representation of an association role.
Definition: umlrole.h:24
This sub-class adds copyInto and clone to the QList base class.
Definition: umlobjectlist.h:26
bool activeLanguageIsCaseSensitive()
Return true if the active language is case sensitive.
Definition: uml.cpp:2361
UMLPackage * treeViewGetPackageFromCurrent()
Return the UMLPackage if the current item in the tree view is a package.
Definition: model_utils.cpp:391
Definition: umlobject.h:49
void treeViewMoveObjectTo(UMLObject *container, UMLObject *object)
Move an object to a new container in the tree view.
Definition: model_utils.cpp:364
This class collects together all of the code documents which form this project, and generates code fo...
Definition: codegenerator.h:68
bool isPrimaryKey(UMLUniqueConstraint *uConstr) const
Checks if a given Unique Constraint is primary key of this entity.
Definition: entity.cpp:676
Definition: basictypes.h:39
UMLListViewItem * findUMLObject(const UMLObject *p) const
Find an UMLObject in the listview.
Definition: umllistview.cpp:1140
void changeIconOf(UMLObject *o, Icon_Utils::IconType to)
Changes the icon for the given UMLObject to the given icon.
Definition: umllistview.cpp:1154
Definition: umllistviewitem.h:58
Definition: basictypes.h:227
Definition: widgetbase.h:45
UMLListViewItem::ListViewType convert_DT_LVT(Uml::DiagramType::Enum dt)
Convert a diagram type enum to the equivalent list view type.
Definition: model_utils.cpp:1129
UMLPackage * rootPackage(UMLObject *obj)
Get the root folder of the given UMLObject.
Definition: model_utils.cpp:307
Uml::DiagramType::Enum convert_LVT_DT(UMLListViewItem::ListViewType lvt)
Return the DiagramType which corresponds to the given listview type.
Definition: model_utils.cpp:1562
Definition: umlobject.h:52
Definition: icon_utils.h:111
Definition: icon_utils.h:120
UMLTemplate * findTemplate(const QString &name)
Seeks the template parameter of the given name.
Definition: classifier.cpp:1137
Definition: widgetbase.h:61
Definition: icon_utils.h:51
Uml::ModelType::Enum guessContainer(UMLObject *o)
Try to guess the correct container folder type of an UMLObject.
Definition: model_utils.cpp:572
Definition: basictypes.h:228
Definition: icon_utils.h:43
Definition: icon_utils.h:108
Definition: icon_utils.h:100
Definition: icon_utils.h:82
Definition: model_utils.h:92
Definition: icon_utils.h:86
Definition: icon_utils.h:47
UMLListViewItem::ListViewType convert_OT_LVT(UMLObject *o)
Convert an object's type to the equivalent list view type.
Definition: model_utils.cpp:1186
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Used to find a UMLObject by its type and name.
Definition: umldoc.cpp:809
Definition: basictypes.h:42
Definition: basictypes.h:59
Definition: model_utils.h:92
Definition: umlobject.h:54
UMLObjectList containedObjects()
Returns the list of objects contained in this package.
Definition: package.cpp:230
Definition: umlobject.h:68
This class contains the non-graphical information required for a UML Entity.
Definition: entity.h:34
Definition: icon_utils.h:81
Definition: umlobject.h:64
UMLListViewItem * createDiagramItem(UMLView *view)
Create a listview item for an existing diagram.
Definition: umllistview.cpp:1870
bool typeIsFolder(UMLListViewItem::ListViewType type)
Return true if the listview type is a logical, usecase or component folder.
Definition: model_utils.cpp:950
Enum fromInt(int item)
Convert a integer item into RoleType representation.
Definition: basictypes.cpp:739
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.