umbrello/umbrello
umlclipboard.cpp
Go to the documentation of this file.
336 void UMLClipboard::checkItemForCopyType(UMLListViewItem* item, bool & withDiagrams, bool & withObjects,
374 bool UMLClipboard::insertItemChildren(UMLListViewItem * item, UMLListViewItemList& selectedItems)
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
UMLObject * addEnumLiteral(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an enumliteral to the enum.
Definition: enum.cpp:132
bool typeIsClassifierList(UMLListViewItem::ListViewType type)
Return true if the listview type is an attribute, operation, or template.
Definition: model_utils.cpp:1007
UMLTemplate * addTemplate(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an already created template.
Definition: classifier.cpp:1051
static bool decodeClip1(const QMimeData *mimeData, UMLObjectList &objects)
For use when the user selects only UML Objects from the ListView but no diagrams to be copied...
Definition: umldragdata.cpp:256
void clear()
Definition: umlobject.h:61
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:1027
bool addUMLView(UMLView *pView)
Adds an already created UMLView to the document, it gets assigned a new ID, if its name is already in...
Definition: umldoc.cpp:2827
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
QByteArray data(const QString &mimeType) const
UMLObject * umlObject() const
Return the UMLObject associated with this instance.
Definition: umllistviewitem.cpp:309
bool isSelected() const
UMLObject * umlObject() const
Returns the UMLObject set to represent.
Definition: widgetbase.cpp:127
bool typeIsDiagram(UMLListViewItem::ListViewType type)
Return true if the listview type is a diagram.
Definition: model_utils.cpp:1121
QTreeWidgetItem * child(int index) const
static bool decodeClip2(const QMimeData *mimeData, UMLObjectList &objects, UMLViewList &diagrams)
For use when the user selects UML Object and Diagrams from the ListView to be copied, decodes Mime type = "application/x-uml-clip2.
Definition: umldragdata.cpp:297
Uml::TextRole::Enum textRole() const
Return the role of the text widget.
Definition: floatingtextwidget.cpp:379
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
void copyAsImage(QPixmap *&pix)
Returns the PNG picture of the paste operation.
Definition: umlscene.cpp:2680
void selectWidgets(qreal px, qreal py, qreal qx, qreal qy)
Selects all the widgets within an internally kept rectangle.
Definition: umlscene.cpp:1589
This class holds information used by template classes, called paramaterised class in UML and a generi...
Definition: template.h:26
Definition: umlobject.h:60
Definition: umlobject.h:62
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:910
UMLOperation * checkOperationSignature(const QString &name, UMLAttributeList opParams, UMLOperation *exemptOp=NULL)
Checks whether an operation is valid based on its signature - An operation is "valid" if the operatio...
Definition: classifier.cpp:141
UMLObjects, UMLListViewItems (not diagrams) and diagrams.
Definition: umlclipboard.h:49
This class represents an association inside a diagram.
Definition: associationwidget.h:50
Definition: basictypes.h:156
UMLView * findView(Uml::ID::Type id)
Finds a view (diagram) by the ID given to method.
Definition: umldoc.cpp:749
bool addOperation(UMLOperation *op, int position=-1)
Appends an operation to the classifier.
Definition: classifier.cpp:312
QString number(int n, int base)
Definition: basictypes.h:82
int count(const T &value) const
ListViewType type() const
Returns the type this instance represents.
Definition: umllistviewitem.cpp:231
void append(const T &value)
AssociationWidgetList selectedAssocs()
Returns a list with all the selected associations from the diagram.
Definition: umlscene.cpp:1866
bool assignNewIDs(UMLObject *obj)
Assigns an already created UMLObject a new ID.
Definition: umldoc.cpp:2680
bool addAssociation(AssociationWidget *pAssoc, bool isPasteOperation=false)
Adds an association to the view from the given data.
Definition: umlscene.cpp:1912
bool typeIsCanvasWidget(UMLListViewItem::ListViewType type)
Return true if the listview type also has a widget representation in diagrams.
Definition: model_utils.cpp:941
Only Attributes, Operations, Templates and EnumLiterals.
Definition: umlclipboard.h:52
bool isEmpty() const
UMLWidgetList selectedWidgetsExt(bool filterText=true)
Fills the List with all the selected widgets from the diagram The list can be filled with all the sel...
Definition: umlscene.cpp:1847
void selectWidgetsOfAssoc(AssociationWidget *a)
Selects all the widgets of the given association widget.
Definition: umlscene.cpp:1569
int removeAll(const T &value)
AssociationWidgetList & associationList()
Returns a reference to the association list.
Definition: umlscene.cpp:444
Definition: widgetbase.h:56
static int getCodingType(const QMimeData *mimeData)
Converts application/x-uml-clip[1-5] clip type to an integer.
Definition: umldragdata.cpp:820
static bool decodeClip3(const QMimeData *mimeData, UMLListViewItemList ¨ListViewItems, const UMLListView *parentListView=0)
For use when the user selects UMLObjects from the ListView to be copied, decodes Mime * type = "appli...
Definition: umldragdata.cpp:411
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Find a child object with the given name.
Definition: umlcanvasobject.cpp:240
QTreeWidgetItem * currentItem() const
UMLWidget * findWidget(Uml::ID::Type id)
Finds a widget with the given ID.
Definition: umlscene.cpp:1114
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
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:1770
UMLObject * addEntityAttribute(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an entityAttribute.
Definition: entity.cpp:305
Uml::ID::Type assignNewID(Uml::ID::Type oldID)
Assigns a New ID to an Object, and also logs the assignment to its internal ChangeLog.
Definition: umldoc.cpp:2788
Definition: basictypes.h:81
Definition: umlobject.h:59
This class contains the non-graphical information required for a UML Enum.
Definition: enum.h:28
This class is used to set up information for an entityattribute.
Definition: entityattribute.h:25
Uml::DiagramType::Enum diagramType(QString objType)
Definition: petaltree2uml.cpp:546
Definition: widgetbase.h:53
T takeFirst()
This sub-class adds copyInto and clone to the QList base class.
Definition: umlobjectlist.h:26
static bool decodeClip4(const QMimeData *mimeData, UMLObjectList &objects, UMLWidgetList &widgets, AssociationWidgetList &associations, Uml::DiagramType::Enum &dType)
For use when the user selects UML Objects from a Diagram.
Definition: umldragdata.cpp:479
void prepend(const T &value)
UMLAttribute * addAttribute(const QString &name, Uml::ID::Type id=Uml::ID::None)
Creates and adds an attribute for the class.
Definition: classifier.cpp:818
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
virtual void setID(Uml::ID::Type NewID)
Assigns a new Id to the object.
Definition: umlobject.cpp:158
This class provides encoding and decoding for the uml data that will be used in a drag and drop opera...
Definition: umldragdata.h:36
UMLTemplate * findTemplate(const QString &name)
Seeks the template parameter of the given name.
Definition: classifier.cpp:1145
static bool decodeClip5(const QMimeData *mimeData, UMLObjectList &objects, UMLClassifier *newParent)
For use when the user selects only Attributes and/or Operations from the ListView * copied...
Definition: umldragdata.cpp:604
QObject * parent() const
virtual IDChangeLog * changeLog()
Read property of IDChangeLog* m_pChangeLog.
Definition: umldoc.cpp:2752
void beginPaste()
Opens a Paste session, deletes the old ChangeLog and creates an empty one.
Definition: umldoc.cpp:2761
int childCount() const
Definition: umlobject.h:69
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:974
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.