Skip to content

Commit 43278d7

Browse files
author
jef
committedAug 20, 2008
handling vector data geometry and attribute updates refactored
QgsVectorLayer: - move attribute part of editing to vector layer class and unify with geometry handling: * remove commitAttributeChanges(), addedFeatures(), deletedFeatureIds(), changedAttributes() and replace with changeAttributeValue(), deleteFeature(), addAttribute() and deleteAttribute() * add pendingFields(), pendingAttributeList(), pendingFeatureCount() * emit signals on start editing and commit, change of attribute values, adding/deleting of attributes and layer or feature removal (currently used in the attribute table) - new commitErrors() method to query errors from commitChanges() - replaced featuresInRectangle with select/getNextFeature combo - edit types added to support more input widgets and input constraints QgsFeature: - remove update aware ctor - unify geometry handling in ctors QgsVectorDataProvider: - add QVariant::Type to supportNativeTypes() QgisApp: - add instance() method to query QgisApp object - replace code at various place to use it instead of passing the pointer arround or searching it in the widget tree. - move toggleEditing() code from the legend here QgsAttributeTable/QgsAttributeTableDisplay: - move attribute table creation legend here - make attribute table dockable (from Tim) - most editing logic moved to QgsVectorLayer - adding/deleting attributes moved to QgsVectorLayerProperties QgsIdentifyResults: - add support for attribute editing when it edit mode QgsVectorLayerProperties: add a new tab to show attribute list: * start/stop editing * add/delete attributes * assign edit type to attributes (unique values, value map, ranges) QgsAttributeDialog: add support for attribute edit types: * selection from unique value render classes (combobox) * selection from unique values of existing features (combobox or line edits with completion) * spinboxes for ranges QgsPostgresProvider: - use read-only connection for cursors and read-write connection for updates - updated native types QgsOgrProvider: - remove unused references to GEOS geometry factory - updated native types git-svn-id: http://svn.osgeo.org/qgis/trunk@9092 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 03ef707 commit 43278d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+4003
-3728
lines changed
 

‎python/core/qgsfeature.sip

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ class QgsFeature
1313
//! Constructor
1414
QgsFeature(int id = 0, QString typeName = "" );
1515

16-
/** create a copy of this feature in its uncommitted state.
17-
To do this, you also pass in a reference to the feature's
18-
layer's uncommitted attribute and geometry changes.
19-
The resulting feature will have those changes applied.
20-
21-
This is useful in the cut/copy routine, where you'd
22-
want a copy of the "current" feature, not the on-disk feature.
23-
*/
24-
QgsFeature( const QgsFeature & rhs,
25-
const QMap<int, QMap<int, QVariant> >& changedAttributes,
26-
const QMap<int, QgsGeometry> & changedGeometries );
27-
2816
/** copy ctor needed due to internal pointer */
2917
QgsFeature(const QgsFeature & rhs );
3018

‎python/core/qgsvectordataprovider.sip

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ class QgsVectorDataProvider : QgsDataProvider
8888
*/
8989
virtual QGis::WKBTYPE geometryType() const = 0;
9090

91-
9291
/**
9392
* Number of features in the layer
9493
* @return long containing number of features
@@ -230,7 +229,7 @@ class QgsVectorDataProvider : QgsDataProvider
230229
QList<int> allAttributesList();
231230

232231
/**Returns the names of the numerical types*/
233-
const QSet<QString>& supportedNativeTypes() const;
232+
const QMap<QString,QVariant::Type> &supportedNativeTypes() const;
234233

235234
/**
236235
* Set whether provider should return also features that don't have

0 commit comments

Comments
 (0)
Please sign in to comment.