#include <umldragdata.h>
|
| UMLDragData (UMLObjectList &Objects, QWidget *dragSource=0) |
|
| UMLDragData (UMLObjectList &Objects, UMLViewList &Diagrams, QWidget *dragSource=0) |
|
| UMLDragData (UMLListViewItemList &UMLListViewItems, QWidget *dragSource=0) |
|
| UMLDragData (UMLObjectList &Objects, UMLWidgetList &Widgets, AssociationWidgetList &Associations, QPixmap &PngImage, UMLScene *scene, QWidget *dragSource=0) |
|
| UMLDragData (UMLObjectList &Objects, int, QWidget *dragSource=0) |
|
| UMLDragData (QWidget *dragSource=0) |
|
| ~UMLDragData () |
|
|
static bool | decodeClip1 (const QMimeData *mimeData, UMLObjectList &objects) |
|
static bool | decodeClip2 (const QMimeData *mimeData, UMLObjectList &objects, UMLViewList &diagrams) |
|
static bool | decodeClip3 (const QMimeData *mimeData, UMLListViewItemList ¨ListViewItems, const UMLListView *parentListView=0) |
|
static bool | getClip3TypeAndID (const QMimeData *mimeData, LvTypeAndID_List &typeAndIdList) |
|
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 int | getCodingType (const QMimeData *mimeData) |
|
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.
- Author
- Gustavo Madrigal, Jonathan Riddell (XMI conversion) Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org
UMLDragData::UMLDragData |
( |
UMLObjectList & |
objects, |
|
|
QWidget * |
dragSource = 0 |
|
) |
| |
|
explicit |
For use when the user selects UML Object and Diagrams from the ListView to be copied, Mime type = "application/x-uml-clip2
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
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
UMLDragData::UMLDragData |
( |
QWidget * |
dragSource = 0 | ) |
|
|
explicit |
UMLDragData::~UMLDragData |
( |
| ) |
|
bool UMLDragData::decodeClip1 |
( |
const QMimeData * |
mimeData, |
|
|
UMLObjectList & |
objects |
|
) |
| |
|
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
For use when the user selects UML Object and Diagrams from the ListView to be copied, decodes Mime type = "application/x-uml-clip2
For use when the user selects UMLObjects from the ListView to be copied, decodes Mime * type = "application/x-uml-clip3
For use when the user selects UML Objects from a Diagram. The Selected widgets and the relationships between only selected widgets will be copied
decodes Mime type = "application/x-uml-clip4"
For use when the user selects only Attributes and/or Operations from the ListView * copied, decodes Mime type = "application/x-uml-clip5
bool UMLDragData::decodeObjects |
( |
QDomNode & |
objectsNode, |
|
|
UMLObjectList & |
objects, |
|
|
bool |
skipIfObjectExists = false |
|
) |
| |
|
staticprivate |
Decode UMLObjects from clip
bool UMLDragData::decodeViews |
( |
QDomNode & |
umlviewsNode, |
|
|
UMLViewList & |
diagrams |
|
) |
| |
|
staticprivate |
void UMLDragData::executeCreateWidgetCommand |
( |
UMLWidget * |
widget | ) |
|
|
staticprivate |
Execute the CmdCreateWidget undo command
bool UMLDragData::getClip3TypeAndID |
( |
const QMimeData * |
mimeData, |
|
|
LvTypeAndID_List & |
typeAndIdList |
|
) |
| |
|
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.
int UMLDragData::getCodingType |
( |
const QMimeData * |
mimeData | ) |
|
|
static |
Converts application/x-uml-clip[1-5] clip type to an integer
For use when the user selects only UMLObjects from the ListView but no diagrams to be copied
For use when the user selects UML Object and Diagrams from the ListView to be copied
For use when the user selects only empty folders from the ListView to be copied.
For use when the user selects UML Objects from a Diagram. The Selected widgets and the relationships between only selected widgets will be copied and also its respective ListView Items
For use when the user selects only Attributes and/or Operation from the ListView
The documentation for this class was generated from the following files: