#include <qgsclipboard.h>
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. | |
| QgsClipboard::QgsClipboard | ( | ) |
| QgsClipboard::~QgsClipboard | ( | ) | [virtual] |
| 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 | ( | ) |
| void QgsClipboard::clear | ( | ) |
| 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().
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().
1.5.1