umbrello/umbrello
umllistview.cpp
Go to the documentation of this file.
124 connect(this, SIGNAL(itemCollapsed(QTreeWidgetItem*)), this, SLOT(slotCollapsed(QTreeWidgetItem*)));
125 connect(this, SIGNAL(itemExpanded(QTreeWidgetItem*)), this, SLOT(slotExpanded(QTreeWidgetItem*)));
244 DEBUG(DBG_SRC) << "pos change since dragStart is below startDragDistance threshold (no action)";
667 QPointer<UMLEntityAttributeDialog> dialog = new UMLEntityAttributeDialog(this, selectedAttribute);
685 QPointer<UMLUniqueConstraintDialog> dialog = new UMLUniqueConstraintDialog(this, selectedUniqueConstraint);
690 UMLForeignKeyConstraint* selectedForeignKeyConstraint = static_cast<UMLForeignKeyConstraint*>(object);
691 QPointer<UMLForeignKeyConstraintDialog> dialog = new UMLForeignKeyConstraintDialog(this, selectedForeignKeyConstraint);
697 QPointer<UMLCheckConstraintDialog> dialog = new UMLCheckConstraintDialog(this, selectedCheckConstraint);
833 UMLListViewItem* item = new UMLListViewItem(p, scene->name(), Model_Utils::convert_DT_LVT(dt), id);
1082 UMLClassifier *parent = const_cast<UMLClassifier*>(dynamic_cast<const UMLClassifier*>(sender()));
1127 UMLClassifier *parent = const_cast<UMLClassifier*>(dynamic_cast<const UMLClassifier*>(sender()));
1164 connect(m_doc, SIGNAL(sigDiagramCreated(Uml::ID::Type)), this, SLOT(slotDiagramCreated(Uml::ID::Type)));
1165 connect(m_doc, SIGNAL(sigDiagramRemoved(Uml::ID::Type)), this, SLOT(slotDiagramRemoved(Uml::ID::Type)));
1166 connect(m_doc, SIGNAL(sigDiagramRenamed(Uml::ID::Type)), this, SLOT(slotDiagramRenamed(Uml::ID::Type)));
1167 connect(m_doc, SIGNAL(sigObjectCreated(UMLObject*)), this, SLOT(slotObjectCreated(UMLObject*)));
1168 connect(m_doc, SIGNAL(sigObjectRemoved(UMLObject*)), this, SLOT(slotObjectRemoved(UMLObject*)));
1395 m_datatypeFolder = new UMLListViewItem(m_lv[Uml::ModelType::Logical], datatypeFolder->localName(),
1597 UMLListViewItem * UMLListView::moveObject(Uml::ID::Type srcId, UMLListViewItem::ListViewType srcType,
1955 DEBUG(DBG_SRC) << view->umlScene()->name() << ": no parent folder set, using predefined folder";
1961 UMLListViewItem *item = new UMLListViewItem(parent, view->umlScene()->name(), lvt, view->umlScene()->ID());
Definition: listpopupmenu.h:78
void setText(int column, const QString &text)
Changes the current text.
Definition: umllistviewitem.cpp:432
void setStartedCut(bool startedCut)
Set the variable m_bStartedCut to indicate that selection should be deleted in slotCutSuccessful().
Definition: umllistview.cpp:2586
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
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
bool typeIsClassifierList(UMLListViewItem::ListViewType type)
Return true if the listview type is an attribute, operation, or template.
Definition: model_utils.cpp:1007
Definition: umldragdata.h:64
Definition: umlobject.h:61
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
Definition: umlobject.h:63
This sub-class adds copyInto and clone to the QPtrList base class...
Definition: umlclassifierlistitemlist.h:26
QString & append(QChar ch)
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves the listview item to a "listitem" tag.
Definition: umllistviewitem.cpp:864
Type type() const
const QPalette & palette() const
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:151
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
UMLClassifierListItem * createChildObject(UMLClassifier *parent, UMLObject::ObjectType type, const QString &name)
Creates an operation, attribute, template, or enum literal for the parent classifier.
Definition: object_factory.cpp:288
bool typeIsAllowedInType(UMLListViewItem::ListViewType childType, UMLListViewItem::ListViewType parentType)
Check if a listviewitem of type childType is allowed as child of type parentType. ...
Definition: model_utils.cpp:1042
bool isSelected() const
UMLObject * umlObject() const
Returns the UMLObject set to represent.
Definition: widgetbase.cpp:127
void deleteChildrenOf(UMLListViewItem *parent)
Deletes all child-items of parent.
Definition: umllistview.cpp:2648
void slotObjectRemoved(UMLObject *object)
Disconnects signals and removes the list view item.
Definition: umllistview.cpp:1175
bool typeIsDiagram(UMLListViewItem::ListViewType type)
Return true if the listview type is a diagram.
Definition: model_utils.cpp:1121
const QMimeData * mimeData() const
void slotMenuSelection(QAction *action, const QPoint &position=QPoint())
Called when a right mouse button menu has an item selected.
Definition: umllistview.cpp:314
Classifiers (classes, interfaces) have lists of operations, attributes, templates and others...
Definition: classifierlistitem.h:29
const T & next()
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:99
QDomNode appendChild(const QDomNode &newChild)
void centerOn(const QPointF &pos)
Definition: umlobject.h:67
void setColor(ColorGroup group, ColorRole role, const QColor &color)
Uml::ParameterDirection::Enum getParmKind() const
Definition: attribute.cpp:122
Uml::Visibility::Enum visibility() const
Returns the visibility of the object.
Definition: umlobject.cpp:431
void setMimeData(QMimeData *data)
QTreeWidgetItem * child(int index) const
void slotEditCut()
Put the marked text/object into the clipboard and remove it from the document.
Definition: uml.cpp:1515
Definition: listpopupmenu.h:180
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:1027
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Definition: umllistview.cpp:2313
Qt::DropAction proposedAction() const
QString attribute(const QString &name, const QString &defValue) const
Definition: listpopupmenu.h:230
void scrollToItem(const QTreeWidgetItem *item, QAbstractItemView::ScrollHint hint)
Definition: umlobject.h:56
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:764
void showDocumentation(UMLObject *object, bool overwrite=false)
Called when a widget wishes to display its documentation in the doc window.
Definition: docwindow.cpp:88
Definition: basictypes.h:41
QObject * sender() const
virtual void focusOutEvent(QFocusEvent *event)
void setVisibility(Uml::Visibility::Enum visibility)
Sets the visibility of the object.
Definition: umlobject.cpp:441
QVariant data() const
Definition: umllistviewitem.h:73
Definition: umlobject.h:52
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
Definition: listpopupmenu.h:90
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:243
void collapseAll()
Definition: listpopupmenu.h:181
UMLScene * umlScene() const
Deliver a pointer to the connected UMLView (needed esp.
Definition: widgetbase.cpp:107
const T & at(int i) const
Definition: listpopupmenu.h:115
Definition: umllistviewitem.h:91
UMLListViewItem * findFolderForDiagram(Uml::DiagramType::Enum dt)
Find the parent folder for a diagram.
Definition: umllistview.cpp:790
const QPoint & pos() const
bool isEmpty() const
Definition: listpopupmenu.h:171
void slotEditFinished(const QString &newText)
This slot is called to finish item editing.
Definition: umllistviewitem.cpp:458
virtual void setSelected(bool _select)
Sets the state of whether the widget is selected.
Definition: umlwidget.cpp:1321
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
void setFolderFile(const QString &fileName)
Set the folder file name for a separate submodel.
Definition: folder.cpp:247
void setBaseType(UMLObject::ObjectType ot)
Reimplementation of method from class UMLObject for controlling the exact type of this classifier: cl...
Definition: classifier.cpp:82
virtual const QMetaObject * metaObject() const
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:230
const QPoint & pos() const
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
QList< QTreeWidgetItem * > items(const QMimeData *data) const
Definition: basictypes.h:84
Definition: umllistviewitem.h:57
void dragEnterEvent(QDragEnterEvent *event)
Always allow starting a drag.
Definition: umllistview.cpp:2724
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:1568
Definition: umlobject.h:72
void mouseDoubleClickEvent(QMouseEvent *me)
Event handler for mouse double click.
Definition: umllistview.cpp:1439
Definition: umlattributedialog.h:28
UMLListViewItemList selectedItemsRoot()
Get selected items, but only root elements selected (without children).
Definition: umllistview.cpp:1916
static bool mayHaveChildItems(UMLObject::ObjectType type)
Return true if the given ObjectType permits child items.
Definition: umllistview.cpp:906
void childObjectRemoved(UMLClassifierListItem *obj)
Deletes the list view item.
Definition: umllistview.cpp:1125
const QPixmap * icon() const
UMLListViewItem * determineParentItem(UMLObject *object) const
Determine the parent ListViewItem given an UMLObject.
Definition: umllistview.cpp:849
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:60
Definition: listpopupmenu.h:116
Definition: umlobject.h:62
Qt::MouseButtons buttons() const
UMLListViewItem * findUMLObjectInFolder(UMLListViewItem *folder, UMLObject *obj)
This methods looks for a object in a folder an its subfolders recursive.
Definition: umllistview.cpp:1225
bool exists() const
QMetaProperty userProperty() const
QString & remove(int position, int n)
Definition: umloperationdialog.h:37
Definition: umllistviewitem.h:56
void updateContainment(UMLCanvasObject *self)
Refreshes containment association, i.e.
Definition: umlscene.cpp:2182
Definition: umllistviewitem.h:76
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void showText(const QPoint &pos, const QString &text, QWidget *w)
static bool getClip3TypeAndID(const QMimeData *mimeData, LvTypeAndID_List &typeAndIdList)
Return just the LvTypeAndID of a Clip3.
Definition: umldragdata.cpp:349
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:1140
QString name() const
Gets the name from the corresponding UMLObject if this widget has an underlying UMLObject; if it does...
Definition: widgetbase.cpp:211
virtual void contextMenuEvent(QContextMenuEvent *e)
This class is used to set up information for a unique entity constraint.
Definition: checkconstraint.h:25
UMLListViewItem::ListViewType convert_MT_LVT(Uml::ModelType::Enum mt)
Return the ListViewType which corresponds to the given Model_Type.
Definition: model_utils.cpp:1175
This class is used to set up information for a foreign key entity constraint.
Definition: foreignkeyconstraint.h:32
int size() const
QDomNode nextSibling() 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
QDomElement toElement() const
Qt::DropAction exec(QFlags< Qt::DropAction > supportedActions)
Qt::FocusReason reason() const
const char * name() const
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:1190
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Creates a UMLObject of the given type.
Definition: object_factory.cpp:192
Definition: listpopupmenu.h:93
bool isValid() const
UMLView * findView(Uml::ID::Type id)
Finds a view (diagram) by the ID given to method.
Definition: umldoc.cpp:749
Definition: listpopupmenu.h:173
Definition: basictypes.h:142
Definition: basictypes.h:79
void setStartedCopy(bool startedCopy)
Set the variable m_bStartedCopy.
Definition: umllistview.cpp:2596
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:921
Definition: listpopupmenu.h:89
bool generate(UMLScene *scene, const QString &variant=QString())
generate layout and apply it to the given diagram.
Definition: layoutgenerator.cpp:129
int count(const T &value) const
ListViewType type() const
Returns the type this instance represents.
Definition: umllistviewitem.cpp:231
Definition: umllistviewitem.h:90
void append(const T &value)
Definition: listpopupmenu.h:225
A dialog to edit the properties of a class template (paramaterised class)
Definition: umltemplatedialog.h:28
Definition: umllistviewitem.h:77
void ignore()
QVariant property(const char *name) const
void installEventFilter(QObject *filterObj)
void removeChild(QTreeWidgetItem *child)
void addParm(UMLAttribute *parameter, int position=-1)
Add a parameter to the operation.
Definition: operation.cpp:260
int toInt(bool *ok) const
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:2156
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:461
Definition: basictypes.h:83
Definition: listpopupmenu.h:86
bool typeIsCanvasWidget(UMLListViewItem::ListViewType type)
Return true if the listview type also has a widget representation in diagrams.
Definition: model_utils.cpp:941
This class manages the uml's interaction with the KDE Clipboard.
Definition: umlclipboard.h:32
void executeCommand(QUndoCommand *cmd)
Execute a command and push it in the stack.
Definition: uml.cpp:3227
const QPoint & globalPos() const
bool setUMLPackage(UMLPackage *pPkg)
Sets the UMLPackage in which this class is located.
Definition: umlobject.cpp:543
bool isUnique(UMLListViewItem *item, const QString &name)
Returns if the given name is unique for the given items type.
Definition: umllistview.cpp:2214
Definition: listpopupmenu.h:174
Qt::MouseButton button() const
bool acceptDrag(QDropEvent *event) const
Event handler for accepting drag request.
Definition: umllistview.cpp:1499
QPalette::ColorRole backgroundRole() const
void removeObject(UMLObject *pObject)
Removes an object from this package.
Definition: package.cpp:193
int toInt(bool *ok, int base) const
void changeCurrentView(Uml::ID::Type id)
Changes the current view (diagram) to the view with the given ID.
Definition: umldoc.cpp:1446
void slotCollapsed(QTreeWidgetItem *item)
Calls updateFolder() on the item to update the icon to closed.
Definition: umllistview.cpp:2118
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:993
Definition: umlobject.h:70
bool isEmpty() const
void slotCutSuccessful()
Connects to the signal that UMLApp emits when a cut operation is successful.
Definition: umllistview.cpp:2130
static QString toString(ListViewType type)
Definition: umllistviewitem.cpp:937
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
QAbstractItemDelegate * itemDelegate() const
QTreeWidgetItem * itemAt(const QPoint &p) const
void move(int x, int y)
void setCurrentView(UMLView *view, bool updateTreeView=true)
Puts this view to the top of the viewStack, i.e.
Definition: uml.cpp:2950
Definition: listpopupmenu.h:82
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:2613
Definition: umlobject.h:74
Definition: cmd_removeUMLObject.h:19
Definition: listpopupmenu.h:179
Definition: listpopupmenu.h:99
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 contextMenuEvent(QContextMenuEvent *event)
Definition: umllistview.cpp:2041
T & first()
QTreeWidgetItem * currentItem() const
UMLListViewItem * findItem(Uml::ID::Type id)
Searches through the tree for the item with the given ID.
Definition: umllistview.cpp:1362
Definition: umlobject.h:75
Definition: umlobject.h:68
Definition: listpopupmenu.h:84
Definition: basictypes.h:40
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
Definition: listpopupmenu.h:81
virtual void mouseReleaseEvent(QMouseEvent *event)
This class is used to set up information for an enum literal.
Definition: enumliteral.h:25
UMLFolder * folder() const
Return the UMLFolder in which this diagram lives.
Definition: umlscene.cpp:190
Definition: umlobject.h:73
Definition: basictypes.h:81
Qt::KeyboardModifiers modifiers() const
Definition: listpopupmenu.h:83
void setHidden(bool hide)
void setData(const QVariant &userData)
A dialog page to display check constraint properties.
Definition: umlcheckconstraintdialog.h:30
QString toLower() const
int key() const
Definition: basictypes.h:78
QDebug & space()
virtual UMLObject * findChildObjectById(Uml::ID::Type id, bool considerAncestors=false)
Find the child object by the given id.
Definition: classifier.cpp:561
UMLObject::ObjectType convert_LVT_OT(UMLListViewItem::ListViewType lvt)
Converts a list view type enum to the equivalent object type.
Definition: model_utils.cpp:1435
Uml::ModelType::Enum convert_LVT_MT(UMLListViewItem::ListViewType lvt)
Return the Model_Type which corresponds to the given ListViewType.
Definition: model_utils.cpp:1205
Definition: category.h:35
void hideText()
virtual void close()
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:1597
void expandAll()
QTreeWidgetItem * parent() const
Definition: umlobject.h:59
bool isNull() const
Enum fromInt(int item)
Convert a integer item into ModelType representation.
Definition: basictypes.cpp:80
const char * name() const
Definition: umlobject.h:76
Definition: umllistviewitem.h:45
This class contains the non-graphical information required for a UML Enum.
Definition: enum.h:28
Definition: umlobject.h:54
void setCurrentItem(QTreeWidgetItem *item)
Definition: umlobject.h:51
UMLObject * findObjectById(Uml::ID::Type id)
Used to find a reference to a UMLObject by its ID.
Definition: umldoc.cpp:782
QString & replace(int position, int n, QChar after)
virtual bool event(QEvent *e)
Definition: umlobject.h:64
QTreeWidgetItem * headerItem() const
Definition: listpopupmenu.h:87
Definition: umlobject.h:58
Definition: listpopupmenu.h:79
void setExpanded(bool expand)
void slotDiagramCreated(Uml::ID::Type id)
Creates a new item to represent a new diagram.
Definition: umllistview.cpp:821
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:986
QDomNode firstChild() const
Definition: listpopupmenu.h:102
UMLPackage * umlPackage()
Returns the UMLPackage that this class is located in.
Definition: umlobject.cpp:639
void dragMoveEvent(QDragMoveEvent *event)
Check drag destination and update move/copy action.
Definition: umllistview.cpp:2732
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 * activeView() const
Returns the active view associated with this scene.
Definition: umlscene.cpp:206
void exportView()
Shows a save dialog to the user to get the needed parameters and then exports the view...
Definition: umlviewimageexporter.cpp:64
Definition: umlobject.h:57
Definition: listpopupmenu.h:170
void slotObjectChanged()
Calls updateObject() on the item representing the sending object no parameters, uses sender() to work...
Definition: umllistview.cpp:1064
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:1296
Definition: listpopupmenu.h:91
This class contains the non-graphical information required for a UML Category.
Definition: category.h:28
void setSelected(bool select)
void removeDiagram(Uml::ID::Type id)
Deletes a diagram from the current file.
Definition: umldoc.cpp:1473
Definition: umlobject.h:50
Definition: listpopupmenu.h:85
QString folderFile() const
Get the folder file name for a separate submodel.
Definition: folder.cpp:255
static bool isExpandable(UMLListViewItem::ListViewType lvt)
Return true if the given list view type can be expanded/collapsed.
Definition: umllistview.cpp:2088
void setText(int column, const QString &text)
bool showPropertiesDialog(QWidget *parent)
Display the properties configuration dialog for the enum literal.
Definition: enumliteral.cpp:101
void slotDropped(QDropEvent *de, UMLListViewItem *target)
Something has been dragged and dropped onto the list view.
Definition: umllistview.cpp:1862
A popup menu that depending on what type is set to will display a different menu. ...
Definition: listpopupmenu.h:40
friend QDebug operator<<(QDebug out, const UMLListView &view)
Overloading operator for debugging output.
Definition: umllistview.cpp:2804
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:846
UMLListViewItem * findUMLObject(const UMLObject *p) const
Find an UMLObject in the listview.
Definition: umllistview.cpp:1270
void changeIconOf(UMLObject *o, Icon_Utils::IconType to)
Changes the icon for the given UMLObject to the given icon.
Definition: umllistview.cpp:1284
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:829
Definition: umllistviewitem.h:58
Qt::DropAction dropAction() const
void edit(const QModelIndex &index)
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:1233
void slotExpanded(QTreeWidgetItem *item)
Calls updateFolder() on the item to update the icon to open.
Definition: umllistview.cpp:2107
virtual void mousePressEvent(QMouseEvent *event)
QHeaderView * header() const
Definition: umlobject.h:66
QString tagName() const
Definition: listpopupmenu.h:88
void setIcon(Icon_Utils::IconType iconType)
Set the pixmap corresponding to the given IconType.
Definition: umllistviewitem.cpp:449
QTreeWidgetItem * topLevelItem(int index) const
const QPoint & pos() const
UMLViewImageExporter * getImageExporter()
Returns the imageExporter used to export the view.
Definition: umlscene.cpp:1754
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:53
static MenuType typeFromAction(QAction *action)
Convenience method to extract the ListPopupMenu type from an action.
Definition: listpopupmenu.cpp:1234
QDomElement createElement(const QString &tagName)
This class provides encoding and decoding for the uml data that will be used in a drag and drop opera...
Definition: umldragdata.h:36
virtual void keyPressEvent(QKeyEvent *event)
QModelIndex currentIndex() const
int topLevelItemCount() const
void clearSelection()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
The class LayoutGenerator provides calculated layouts of diagrams.
Definition: layoutgenerator.h:38
virtual IDChangeLog * changeLog()
Read property of IDChangeLog* m_pChangeLog.
Definition: umldoc.cpp:2752
QObject * parent() const
Uml::ModelType::Enum guessContainer(UMLObject *o)
Try to guess the correct container folder type of an UMLObject.
Definition: model_utils.cpp:594
void mouseReleaseEvent(QMouseEvent *me)
Handler for mouse release event.
Definition: umllistview.cpp:270
int takeItem(UMLClassifierListItem *item)
Take and return a subordinate item from this classifier.
Definition: classifier.cpp:1194
int childCount() const
QString toString() const
void slotObjectCreated(UMLObject *object)
Creates a new list view item and connects the appropriate signals/slots.
Definition: umllistview.cpp:926
QString text(int column) const
UMLListViewItem::ListViewType convert_OT_LVT(UMLObject *o)
Convert an object's type to the equivalent list view type.
Definition: model_utils.cpp:1290
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:825
Definition: basictypes.h:42
Definition: umlobject.h:55
void removeEventFilter(QObject *obj)
UMLObjectList containedObjects()
Returns the list of objects contained in this package.
Definition: package.cpp:230
void mousePressEvent(QMouseEvent *me)
Handler for mouse press events.
Definition: umllistview.cpp:193
Definition: umlobject.h:69
void setDocument(UMLDoc *doc)
Sets the document this is associated with.
Definition: umllistview.cpp:1157
UMLListViewItem::ListViewType rootViewType(UMLListViewItem *item)
Determines the root listview type of the given UMLListViewItem.
Definition: umllistview.cpp:2065
Definition: listpopupmenu.h:260
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
bool loadChildrenFromXMI(UMLListViewItem *parent, QDomElement &element)
Definition: umllistview.cpp:2350
int startDragDistance()
Definition: umlobject.h:65
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Return the predefined root folder of the given type.
Definition: umldoc.cpp:2721
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
UMLListViewItem * createDiagramItem(UMLView *view)
Create a listview item for an existing diagram.
Definition: umllistview.cpp:1942
bool typeIsFolder(UMLListViewItem::ListViewType type)
Return true if the listview type is a logical, usecase or component folder.
Definition: model_utils.cpp:974
void childObjectAdded(UMLClassifierListItem *child, UMLClassifier *parent)
Adds a new operation, attribute or template item to a classifier, identical to childObjectAdded(obj) ...
Definition: umllistview.cpp:1092
bool hasNext() const
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.