umbrello/umbrello
umlclipboard.cpp
Go to the documentation of this file.
298 void UMLClipboard::checkItemForCopyType(UMLListViewItem* item, bool & withDiagrams, bool & withObjects,
332 bool UMLClipboard::insertItemChildren(UMLListViewItem * item, UMLListViewItemList& selectedItems)
void setText(int column, const QString &text)
Changes the current text.
Definition: umllistviewitem.cpp:435
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:983
UMLTemplate * addTemplate(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an already created template.
Definition: classifier.cpp:1043
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:268
Definition: umlobject.h:60
bool typeIsClassifier(UMLListViewItem::ListViewType type)
Return true if the listview type is a classifier (Class, Entity, Enum)
Definition: model_utils.cpp:1003
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:2782
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
UMLObject * umlObject() const
Return the UMLObject associated with this instance.
Definition: umllistviewitem.cpp:309
UMLObject * umlObject() const
Returns the UMLObject set to represent.
Definition: widgetbase.cpp:113
bool typeIsDiagram(UMLListViewItem::ListViewType type)
Return true if the listview type is a diagram.
Definition: model_utils.cpp:1017
Uml::TextRole::Enum textRole() const
Return the role of the text widget.
Definition: floatingtextwidget.cpp:364
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:2875
Definition: umllistviewitem.h:57
void selectWidgets(qreal px, qreal py, qreal qx, qreal qy)
Selects all the widgets within an internally kept rectangle.
Definition: umlscene.cpp:1596
static bool decodeClip2(const QMimeData *mimeData, UMLObjectList &objects, UMLListViewItemList ¨ListViewItems, 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:357
This class holds information used by template classes, called paramaterised class in UML and a generi...
Definition: template.h:26
UMLObjectList umlObjects()
Returns a List of all the UMLObjects(Use Cases, Concepts and Actors) in the View. ...
Definition: umlscene.cpp:1752
Definition: umlobject.h:59
Definition: umlobject.h:61
Definition: umllistviewitem.h:56
QListIterator< AssociationWidget * > AssociationWidgetListIt
Definition: associationwidgetlist.h:21
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
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:136
UMLObjects, UMLListViewItems (not diagrams) and diagrams.
Definition: umlclipboard.h:50
This class represents an association inside a diagram.
Definition: associationwidget.h:50
void setUMLObject(UMLObject *obj)
Set the UMLObject associated with this instance.
Definition: umllistviewitem.cpp:299
Definition: basictypes.h:151
UMLView * findView(Uml::ID::Type id)
Finds a view (diagram) by the ID given to method.
Definition: umldoc.cpp:733
bool addOperation(UMLOperation *op, int position=-1)
Appends an operation to the classifier.
Definition: classifier.cpp:304
void setStartedCopy(bool startedCopy)
Set the variable m_bStartedCopy.
Definition: umllistview.cpp:2932
Definition: basictypes.h:82
ListViewType type() const
Returns the type this instance represents.
Definition: umllistviewitem.cpp:231
AssociationWidgetList selectedAssocs()
Returns a list with all the selected associations from the diagram.
Definition: umlscene.cpp:1875
bool assignNewIDs(UMLObject *obj)
Assigns an already created UMLObject a new ID.
Definition: umldoc.cpp:2635
bool addAssociation(AssociationWidget *pAssoc, bool isPasteOperation=false)
Adds an association to the view from the given data.
Definition: umlscene.cpp:2119
bool typeIsCanvasWidget(UMLListViewItem::ListViewType type)
Return true if the listview type also has a widget representation in diagrams.
Definition: model_utils.cpp:918
Only Attributes, Operations, Templates and EnumLiterals.
Definition: umlclipboard.h:53
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:1856
void selectWidgetsOfAssoc(AssociationWidget *a)
Selects all the widgets of the given association widget.
Definition: umlscene.cpp:1576
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:771
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:537
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Find a child object with the given name.
Definition: umlcanvasobject.cpp:240
UMLWidget * findWidget(Uml::ID::Type id)
Finds a widget with the given ID.
Definition: umlscene.cpp:1069
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
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
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:2743
Definition: basictypes.h:81
Definition: umlobject.h:58
This class contains the non-graphical information required for a UML Enum.
Definition: enum.h:28
UMLObject * findObjectById(Uml::ID::Type id)
Used to find a reference to a UMLObject by its ID.
Definition: umldoc.cpp:766
This class is used to set up information for an entityattribute.
Definition: entityattribute.h:25
Definition: widgetbase.h:53
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:603
QList< AssociationWidget * > AssociationWidgetList
Definition: associationwidgetlist.h:18
UMLListViewItem * findUMLObject(const UMLObject *p) const
Find an UMLObject in the listview.
Definition: umllistview.cpp:1140
bool addWidget(UMLWidget *pWidget, bool isPasteOperation=false)
Adds a widget to the view from the given data.
Definition: umlscene.cpp:1890
Definition: umllistviewitem.h:58
UMLAttribute * addAttribute(const QString &name, Uml::ID::Type id=Uml::ID::None)
Creates and adds an attribute for the class.
Definition: classifier.cpp:810
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:159
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:1137
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:712
virtual IDChangeLog * changeLog()
Read property of IDChangeLog* m_pChangeLog.
Definition: umldoc.cpp:2707
void beginPaste()
Opens a Paste session, deletes the old ChangeLog and creates an empty one.
Definition: umldoc.cpp:2716
QList< UMLListViewItem * > UMLListViewItemList
Definition: umllistviewitemlist.h:24
Definition: umlobject.h:68
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: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.