umbrello/umbrello
umllistviewitem.cpp
Go to the documentation of this file.
108 UMLListViewItem::UMLListViewItem(UMLListViewItem * parent, const QString &name, ListViewType t, UMLObject*o)
138 UMLListViewItem::UMLListViewItem(UMLListViewItem * parent, const QString &name, ListViewType t, Uml::ID::Type id)
239 void UMLListViewItem::addClassifierListItem(UMLClassifierListItem *child, UMLListViewItem *childItem)
326 for (QTreeWidgetItem *self = static_cast<QTreeWidgetItem*>(this); self; self = self->parent()) {
void setText(int column, const QString &text)
Changes the current text.
Definition: umllistviewitem.cpp:435
bool isClassifierListitem(UMLObject::ObjectType type)
Return true if the given object type is a classifier list item type.
Definition: model_utils.cpp:550
UMLListViewItem * deepCopy(UMLListViewItem *newParent)
Overrides the default sorting to sort by item type.
Definition: umllistviewitem.cpp:790
void removeParm(UMLAttribute *a, bool emitModifiedSignal=true)
Remove a parameter from the operation.
Definition: operation.cpp:151
bool typeIsClassifierList(UMLListViewItem::ListViewType type)
Return true if the listview type is an attribute, operation, or template.
Definition: model_utils.cpp:983
This sub-class adds copyInto and clone to the QPtrList base class...
Definition: umlclassifierlistitemlist.h:26
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves the listview item to a "listitem" tag.
Definition: umllistviewitem.cpp:866
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
Definition: umllistviewitem.h:83
bool typeIsDiagram(UMLListViewItem::ListViewType type)
Return true if the listview type is a diagram.
Definition: model_utils.cpp:1017
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
virtual void setType(UMLObject *type)
Sets the type of the UMLAttribute.
Definition: classifierlistitem.cpp:125
Uml::Visibility::Enum visibility() const
Returns the visibility of the object.
Definition: umlobject.cpp:435
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Returns the entries in m_List that are of the requested type.
Definition: classifier.cpp:1019
Definition: model_utils.h:112
void setVisibility(Uml::Visibility::Enum s)
Reimplementation of method from UMLObject is required as an extra signal, attributeChanged(), is emitted.
Definition: attribute.cpp:86
bool isOwnParent(Uml::ID::Type listViewItemID)
Returns true if the UMLListViewItem of the given ID is a parent of this UMLListViewItem.
Definition: umllistviewitem.cpp:318
Definition: umllistviewitem.h:73
Parse_Status parseConstraint(QString m, QString &name, UMLEntity *owningScope)
Parses a constraint.
Definition: model_utils.cpp:863
Definition: cmd_renameUMLObject.h:20
Definition: umllistviewitem.h:90
void slotEditFinished(const QString &newText)
This slot is called to finish item editing.
Definition: umllistviewitem.cpp:461
UMLListViewItem * findUMLObject(const UMLObject *o)
Find the UMLListViewItem that is related to the given UMLObject in the tree rooted at the current UML...
Definition: umllistviewitem.cpp:812
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
QString toolTip()
Returns the signature of items that are operations.
Definition: umllistviewitem.cpp:200
Definition: umllistviewitem.h:57
Definition: umlobject.h:71
This class holds information used by template classes, called paramaterised class in UML and a generi...
Definition: template.h:26
Definition: icon_utils.h:118
Definition: umlobject.h:59
Definition: umllistviewitem.h:56
Definition: umllistviewitem.h:76
Definition: icon_utils.h:40
void deleteChildItem(UMLClassifierListItem *child)
Deletes the child listview item representing the given UMLClassifierListItem.
Definition: umllistviewitem.cpp:247
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the operation.
Definition: operation.cpp:198
void signalDiagramRenamed(UMLView *view)
Signal a view/diagram has been renamed.
Definition: umldoc.cpp:2903
QDebug operator<<(QDebug dbg, const UMLListViewItem &item)
Overloading operator for debugging output.
Definition: umllistviewitem.cpp:1042
UMLListViewItem(UMLListView *parent, const QString &name, ListViewType t, UMLObject *o=0)
Sets up an instance.
Definition: umllistviewitem.cpp:58
Definition: basictypes.h:58
void setUMLObject(UMLObject *obj)
Set the UMLObject associated with this instance.
Definition: umllistviewitem.cpp:299
void setType(UMLObject *type)
Reimplement method from UMLClassifierListItem.
Definition: operation.cpp:87
virtual QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the list item.
Definition: classifierlistitem.cpp:89
UMLView * findView(Uml::ID::Type id)
Finds a view (diagram) by the ID given to method.
Definition: umldoc.cpp:733
Definition: icon_utils.h:112
Definition: basictypes.h:137
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: basictypes.h:136
void setInitialValue(const QString &iv)
Sets the initial value of the UMLAttribute.
Definition: attribute.cpp:108
Definition: umllistviewitem.h:77
Definition: icon_utils.h:75
void addParm(UMLAttribute *parameter, int position=-1)
Add a parameter to the operation.
Definition: operation.cpp:259
Definition: icon_utils.h:119
void executeCommand(QUndoCommand *cmd)
Execute a command and pushit in the stack.
Definition: uml.cpp:3077
Uml::ParameterDirection::Enum m_direction
Definition: model_utils.h:99
bool isUnique(const QString &name)
Returns true if the given name is unique within its scope.
Definition: umldoc.cpp:972
Definition: umlobject.h:69
static QString toString(ListViewType type)
Definition: umllistviewitem.cpp:939
Definition: icon_utils.h:105
Definition: basictypes.h:60
QPixmap SmallIcon(IconType type)
Returns the pixmap for the given type as small icon.
Definition: icon_utils.cpp:36
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Find a child object with the given name.
Definition: umlcanvasobject.cpp:240
UMLListViewItem * findItem(Uml::ID::Type id)
Searches through the tree for the item with the given ID.
Definition: umllistview.cpp:1232
void setModified(bool modified=true)
Sets the modified flag for the document after a modifying action on the view connected to the documen...
Definition: umldoc.cpp:2607
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
Definition: icon_utils.h:104
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:581
Definition: basictypes.h:57
QString psText(Parse_Status value)
Returns the Parse_Status as a text.
Definition: model_utils.cpp:883
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
Definition: umlobject.h:58
This class is used to set up information for a entity constraint.
Definition: entityconstraint.h:26
Definition: umllistviewitem.h:45
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the list item.
Definition: template.cpp:54
UMLObject * findObjectById(Uml::ID::Type id)
Used to find a reference to a UMLObject by its ID.
Definition: umldoc.cpp:766
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
Parse_Status parseTemplate(QString t, NameAndType &nmTp, UMLClassifier *owningScope)
Parses a template parameter given in UML syntax.
Definition: model_utils.cpp:678
Definition: umlobject.h:56
QString folderFile() const
Get the folder file name for a separate submodel.
Definition: folder.cpp:253
Definition: icon_utils.h:101
void addClassifierListItem(UMLClassifierListItem *child, UMLListViewItem *childItem)
Adds the child listview item representing the given UMLClassifierListItem.
Definition: umllistviewitem.cpp:239
UMLListViewItem * findItem(Uml::ID::Type id)
Find the UMLListViewItem of the given ID in the tree rooted at the current UMLListViewItem.
Definition: umllistviewitem.cpp:848
UMLListViewItem * findChildObject(UMLClassifierListItem *cli)
Find the UMLListViewItem that represents the given UMLClassifierListItem in the children of the curre...
Definition: umllistviewitem.cpp:831
Definition: umllistviewitem.h:58
bool loadFromXMI(QDomElement &qElement)
Loads a "listitem" tag, this is only used by the clipboard currently.
Definition: umllistviewitem.cpp:909
void setIcon(Icon_Utils::IconType iconType)
Set the pixmap corresponding to the given IconType.
Definition: umllistviewitem.cpp:452
Definition: umlobject.h:52
virtual void setID(Uml::ID::Type NewID)
Assigns a new Id to the object.
Definition: umlobject.cpp:159
Definition: icon_utils.h:120
Definition: icon_utils.h:100
Definition: icon_utils.h:102
Definition: icon_utils.h:82
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the UMLAttribute.
Definition: attribute.cpp:132
UMLListViewItem::ListViewType convert_OT_LVT(UMLObject *o)
Convert an object's type to the equivalent list view type.
Definition: model_utils.cpp:1186
Definition: umlobject.h:68
This class contains the non-graphical information required for a UML Entity.
Definition: entity.h:34
void setParmKind(Uml::ParameterDirection::Enum pk)
Definition: attribute.cpp:116
Definition: icon_utils.h:81
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.