#include <umldragdata.h>
|  | 
|  | UMLDragData (UMLObjectList &Objects, QWidget *dragSource=nullptr) | 
|  | UMLDragData (UMLObjectList &Objects, UMLViewList &Diagrams, QWidget *dragSource=nullptr) | 
|  | UMLDragData (UMLListViewItemList &UMLListViewItems, QWidget *dragSource=nullptr) | 
|  | UMLDragData (UMLObjectList &Objects, UMLWidgetList &Widgets, AssociationWidgetList &Associations, QPixmap &PngImage, UMLScene *scene, QWidget *dragSource=nullptr) | 
|  | UMLDragData (UMLObjectList &Objects, int, QWidget *dragSource=nullptr) | 
|  | UMLDragData (QWidget *dragSource=nullptr) | 
|  | ~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=nullptr) | 
| 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 
◆ LvTypeAndID_It
◆ LvTypeAndID_List
◆ UMLDragData() [1/6]
  
  | 
        
          | UMLDragData::UMLDragData | ( | UMLObjectList & | objects, |  
          |  |  | QWidget * | dragSource = nullptr ) |  | explicit | 
 
 
◆ UMLDragData() [2/6]
For use when the user selects UML Object and Diagrams from the ListView to be copied, Mime type = "application/x-uml-clip2 
 
 
◆ UMLDragData() [3/6]
  
  | 
        
          | UMLDragData::UMLDragData | ( | UMLListViewItemList & | umlListViewItems, |  
          |  |  | QWidget * | dragSource = nullptr ) |  | explicit | 
 
 
◆ UMLDragData() [4/6]
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() [5/6]
      
        
          | UMLDragData::UMLDragData | ( | UMLObjectList & | objects, | 
        
          |  |  | int | , | 
        
          |  |  | QWidget * | dragSource = nullptr ) | 
      
 
For use when the user selects only Operations and/or Attributes from the ListView, Mime type = "application/x-uml-clip5 
 
 
◆ UMLDragData() [6/6]
  
  | 
        
          | UMLDragData::UMLDragData | ( | QWidget * | dragSource = nullptr | ) |  |  | explicit | 
 
 
◆ ~UMLDragData()
      
        
          | UMLDragData::~UMLDragData | ( |  | ) |  | 
      
 
 
◆ decodeClip1()
  
  | 
        
          | 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 
 
 
◆ decodeClip2()
For use when the user selects UML Object and Diagrams from the ListView to be copied, decodes Mime type = "application/x-uml-clip2 
 
 
◆ decodeClip3()
For use when the user selects UMLObjects from the ListView to be copied, decodes Mime type = "application/x-uml-clip3 
 
 
◆ decodeClip4()
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" 
 
 
◆ decodeClip5()
For use when the user selects only Attributes and/or Operations from the ListView * copied, decodes Mime type = "application/x-uml-clip5 
 
 
◆ decodeObjects()
  
  | 
        
          | bool UMLDragData::decodeObjects | ( | QDomNode & | objectsNode, |  
          |  |  | UMLObjectList & | objects, |  
          |  |  | bool | skipIfObjectExists = false ) |  | staticprivate | 
 
Decode UMLObjects from clip 
 
 
◆ decodeViews()
  
  | 
        
          | bool UMLDragData::decodeViews | ( | QDomNode & | umlviewsNode, |  
          |  |  | UMLViewList & | diagrams ) |  | staticprivate | 
 
 
◆ executeCreateWidgetCommand()
  
  | 
        
          | void UMLDragData::executeCreateWidgetCommand | ( | UMLWidget * | widget | ) |  |  | staticprivate | 
 
Execute the CmdCreateWidget undo command 
 
 
◆ getClip3TypeAndID()
  
  | 
        
          | 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. 
 
 
◆ getCodingType()
  
  | 
        
          | int UMLDragData::getCodingType | ( | const QMimeData * | mimeData | ) |  |  | static | 
 
Converts application/x-uml-clip[1-5] clip type to an integer 
 
 
◆ setUMLDataClip1()
For use when the user selects only UMLObjects from the ListView but no diagrams to be copied 
 
 
◆ setUMLDataClip2()
For use when the user selects UML Object and Diagrams from the ListView to be copied 
 
 
◆ setUMLDataClip3()
For use when the user selects only empty folders from the ListView to be copied. 
 
 
◆ setUMLDataClip4()
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 
 
 
◆ setUMLDataClip5()
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: