umbrello/umbrello
umllistview.cpp
Go to the documentation of this file.
118 connect(this, SIGNAL(itemCollapsed(QTreeWidgetItem*)), this, SLOT(slotCollapsed(QTreeWidgetItem*)));
119 connect(this, SIGNAL(itemExpanded(QTreeWidgetItem*)), this, SLOT(slotExpanded(QTreeWidgetItem*)));
238 DEBUG(DBG_SRC) << "pos change since dragStart is below startDragDistance threshold (no action)";
565 QPointer<UMLEntityAttributeDialog> dialog = new UMLEntityAttributeDialog(this, selectedAttribute);
583 QPointer<UMLUniqueConstraintDialog> dialog = new UMLUniqueConstraintDialog(this, selectedUniqueConstraint);
588 UMLForeignKeyConstraint* selectedForeignKeyConstraint = static_cast<UMLForeignKeyConstraint*>(object);
589 QPointer<UMLForeignKeyConstraintDialog> dialog = new UMLForeignKeyConstraintDialog(this, selectedForeignKeyConstraint);
595 QPointer<UMLCheckConstraintDialog> dialog = new UMLCheckConstraintDialog(this, selectedCheckConstraint);
716 UMLListViewItem* item = new UMLListViewItem(p, scene->name(), Model_Utils::convert_DT_LVT(dt), id);
953 UMLClassifier *parent = const_cast<UMLClassifier*>(dynamic_cast<const UMLClassifier*>(sender()));
998 UMLClassifier *parent = const_cast<UMLClassifier*>(dynamic_cast<const UMLClassifier*>(sender()));
1035 connect(m_doc, SIGNAL(sigDiagramCreated(Uml::ID::Type)), this, SLOT(slotDiagramCreated(Uml::ID::Type)));
1036 connect(m_doc, SIGNAL(sigDiagramRemoved(Uml::ID::Type)), this, SLOT(slotDiagramRemoved(Uml::ID::Type)));
1037 connect(m_doc, SIGNAL(sigDiagramRenamed(Uml::ID::Type)), this, SLOT(slotDiagramRenamed(Uml::ID::Type)));
1038 connect(m_doc, SIGNAL(sigObjectCreated(UMLObject*)), this, SLOT(slotObjectCreated(UMLObject*)));
1039 connect(m_doc, SIGNAL(sigObjectRemoved(UMLObject*)), this, SLOT(slotObjectRemoved(UMLObject*)));
1265 m_datatypeFolder = new UMLListViewItem(m_lv[Uml::ModelType::Logical], datatypeFolder->localName(),
1543 UMLListViewItem * UMLListView::moveObject(Uml::ID::Type srcId, UMLListViewItem::ListViewType srcType,
1883 DEBUG(DBG_SRC) << view->umlScene()->name() << ": no parent folder set, using predefined folder";
1889 UMLListViewItem *item = new UMLListViewItem(parent, view->umlScene()->name(), lvt, view->umlScene()->ID());
2152 i18n("Name Not Unique"), KGuiItem(i18n("Use Name")), KGuiItem(i18n("Enter New Name"))) == KMessageBox::No) {
2433 } else if (type == UMLObject::ot_UniqueConstraint || type == UMLObject::ot_ForeignKeyConstraint
2479 static_cast<UMLListViewItem*>(item->parent())->addClassifierListItem(classifierListItem, item);
Definition: listpopupmenu.h:78
void setText(int column, const QString &text)
Changes the current text.
Definition: umllistviewitem.cpp:435
void setStartedCut(bool startedCut)
Set the variable m_bStartedCut to indicate that selection should be deleted in slotCutSuccessful().
Definition: umllistview.cpp:2922
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
bool typeIsClassifierList(UMLListViewItem::ListViewType type)
Return true if the listview type is an attribute, operation, or template.
Definition: model_utils.cpp:983
Definition: umldragdata.h:67
Definition: umlobject.h:60
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
Definition: umlobject.h:62
UMLCheckConstraint * createCheckConstraint(const QString &name=QString())
Creates a Check Constraint for this Entity.
Definition: entity.cpp:254
Definition: classpropdlg.h:44
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
Uml::ID::Type findNewID(Uml::ID::Type OldID)
Returns the new assigned ID of the object that had OldID as its previous id.
Definition: idchangelog.cpp:62
Definition: umllistviewitem.h:63
void slotItemSelectionChanged()
Handler for item selection changed signals.
Definition: umllistview.cpp:145
bool createChildUMLObject(UMLListViewItem *item, UMLObject::ObjectType type)
Creates a child UMLObject out of the given list view item.
Definition: umllistview.cpp:2356
UMLClassifier * getType() const
Returns the type of the UMLClassifierListItem.
Definition: classifierlistitem.cpp:100
UMLObject * umlObject() const
Return the UMLObject associated with this instance.
Definition: umllistviewitem.cpp:309
void deleteChildrenOf(UMLListViewItem *parent)
Deletes all child-items of parent.
Definition: umllistview.cpp:2984
void slotObjectRemoved(UMLObject *object)
Disconnects signals and removes the list view item.
Definition: umllistview.cpp:1046
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
A dialog page to display foreignkey constraint properties.
Definition: umlforeignkeyconstraintdialog.h:39
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:98
QString toString(Enum item)
Convert DiagramType item into QString representation.
Definition: basictypes.cpp:158
virtual void setType(UMLObject *type)
Sets the type of the UMLAttribute.
Definition: classifierlistitem.cpp:125
Definition: umlobject.h:66
Uml::ParameterDirection::Enum getParmKind() const
Definition: attribute.cpp:121
Uml::Visibility::Enum visibility() const
Returns the visibility of the object.
Definition: umlobject.cpp:435
UMLUniqueConstraint * createUniqueConstraint(const QString &name=QString())
Creates a Unique Constraint for this Entity.
Definition: entity.cpp:151
void slotEditCut()
Put the marked text/object into the clipboard and remove it from the document.
Definition: uml.cpp:1441
Definition: listpopupmenu.h:162
Definition: basictypes.h:76
bool setAsPrimaryKey(UMLUniqueConstraint *uconstr)
Sets the UniqueConstraint passed as the Primary Key of this Entity If the UniqueConstraint exists...
Definition: entity.cpp:510
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Returns the entries in m_List that are of the requested type.
Definition: classifier.cpp:1019
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Definition: umllistview.cpp:2630
Definition: umlobject.h:55
Definition: model_utils.h:112
virtual UMLAttribute * createAttribute(const QString &name=QString(), UMLObject *type=0, Uml::Visibility::Enum vis=Uml::Visibility::Private, const QString &init=QString())
Creates an attribute for the class.
Definition: classifier.cpp:756
void showDocumentation(UMLObject *object, bool overwrite=false)
Called when a widget wishes to display its documentation in the doc window.
Definition: docwindow.cpp:87
Definition: basictypes.h:41
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
This class contains the non-graphical information required for a UML Component.
Definition: component.h:27
void slotDropped(QDropEvent *de, UMLListViewItem *parent, UMLListViewItem *item)
Something has been dragged and dropped onto the list view.
Definition: umllistview.cpp:1798
void setVisibility(Uml::Visibility::Enum visibility)
Sets the visibility of the object.
Definition: umlobject.cpp:445
Definition: umllistviewitem.h:73
Definition: umlobject.h:51
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
Definition: listpopupmenu.h:89
Parse_Status parseConstraint(QString m, QString &name, UMLEntity *owningScope)
Parses a constraint.
Definition: model_utils.cpp:863
UMLOperation * createOperation(const QString &name=QString(), bool *isExistingOp=NULL, Model_Utils::NameAndType_List *params=NULL)
Creates an operation in the current document.
Definition: classifier.cpp:238
Definition: listpopupmenu.h:163
void contextMenuEvent(QContextMenuEvent *me)
Definition: umllistview.cpp:1968
QTreeWidgetItemIterator UMLListViewItemIterator
Definition: umllistviewitem.h:25
Definition: listpopupmenu.h:114
Definition: umllistviewitem.h:90
QLinkedList< NameAndType > NameAndType_List
Auxiliary type for OpDescriptor.
Definition: model_utils.h:109
UMLListViewItem * findFolderForDiagram(Uml::DiagramType::Enum dt)
Find the parent folder for a diagram.
Definition: umllistview.cpp:674
Definition: listpopupmenu.h:157
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
void setFolderFile(const QString &fileName)
Set the folder file name for a separate submodel.
Definition: folder.cpp:245
QString uniqueViewName(const Uml::DiagramType::Enum type)
Returns a name for the new object, appended with a number if the default name is taken e...
Definition: umldoc.cpp:1195
void setBaseType(UMLObject::ObjectType ot)
Reimplementation of method from class UMLObject for controlling the exact type of this classifier: cl...
Definition: classifier.cpp:82
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
void updateDocumentation(bool clear=false, bool startup=false)
Call when you wish move changes in the doc window back into the members documentation.
Definition: docwindow.cpp:205
QString toolTip()
Returns the signature of items that are operations.
Definition: umllistviewitem.cpp:200
This class contains the non-graphical information required for UMLObjects which appear as moveable wi...
Definition: umlcanvasobject.h:33
UMLView * createDiagram(UMLListViewItem *item, Uml::DiagramType::Enum type)
Creates a diagram out of the given list view item.
Definition: umllistview.cpp:2491
Definition: basictypes.h:84
Definition: umllistviewitem.h:57
void dragEnterEvent(QDragEnterEvent *event)
Definition: umllistview.cpp:3059
void addAtContainer(UMLListViewItem *item, UMLListViewItem *parent)
Auxiliary method for moveObject(): Adds the model object at the proper new container (package if nest...
Definition: umllistview.cpp:1514
Definition: umlobject.h:71
void mouseDoubleClickEvent(QMouseEvent *me)
Event handler for mouse double click.
Definition: umllistview.cpp:1309
Definition: umlattributedialog.h:28
UMLListViewItemList selectedItemsRoot()
Get selected items, but only root elements selected (without children).
Definition: umllistview.cpp:1844
static bool mayHaveChildItems(UMLObject::ObjectType type)
Return true if the given ObjectType permits child items.
Definition: umllistview.cpp:787
void childObjectRemoved(UMLClassifierListItem *obj)
Deletes the list view item.
Definition: umllistview.cpp:996
UMLListViewItem * determineParentItem(UMLObject *object) const
Determine the parent ListViewItem given an UMLObject.
Definition: umllistview.cpp:730
This class holds information used by template classes, called paramaterised class in UML and a generi...
Definition: template.h:26
Definition: basictypes.h:80
Definition: umlobject.h:59
Definition: listpopupmenu.h:115
Definition: umlobject.h:61
UMLListViewItem * findUMLObjectInFolder(UMLListViewItem *folder, UMLObject *obj)
This methods looks for a object in a folder an its subfolders recursive.
Definition: umllistview.cpp:1096
Definition: umloperationdialog.h:37
Definition: umllistviewitem.h:56
void setOptionState(const Settings::OptionState &options)
Sets the options to be used.
Definition: umlscene.cpp:408
void updateContainment(UMLCanvasObject *self)
Refreshes containment association, i.e.
Definition: umlscene.cpp:2389
Definition: umllistviewitem.h:76
static bool getClip3TypeAndID(const QMimeData *mimeData, LvTypeAndID_List &typeAndIdList)
Return just the LvTypeAndID of a Clip3.
Definition: umldragdata.cpp:474
void deleteChildItem(UMLClassifierListItem *child)
Deletes the child listview item representing the given UMLClassifierListItem.
Definition: umllistviewitem.cpp:247
void slotDiagramRenamed(Uml::ID::Type id)
Renames a diagram in the list view.
Definition: umllistview.cpp:1011
This class is used to set up information for a unique entity constraint.
Definition: checkconstraint.h:25
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the operation.
Definition: operation.cpp:198
UMLListViewItem::ListViewType convert_MT_LVT(Uml::ModelType::Enum mt)
Return the ListViewType which corresponds to the given Model_Type.
Definition: model_utils.cpp:1071
void expandAll(UMLListViewItem *item)
Open all items in the list view.
Definition: umllistview.cpp:2896
This class is used to set up information for a foreign key entity constraint.
Definition: foreignkeyconstraint.h:32
Definition: classpropdlg.h:44
QString uniqueDiagramName(Uml::DiagramType::Enum type)
Returns a unique name for a diagram.
Definition: umllistview.cpp:2524
void setUMLObject(UMLObject *obj)
Set the UMLObject associated with this instance.
Definition: umllistviewitem.cpp:299
This class contains the non-graphical information required for a UML Node.
Definition: node.h:26
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
void slotDiagramRemoved(Uml::ID::Type id)
Removes the item representing a diagram.
Definition: umllistview.cpp:1061
Definition: listpopupmenu.h:92
UMLView * findView(Uml::ID::Type id)
Finds a view (diagram) by the ID given to method.
Definition: umldoc.cpp:733
QString createDiagramName(Uml::DiagramType::Enum type, bool askForName=true)
Creates the name of the given diagram type.
Definition: umldoc.cpp:1271
Definition: basictypes.h:137
Definition: basictypes.h:79
void setStartedCopy(bool startedCopy)
Set the variable m_bStartedCopy.
Definition: umllistview.cpp:2932
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
Definition: listpopupmenu.h:88
bool generate(UMLScene *scene, const QString &variant=QString())
generate layout and apply it to the given diagram.
Definition: layoutgenerator.h:156
ListViewType type() const
Returns the type this instance represents.
Definition: umllistviewitem.cpp:231
Definition: listpopupmenu.h:208
A dialog to edit the properties of a class template (paramaterised class)
Definition: umltemplatedialog.h:28
Definition: umllistviewitem.h:77
void addParm(UMLAttribute *parameter, int position=-1)
Add a parameter to the operation.
Definition: operation.cpp:259
void addNewItem(UMLListViewItem *parent, UMLListViewItem::ListViewType type)
Adds a new item to the tree of the given type under the given parent.
Definition: umllistview.cpp:2083
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: basictypes.h:83
Definition: listpopupmenu.h:85
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 setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:545
bool isUnique(UMLListViewItem *item, const QString &name)
Returns if the given name is unique for the given items type.
Definition: umllistview.cpp:2532
Definition: listpopupmenu.h:158
bool acceptDrag(QDropEvent *event) const
Event handler for accepting drag request.
Definition: umllistview.cpp:1369
void removeObject(UMLObject *pObject)
Removes an object from this package.
Definition: package.cpp:193
void changeCurrentView(Uml::ID::Type id)
Changes the current view (diagram) to the view with the given ID.
Definition: umldoc.cpp:1438
void slotCollapsed(QTreeWidgetItem *item)
Calls updateFolder() on the item to update the icon to closed.
Definition: umllistview.cpp:2045
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
void slotCutSuccessful()
Connects to the signal that UMLApp emits when a cut operation is successful.
Definition: umllistview.cpp:2057
static QString toString(ListViewType type)
Definition: umllistviewitem.cpp:939
static Uml::DiagramType::Enum convert_MT_DT(MenuType mt)
Utility: Convert a MenuType value to a Diagram_Type value.
Definition: listpopupmenu.cpp:1152
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
bool itemRenamed(UMLListViewItem *item, int col)
Called for informing the list view that an item was renamed.
Definition: umllistview.cpp:2130
Definition: listpopupmenu.h:161
void removeUMLObject(UMLObject *umlobject)
Removes an UMLObject from the current file.
Definition: umldoc.cpp:1527
Definition: listpopupmenu.h:98
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Find a child object with the given name.
Definition: umlcanvasobject.cpp:240
void addView(UMLView *view)
Adds a view to the document which represents the document contents.
Definition: umldoc.cpp:159
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: listpopupmenu.h:83
Definition: basictypes.h:40
Definition: listpopupmenu.h:81
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
This class is used to set up information for an enum literal.
Definition: enumliteral.h:25
void activate()
Activate all the objects and associations after a load from the clipboard.
Definition: umlscene.cpp:1779
QListIterator< LvTypeAndID * > LvTypeAndID_It
Definition: umldragdata.h:72
Icon_Utils::IconType convert_LVT_IT(UMLListViewItem::ListViewType lvt)
Return the IconType which corresponds to the given listview type.
Definition: model_utils.cpp:1428
UMLFolder * folder() const
Return the UMLFolder in which this diagram lives.
Definition: umlscene.cpp:177
Definition: umlobject.h:72
Definition: model_utils.h:96
UMLObject * createUMLObject(UMLListViewItem *item, UMLObject::ObjectType type)
Creates a UMLObject out of the given list view item.
Definition: umllistview.cpp:2269
Definition: basictypes.h:81
Definition: listpopupmenu.h:82
A dialog page to display check constraint properties.
Definition: umlcheckconstraintdialog.h:30
Definition: basictypes.h:78
virtual UMLObject * findChildObjectById(Uml::ID::Type id, bool considerAncestors=false)
Find the child object by the given id.
Definition: classifier.cpp:553
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
void collapseAll(UMLListViewItem *item)
Close all items in the list view.
Definition: umllistview.cpp:2908
Definition: category.h:35
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
Uml::ID::Type get()
Return the last generated unique ID without generating a new one.
Definition: uniqueid.cpp:45
Enum fromInt(int item)
Convert a integer item into ModelType representation.
Definition: basictypes.cpp:80
This class is used to set up information for a entity constraint.
Definition: entityconstraint.h:26
Definition: umllistviewitem.h:45
This class contains the non-graphical information required for a UML Enum.
Definition: enum.h:28
Definition: umlobject.h:53
void slotMenuSelection(QAction *action)
Called when a right mouse button menu has an item selected.
Definition: umllistview.cpp:295
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the list item.
Definition: template.cpp:54
Definition: umlobject.h:50
UMLObject * findObjectById(Uml::ID::Type id)
Used to find a reference to a UMLObject by its ID.
Definition: umldoc.cpp:766
Definition: umlobject.h:63
Definition: listpopupmenu.h:86
Definition: umlobject.h:57
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
Definition: listpopupmenu.h:79
This class contains the non-graphical information required for a UML Artifact.
Definition: artifact.h:27
void slotDiagramCreated(Uml::ID::Type id)
Creates a new item to represent a new diagram.
Definition: umllistview.cpp:705
A dialog page to display unique constraint properties.
Definition: umluniqueconstraintdialog.h:36
void connectNewObjectsSlots(UMLObject *object)
Connect some signals into slots in the list view for newly created UMLObjects.
Definition: umllistview.cpp:858
Definition: listpopupmenu.h:101
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
This class is used to set up information for a unique entity constraint.
Definition: uniqueconstraint.h:28
This class is used to set up information for an entityattribute.
Definition: entityattribute.h:25
Definition: basictypes.h:77
Definition: basictypes.h:44
UMLView * createDiagram(UMLFolder *folder, Uml::DiagramType::Enum type, const QString &name)
Creates a diagram of the given type.
Definition: umldoc.cpp:1310
Definition: umlobject.h:56
Definition: listpopupmenu.h:156
void slotObjectChanged()
Calls updateObject() on the item representing the sending object no parameters, uses sender() to work...
Definition: umllistview.cpp:935
Definition: listpopupmenu.h:80
This sub-class adds copyInto and clone to the QList base class.
Definition: umlobjectlist.h:26
UMLListViewItem * findView(UMLView *v)
Searches through the tree for the item which represents the diagram given.
Definition: umllistview.cpp:1166
Definition: listpopupmenu.h:90
This class contains the non-graphical information required for a UML Category.
Definition: category.h:28
UMLObject * createTemplate(const QString &name=QString())
Create and add a just created template.
Definition: classifier.cpp:387
void removeDiagram(Uml::ID::Type id)
Deletes a diagram from the current file.
Definition: umldoc.cpp:1463
Definition: umlobject.h:49
Definition: listpopupmenu.h:84
QString folderFile() const
Get the folder file name for a separate submodel.
Definition: folder.cpp:253
static bool isExpandable(UMLListViewItem::ListViewType lvt)
Return true if the given list view type can be expanded/collapsed.
Definition: umllistview.cpp:2015
bool showPropertiesDialog(QWidget *parent)
Display the properties configuration dialog for the enum literal.
Definition: enumliteral.cpp:101
A popup menu that depending on what type is set to will display a different menu. ...
Definition: listpopupmenu.h:40
This class contains the non-graphical information required for a UML UseCase.
Definition: usecase.h:24
void addClassifierListItem(UMLClassifierListItem *child, UMLListViewItem *childItem)
Adds the child listview item representing the given UMLClassifierListItem.
Definition: umllistviewitem.cpp:239
Definition: basictypes.h:39
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 * 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: listpopupmenu.h:49
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
Definition: classpropdlg.h:44
UMLObject * findObject(const QString &name)
Find the object of the given name in the list of contained objects.
Definition: package.cpp:241
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
This class contains the non-graphical information required for a UML Actor.
Definition: actor.h:27
void slotExpanded(QTreeWidgetItem *item)
Calls updateFolder() on the item to update the icon to open.
Definition: umllistview.cpp:2034
void setSelected(UMLListViewItem *item, bool state)
Definition: umllistview.h:98
Definition: umlobject.h:65
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: listpopupmenu.h:87
Definition: classpropdlg.h:44
void setIcon(Icon_Utils::IconType iconType)
Set the pixmap corresponding to the given IconType.
Definition: umllistviewitem.cpp:452
virtual QString uniqChildName(const UMLObject::ObjectType type, const QString &prefix=QString())
Returns a name for the new association, operation, template or attribute appended with a number if th...
Definition: umlcanvasobject.cpp:185
Definition: umlobject.h:52
static MenuType typeFromAction(QAction *action)
Convenience method to extract the ListPopupMenu type from an action.
Definition: listpopupmenu.cpp:1122
This class provides encoding and decoding for the uml data that will be used in a drag and drop opera...
Definition: umldragdata.h:36
UMLObject * createEnumLiteral(const QString &name=QString())
Creates a literal for the enum.
Definition: enum.cpp:85
The class LayoutGenerator provides calculated layouts of diagrams.
Definition: layoutgenerator.h:89
virtual IDChangeLog * changeLog()
Read property of IDChangeLog* m_pChangeLog.
Definition: umldoc.cpp:2707
Uml::ModelType::Enum guessContainer(UMLObject *o)
Try to guess the correct container folder type of an UMLObject.
Definition: model_utils.cpp:572
void mouseReleaseEvent(QMouseEvent *me)
Handler for mouse release event.
Definition: umllistview.cpp:252
QList< UMLListViewItem * > UMLListViewItemList
Definition: umllistviewitemlist.h:24
int takeItem(UMLClassifierListItem *item)
Take and return a subordinate item from this classifier.
Definition: classifier.cpp:1186
void slotObjectCreated(UMLObject *object)
Creates a new list view item and connects the appropriate signals/slots.
Definition: umllistview.cpp:807
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
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
QDebug operator<<(QDebug out, const UMLListView &view)
Overloading operator for debugging output.
Definition: umllistview.cpp:3136
UMLForeignKeyConstraint * createForeignKeyConstraint(const QString &name=QString())
Creates a Foreign Key Constraint for this Entity.
Definition: entity.cpp:205
Definition: basictypes.h:42
void setStereotype(const QString &_name)
Sets the classes stereotype name.
Definition: umlobject.cpp:494
Definition: umlobject.h:54
UMLObjectList containedObjects()
Returns the list of objects contained in this package.
Definition: package.cpp:230
Definition: classpropdlg.h:44
void mousePressEvent(QMouseEvent *me)
Handler for mouse press events.
Definition: umllistview.cpp:187
Definition: umlobject.h:68
void setDocument(UMLDoc *doc)
Sets the document his is associated with.
Definition: umllistview.cpp:1028
UMLListViewItem::ListViewType rootViewType(UMLListViewItem *item)
Determines the root listview type of the given UMLListViewItem.
Definition: umllistview.cpp:1992
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
bool loadChildrenFromXMI(UMLListViewItem *parent, QDomElement &element)
Definition: umllistview.cpp:2667
Definition: umlobject.h:64
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Return the predefined root folder of the given type.
Definition: umldoc.cpp:2676
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
void childObjectAdded(UMLClassifierListItem *child, UMLClassifier *parent)
Adds a new operation, attribute or template item to a classifier, identical to childObjectAdded(obj) ...
Definition: umllistview.cpp:963
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.