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, 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 () | |
Public Member Functions inherited from QMimeData | |
QMimeData () | |
~QMimeData () | |
void | clear () |
QVariant | colorData () const |
QByteArray | data (const QString &mimeType) const |
virtual QStringList | formats () const |
bool | hasColor () const |
virtual bool | hasFormat (const QString &mimeType) const |
bool | hasHtml () const |
bool | hasImage () const |
bool | hasText () const |
bool | hasUrls () const |
QString | html () const |
QVariant | imageData () const |
void | removeFormat (const QString &mimeType) |
void | setColorData (const QVariant &color) |
void | setData (const QString &mimeType, const QByteArray &data) |
void | setHtml (const QString &html) |
void | setImageData (const QVariant &image) |
void | setText (const QString &text) |
void | setUrls (const QList< QUrl > &urls) |
QString | text () const |
QList< QUrl > | urls () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Static Public Member Functions | |
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 | 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) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Additional Inherited Members | |
Protected Member Functions inherited from QMimeData | |
virtual QVariant | retrieveData (const QString &mimeType, QVariant::Type type) const |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
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
Definition at line 69 of file umldragdata.h.
Definition at line 68 of file umldragdata.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 45 of file umldragdata.cpp.
UMLDragData::UMLDragData | ( | UMLObjectList & | Objects, |
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 56 of file umldragdata.cpp.
|
explicit |
Constructor.
Definition at line 65 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 79 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 92 of file umldragdata.cpp.
|
explicit |
Constructor.
Definition at line 102 of file umldragdata.cpp.
UMLDragData::~UMLDragData | ( | ) |
Deconstructor.
Definition at line 110 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 256 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 297 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 411 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 479 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 604 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 349 of file umldragdata.cpp.
|
static |
Converts application/x-uml-clip[1-5] clip type to an integer.
Definition at line 820 of file umldragdata.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.