File tree 3 files changed +33
-1
lines changed
3 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 1
1
2
2
3
+ // key = field index, value = field value
4
+ typedef QMap<int, QVariant> QgsAttributeMap;
5
+
6
+ // key = feature id, value = changed attributes
7
+ typedef QMap<int, QMap<int, QVariant> > QgsChangedAttributesMap;
8
+
9
+ // key = feature id, value = changed geometry
10
+ typedef QMap<int, QgsGeometry> QgsGeometryMap;
11
+
12
+ // key = field index, value = field name
13
+ typedef QMap<int, QString> QgsFieldNameMap;
14
+
15
+ typedef QList<QgsFeature> QgsFeatureList;
16
+
17
+
3
18
class QgsFeature
4
19
{
5
20
%TypeHeaderCode
Original file line number Diff line number Diff line change
1
+
2
+ typedef QList<int> QgsAttributeList;
3
+ typedef QSet<int> QgsFeatureIds;
4
+ typedef QSet<int> QgsAttributeIds;
5
+
6
+
1
7
class QgsVectorLayer : QgsMapLayer
2
8
{
3
9
%TypeHeaderCode
@@ -574,6 +580,16 @@ signals:
574
580
575
581
void attributeValueChanged(int fid, int idx, const QVariant &);
576
582
583
+ /** Signals emitted after committing changes
584
+ \note added in v1.6 */
585
+ void committedAttributesDeleted( const QString& layerId, const QgsAttributeIds& deletedAttributeIds );
586
+ void committedAttributesAdded( const QString& layerId, const QList<QgsField>& addedAttributes );
587
+ void committedFeaturesAdded( const QString& layerId, const QgsFeatureList& addedFeatures );
588
+ void committedFeaturesRemoved( const QString& layerId, const QgsFeatureIds& deletedFeatureIds );
589
+ void committedAttributeValuesChanges( const QString& layerId, const QgsChangedAttributesMap& changedAttributesValues );
590
+ void committedGeometriesChanges( const QString& layerId, const QgsGeometryMap& changedGeometries );
591
+
592
+
577
593
private: // Private methods
578
594
579
595
/** vector layers are not copyable */
Original file line number Diff line number Diff line change @@ -629,7 +629,8 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
629
629
630
630
void attributeValueChanged ( int fid, int idx, const QVariant & );
631
631
632
- /* * Signals emitted after committing changes */
632
+ /* * Signals emitted after committing changes
633
+ \note added in v1.6 */
633
634
void committedAttributesDeleted ( const QString& layerId, const QgsAttributeIds& deletedAttributeIds );
634
635
void committedAttributesAdded ( const QString& layerId, const QList<QgsField>& addedAttributes );
635
636
void committedFeaturesAdded ( const QString& layerId, const QgsFeatureList& addedFeatures );
You can’t perform that action at this time.
0 commit comments