umbrello API Documentation

UMLClipboard Class Reference

This class manages the uml's interaction with the KDE Clipboard. Clipboard management class. More...

#include <umlclipboard.h>

List of all members.

Public Types

enum  UMLCopyType {
  clip1 = 1, clip2 = 2, clip3 = 3, clip4 = 4,
  clip5 = 5
}
 Enumeration that codes the different types of UML clips. More...

Public Member Functions

 UMLClipboard ()
 Constructor.
virtual ~UMLClipboard ()
 Deconstructor.
bool paste (QMimeSource *Data)
 Inserts the clipboard's contents.
QMimeSource * copy (bool fromView=false)
 Copies the selected stuff from the list view or current diagram to a QMimeSource ready to be put in the clipboard.


Detailed Description

This class manages the uml's interaction with the KDE Clipboard. Clipboard management class.

It makes possible to copy stuff from one uml instance to another one.

Author:
Gustavo Madrigal Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 35 of file umlclipboard.h.


Member Enumeration Documentation

enum UMLClipboard::UMLCopyType
 

Enumeration that codes the different types of UML clips.

Enumeration values:
clip1  UMLObjects (not diagrams).
clip2  UMLObjects, UMLListViewItems (not diagrams) and diagrams.
clip3  UMLListViewItems (not diagrams).
clip4  UMLObjects, Associations and UMLWidgets.
clip5  Only Attributes and Operations.

Definition at line 64 of file umlclipboard.h.


Constructor & Destructor Documentation

UMLClipboard::UMLClipboard  ) 
 

Constructor.

Definition at line 37 of file umlclipboard.cpp.

References clip1.

UMLClipboard::~UMLClipboard  )  [virtual]
 

Deconstructor.

Definition at line 41 of file umlclipboard.cpp.


Member Function Documentation

bool UMLClipboard::paste QMimeSource *  Data  ) 
 

Inserts the clipboard's contents.

Parameters:
Data Pointer to the MIME format clipboard data.
Returns:
True for successful operation.

Definition at line 137 of file umlclipboard.cpp.

References UMLDoc::beginPaste(), UMLDoc::endPaste(), UMLDrag::getCodingType(), and UMLApp::getDocument().

Referenced by UMLApp::slotEditPaste().

QMimeSource * UMLClipboard::copy bool  fromView = false  ) 
 

Copies the selected stuff from the list view or current diagram to a QMimeSource ready to be put in the clipboard.

Returns:
Pointer to the created clipboard data.

Definition at line 44 of file umlclipboard.cpp.

References UMLView::checkSelections(), clip1, clip2, clip3, clip4, clip5, UMLView::copyAsImage(), UMLListView::findUMLObject(), UMLApp::getCurrentView(), UMLApp::getListView(), UMLView::getSelectedAssocs(), UMLListView::getSelectedItems(), UMLView::getSelectedWidgets(), UMLView::getType(), and UMLView::getUMLObjects().

Referenced by UMLApp::editCutCopy().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:06 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003