umbrello/umbrello
model_utils.h
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
bool typeIsClassifierList(UMLListViewItem::ListViewType type)
Return true if the listview type is an attribute, operation, or template.
Definition: model_utils.cpp:983
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
bool typeIsClassifier(UMLListViewItem::ListViewType type)
Return true if the listview type is a classifier (Class, Entity, Enum)
Definition: model_utils.cpp:1003
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
Definition: model_utils.h:92
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: model_utils.h:112
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
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
QLinkedList< NameAndType > NameAndType_List
Auxiliary type for OpDescriptor.
Definition: model_utils.h:109
QString updateDeleteActionToString(UMLForeignKeyConstraint::UpdateDeleteAction uda)
Converts from the UpdateDeleteAction enum to a QString.
Definition: model_utils.cpp:1636
bool isCloneable(WidgetBase::WidgetType type)
Determines whether the given widget type is cloneable.
Definition: model_utils.cpp:52
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
Uml::ModelType::Enum convert_OT_MT(UMLObject::ObjectType ot)
Return the Model_Type which corresponds to the given ObjectType.
Definition: model_utils.cpp:1602
UMLListViewItem::ListViewType convert_MT_LVT(Uml::ModelType::Enum mt)
Return the ListViewType which corresponds to the given Model_Type.
Definition: model_utils.cpp:1071
UMLObject * treeViewGetCurrentObject()
Return the current UMLObject from the tree view.
Definition: model_utils.cpp:377
void treeViewAddViews(const UMLViewList &viewList)
Add the given list of views to the tree view.
Definition: model_utils.cpp:326
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
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
bool typeIsCanvasWidget(UMLListViewItem::ListViewType type)
Return true if the listview type also has a widget representation in diagrams.
Definition: model_utils.cpp:918
Uml::ParameterDirection::Enum m_direction
Definition: model_utils.h:99
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 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
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
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: model_utils.h:96
int stringToDirection(QString input, Uml::ParameterDirection::Enum &result)
Parse a direction string into the Uml::ParameterDirection::Enum.
Definition: model_utils.cpp:649
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
QString psText(Parse_Status value)
Returns the Parse_Status as a text.
Definition: model_utils.cpp:883
UMLObject::ObjectType convert_LVT_OT(UMLListViewItem::ListViewType lvt)
Converts a list view type enum to the equivalent object type.
Definition: model_utils.cpp:1324
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
QLinkedList< NameAndType >::iterator NameAndType_ListIt
Auxiliary type for OpDescriptor.
Definition: model_utils.h:110
void treeViewChangeIcon(UMLObject *object, Icon_Utils::IconType to)
Change an icon of an object in the tree view.
Definition: model_utils.cpp:342
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
NameAndType(QString name, UMLObject *type, Uml::ParameterDirection::Enum direction=Uml::ParameterDirection::In, QString initialValue=QString())
Definition: model_utils.h:102
Parse_Status parseTemplate(QString t, NameAndType &nmTp, UMLClassifier *owningScope)
Parses a template parameter given in UML syntax.
Definition: model_utils.cpp:678
void treeViewSetCurrentItem(UMLObject *object)
Set the given object to the current item in the tree view.
Definition: model_utils.cpp:352
This sub-class adds copyInto and clone to the QList base class.
Definition: umlobjectlist.h:26
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
Definition: basictypes.h:227
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
Uml::ModelType::Enum guessContainer(UMLObject *o)
Try to guess the correct container folder type of an UMLObject.
Definition: model_utils.cpp:572
Definition: model_utils.h:92
UMLListViewItem::ListViewType convert_OT_LVT(UMLObject *o)
Convert an object's type to the equivalent list view type.
Definition: model_utils.cpp:1186
Definition: model_utils.h:92
This class contains the non-graphical information required for a UML Entity.
Definition: entity.h:34
bool typeIsFolder(UMLListViewItem::ListViewType type)
Return true if the listview type is a logical, usecase or component folder.
Definition: model_utils.cpp:950
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.