umbrello/umbrello
#include <umldragdata.h>
Classes | |
struct | LvTypeAndID |
Public Types | |
typedef QListIterator < LvTypeAndID * > | LvTypeAndID_It |
typedef QList< LvTypeAndID * > | LvTypeAndID_List |
Public Member Functions | |
UMLDragData (UMLObjectList &Objects, QWidget *dragSource=0) | |
UMLDragData (UMLObjectList &Objects, UMLListViewItemList &UMLListViewItems, UMLViewList &Diagrams, QWidget *dragSource=0) | |
UMLDragData (UMLListViewItemList &UMLListViewItems, QWidget *dragSource=0) | |
UMLDragData (UMLObjectList &Objects, UMLWidgetList &Widgets, AssociationWidgetList &Associations, QPixmap &PngImage, Uml::DiagramType::Enum dType, QWidget *dragSource=0) | |
UMLDragData (UMLObjectList &Objects, int, QWidget *dragSource=0) | |
UMLDragData (QWidget *dragSource=0) | |
~UMLDragData () | |
Static Public Member Functions | |
static bool | decodeClip1 (const QMimeData *mimeData, UMLObjectList &objects) |
static bool | decodeClip2 (const QMimeData *mimeData, UMLObjectList &objects, UMLListViewItemList ¨ListViewItems, UMLViewList &diagrams) |
static bool | decodeClip3 (const QMimeData *mimeData, UMLListViewItemList ¨ListViewItems, const UMLListView *parentListView=0) |
static bool | decodeClip4 (const QMimeData *mimeData, UMLObjectList &objects, UMLWidgetList &widgets, AssociationWidgetList &associations, Uml::DiagramType::Enum &dType) |
static bool | decodeClip5 (const QMimeData *mimeData, UMLObjectList &objects, UMLClassifier *newParent) |
static bool | getClip3TypeAndID (const QMimeData *mimeData, LvTypeAndID_List &typeAndIdList) |
static int | getCodingType (const QMimeData *mimeData) |
Detailed Description
This class provides encoding and decoding for the uml data that will be used in a drag and drop operation or in a copy or paste operation.
Definition at line 36 of file umldragdata.h.
Member Typedef Documentation
typedef QListIterator<LvTypeAndID*> UMLDragData::LvTypeAndID_It |
Definition at line 72 of file umldragdata.h.
typedef QList<LvTypeAndID*> UMLDragData::LvTypeAndID_List |
Definition at line 71 of file umldragdata.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 39 of file umldragdata.cpp.
UMLDragData::UMLDragData | ( | UMLObjectList & | Objects, |
UMLListViewItemList & | UMLListViewItems, | ||
UMLViewList & | Diagrams, | ||
QWidget * | dragSource = 0 |
||
) |
For use when the user selects UML Object and Diagrams from the ListView to be copied, Mime type = "application/x-uml-clip2.
Definition at line 50 of file umldragdata.cpp.
|
explicit |
Constructor.
Definition at line 60 of file umldragdata.cpp.
UMLDragData::UMLDragData | ( | UMLObjectList & | objects, |
UMLWidgetList & | widgets, | ||
AssociationWidgetList & | associationDatas, | ||
QPixmap & | pngImage, | ||
Uml::DiagramType::Enum | dType, | ||
QWidget * | dragSource = 0 |
||
) |
For use when the user selects UMLObjects from a Diagram.
The Selected widgets and the relationships between only selected widgets will be copied and also its respective ListView Items, Mime type = "application/x-uml-clip4
Definition at line 74 of file umldragdata.cpp.
UMLDragData::UMLDragData | ( | UMLObjectList & | Objects, |
int | , | ||
QWidget * | dragSource = 0 |
||
) |
For use when the user selects only Operations and/or Attributes from the ListView, Mime type = "application/x-uml-clip5.
Definition at line 87 of file umldragdata.cpp.
|
explicit |
Constructor.
Definition at line 97 of file umldragdata.cpp.
UMLDragData::~UMLDragData | ( | ) |
Deconstructor.
Definition at line 105 of file umldragdata.cpp.
Member Function Documentation
|
static |
For use when the user selects only UML Objects from the ListView but no diagrams to be copied, decodes Mime type = "application/x-uml-clip1.
Definition at line 268 of file umldragdata.cpp.
|
static |
For use when the user selects UML Object and Diagrams from the ListView to be copied, decodes Mime type = "application/x-uml-clip2.
Definition at line 357 of file umldragdata.cpp.
|
static |
For use when the user selects UMLObjects from the ListView to be copied, decodes Mime * type = "application/x-uml-clip3.
Definition at line 537 of file umldragdata.cpp.
|
static |
For use when the user selects UML Objects from a Diagram.
The Selected widegets and the relationships between only selected widgets will be copied
decodes Mime type = "application/x-uml-clip4"
Definition at line 603 of file umldragdata.cpp.
|
static |
For use when the user selects only Attributes and/or Operations from the ListView * copied, decodes Mime type = "application/x-uml-clip5.
Definition at line 712 of file umldragdata.cpp.
|
static |
Return just the LvTypeAndID of a Clip3.
- Parameters
-
mimeData The encoded source. typeAndIdList The LvTypeAndID_List decoded from the source.
- Returns
- True if decoding was successful.
Definition at line 474 of file umldragdata.cpp.
|
static |
Converts application/x-uml-clip[1-5] clip type to an integer.
Definition at line 771 of file umldragdata.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.