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:432
bool isClassifierListitem(UMLObject::ObjectType type)
Return true if the given object type is a classifier list item type.
Definition: model_utils.cpp:572
UMLListViewItem * deepCopy(UMLListViewItem *newParent)
Overrides the default sorting to sort by item type.
Definition: umllistviewitem.cpp:788
void removeParm(UMLAttribute *a, bool emitModifiedSignal=true)
Remove a parameter from the operation.
Definition: operation.cpp:152
bool typeIsClassifierList(UMLListViewItem::ListViewType type)
Return true if the listview type is an attribute, operation, or template.
Definition: model_utils.cpp:1007
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:864
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:114
Definition: umllistviewitem.h:83
bool typeIsDiagram(UMLListViewItem::ListViewType type)
Return true if the listview type is a diagram.
Definition: model_utils.cpp:1121
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
QDomNode appendChild(const QDomNode &newChild)
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:431
QTreeWidgetItem * child(int index) const
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Returns the entries in m_List that are of the requested type.
Definition: classifier.cpp:1027
QString attribute(const QString &name, const QString &defValue) const
Definition: model_utils.h:115
void setVisibility(Uml::Visibility::Enum s)
Reimplementation of method from UMLObject is required as an extra signal, attributeChanged(), is emitted.
Definition: attribute.cpp:87
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
iterator begin()
Definition: umllistviewitem.h:73
Parse_Status parseConstraint(QString m, QString &name, UMLEntity *owningScope)
Parses a constraint.
Definition: model_utils.cpp:886
const T & at(int i) const
Definition: cmd_renameUMLObject.h:20
Definition: umllistviewitem.h:91
void setIcon(int column, const QIcon &icon)
void slotEditFinished(const QString &newText)
This slot is called to finish item editing.
Definition: umllistviewitem.cpp:458
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:810
QDebug & nospace()
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:72
This class holds information used by template classes, called paramaterised class in UML and a generi...
Definition: template.h:26
Definition: icon_utils.h:119
Definition: umlobject.h:60
Definition: umllistviewitem.h:56
bool isExpanded() const
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
iterator end()
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the operation.
Definition: operation.cpp:199
void signalDiagramRenamed(UMLView *view)
Signal a view/diagram has been renamed.
Definition: umldoc.cpp:2954
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
int indexOf(const T &value, int from) const
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:88
int count(const T &value) const
QIcon icon(int column) const
void setFlags(QFlags< Qt::ItemFlag > flags)
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:749
Definition: icon_utils.h:113
Definition: basictypes.h:142
QString number(int n, int base)
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:921
int count(const T &value) const
ListViewType type() const
Returns the type this instance represents.
Definition: umllistviewitem.cpp:231
Definition: umllistviewitem.h:90
Definition: basictypes.h:141
void setInitialValue(const QString &iv)
Sets the initial value of the UMLAttribute.
Definition: attribute.cpp:109
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:260
Definition: icon_utils.h:120
void executeCommand(QUndoCommand *cmd)
Execute a command and push it in the stack.
Definition: uml.cpp:3227
Uml::ParameterDirection::Enum m_direction
Definition: model_utils.h:102
void setAttribute(const QString &name, const QString &value)
bool isUnique(const QString &name)
Returns true if the given name is unique within its scope.
Definition: umldoc.cpp:974
int toInt(bool *ok, int base) const
Definition: umlobject.h:70
bool isEmpty() const
static QString toString(ListViewType type)
Definition: umllistviewitem.cpp:937
Definition: icon_utils.h:106
Definition: basictypes.h:60
QPixmap SmallIcon(IconType type)
Returns the pixmap for the given type as small icon.
Definition: icon_utils.cpp:38
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Find a child object with the given name.
Definition: umlcanvasobject.cpp:240
iterator end()
UMLListViewItem * findItem(Uml::ID::Type id)
Searches through the tree for the item with the given ID.
Definition: umllistview.cpp:1362
QTreeWidget * treeWidget() const
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:2652
Definition: model_utils.h:99
void setHidden(bool hide)
Definition: icon_utils.h:105
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:579
QDebug & space()
Definition: basictypes.h:57
QString psText(Parse_Status value)
Returns the Parse_Status as a text.
Definition: model_utils.cpp:906
Parse_Status parseOperation(QString m, OpDescriptor &desc, UMLClassifier *owningScope)
Parses an operation given in UML syntax.
Definition: model_utils.cpp:816
QLinkedList< NameAndType >::iterator NameAndType_ListIt
Auxiliary type for OpDescriptor.
Definition: model_utils.h:113
QTreeWidgetItem * parent() const
Definition: umlobject.h:59
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:782
Definition: icon_utils.h:116
Parse_Status parseAttribute(QString a, NameAndType &nmTp, UMLClassifier *owningScope, Uml::Visibility::Enum *vis)
Parses an attribute given in UML syntax.
Definition: model_utils.cpp:741
void setExpanded(bool expand)
Qt::ItemFlags flags() const
Parse_Status parseTemplate(QString t, NameAndType &nmTp, UMLClassifier *owningScope)
Parses a template parameter given in UML syntax.
Definition: model_utils.cpp:701
Definition: umlobject.h:57
QString folderFile() const
Get the folder file name for a separate submodel.
Definition: folder.cpp:255
Definition: icon_utils.h:102
void setText(int column, const QString &text)
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:846
UMLListViewItem * findChildObject(UMLClassifierListItem *cli)
Find the UMLListViewItem that represents the given UMLClassifierListItem in the children of the curre...
Definition: umllistviewitem.cpp:829
Definition: umllistviewitem.h:58
bool loadFromXMI(QDomElement &qElement)
Loads a "listitem" tag, this is only used by the clipboard currently.
Definition: umllistviewitem.cpp:907
void setIcon(Icon_Utils::IconType iconType)
Set the pixmap corresponding to the given IconType.
Definition: umllistviewitem.cpp:449
Definition: umlobject.h:53
virtual void setID(Uml::ID::Type NewID)
Assigns a new Id to the object.
Definition: umlobject.cpp:158
Definition: icon_utils.h:121
QDomElement createElement(const QString &tagName)
QObject * parent() const
Definition: icon_utils.h:101
int childCount() const
Definition: icon_utils.h:103
Definition: icon_utils.h:82
QString text(int column) const
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the UMLAttribute.
Definition: attribute.cpp:133
UMLListViewItem::ListViewType convert_OT_LVT(UMLObject *o)
Convert an object's type to the equivalent list view type.
Definition: model_utils.cpp:1290
iterator find(const Key &key)
Definition: umlobject.h:69
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:117
Definition: icon_utils.h:81
Icon_Utils::IconType convert_LVT_IT(UMLListViewItem::ListViewType lvt, UMLObject *o)
Return the IconType which corresponds to the given listview type.
Definition: model_utils.cpp:1543
bool typeIsFolder(UMLListViewItem::ListViewType type)
Return true if the listview type is a logical, usecase or component folder.
Definition: model_utils.cpp:974
int remove(const Key &key)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.