QgsClipboard Class Reference

#include <qgsclipboard.h>

List of all members.


Detailed Description

QGIS internal clipboard for features.

An internal clipboard is required so that features can be retained in their original fidelity.

The internal clipboard makes a copy of features that are presented to it, therefore the original objects can safely be destructed independent of the lifetime of the internal clipboard.

As this class matures it should also be able to accept CSV repesentations of features in and out of the system clipboard (QClipboard).

TODO: Make it work

Definition at line 48 of file qgsclipboard.h.

Public Member Functions

 QgsClipboard ()
 Constructor for the clipboard.
virtual ~QgsClipboard ()
 Destructor.
void replaceWithCopyOf (const QgsFieldMap &fields, QgsFeatureList &features)
QgsFeatureList copyOf ()
void clear ()
void insert (QgsFeature &feature)
bool empty ()

Private Attributes

QgsFeatureList mFeatureClipboard
 QGIS-internal vector feature clipboard.


Constructor & Destructor Documentation

QgsClipboard::QgsClipboard (  ) 

Constructor for the clipboard.

Definition at line 35 of file qgsclipboard.cpp.

QgsClipboard::~QgsClipboard (  )  [virtual]

Destructor.

Definition at line 40 of file qgsclipboard.cpp.


Member Function Documentation

void QgsClipboard::replaceWithCopyOf ( const QgsFieldMap fields,
QgsFeatureList features 
)

Definition at line 44 of file qgsclipboard.cpp.

References mFeatureClipboard, and QgsDebugMsg.

Referenced by QgisApp::editCopy(), and QgisApp::editCut().

QgsFeatureList QgsClipboard::copyOf (  ) 

Definition at line 111 of file qgsclipboard.cpp.

References mFeatureClipboard, and QgsDebugMsg.

void QgsClipboard::clear (  ) 

Definition at line 124 of file qgsclipboard.cpp.

References mFeatureClipboard, and QgsDebugMsg.

void QgsClipboard::insert ( QgsFeature feature  ) 

Definition at line 131 of file qgsclipboard.cpp.

References QgsGeometry::exportToWkt(), QgsFeature::geometry(), mFeatureClipboard, and QgsDebugMsg.

bool QgsClipboard::empty (  ) 

Definition at line 138 of file qgsclipboard.cpp.

References mFeatureClipboard.

Referenced by QgisApp::activateDeactivateLayerRelatedActions().


Member Data Documentation

QgsFeatureList QgsClipboard::mFeatureClipboard [private]

QGIS-internal vector feature clipboard.

Stored as values not pointers as each clipboard operation involves a deep copy anyway.

Definition at line 98 of file qgsclipboard.h.

Referenced by clear(), copyOf(), empty(), insert(), and replaceWithCopyOf().


The documentation for this class was generated from the following files:
Generated on Tue Oct 28 16:51:54 2008 for Quantum GIS API Documentation by  doxygen 1.5.1