Skip to content
Permalink
Browse files

Doxymentation for QgsVectorLayer signals

  • Loading branch information
m-kuhn committed Jul 2, 2016
1 parent 9446b20 commit ff1f9cf595e71ff8d9d8f748ebc78379e983aaee
Showing with 57 additions and 9 deletions.
  1. +31 −5 python/core/qgsvectorlayer.sip
  2. +26 −4 src/core/qgsvectorlayer.h
@@ -1586,20 +1586,46 @@ class QgsVectorLayer : QgsMapLayer
* This can be due to manually adding attributes or due to a join.
*/
void updatedFields();
void layerDeleted();

void attributeValueChanged( QgsFeatureId fid, int idx, const QVariant & );
void geometryChanged( QgsFeatureId fid, QgsGeometry &geom );
/**
* @deprecated use QObject::destroyed instead
*/
void layerDeleted() /Deprecated/;

/**
* Is emitted whenever an attribute value change is done in the edit buffer.
* Note that at this point the attribute change is not yet saved to the provider.
*
* @param fid The id of the changed feature
* @param idx The attribute index of the changed attribute
* @param value The new value of the attribute
*/
void attributeValueChanged( QgsFeatureId fid, int idx, const QVariant& value );

/**
* Is emitted whenever a geometry change is done in the edit buffer.
* Note that at this point the geometry change is not yet saved to the provider.
*
* @param fid The id of the changed feature
* @param geometry The new geometry
*/
void geometryChanged( QgsFeatureId fid, const QgsGeometry& geometry );

/** Signals emitted after committing changes */
/** This signal is emitted, when attributes are deleted from the provider */
void committedAttributesDeleted( const QString& layerId, const QgsAttributeList& deletedAttributes );
/** This signal is emitted, when attributes are added to the provider */
void committedAttributesAdded( const QString& layerId, const QList<QgsField>& addedAttributes );
/** This signal is emitted, when features are added to the provider */
void committedFeaturesAdded( const QString& layerId, const QgsFeatureList& addedFeatures );
/** This signal is emitted, when features are deleted from the provider */
void committedFeaturesRemoved( const QString& layerId, const QgsFeatureIds& deletedFeatureIds );
/** This signal is emitted, when attribute value changes are saved to the provider */
void committedAttributeValuesChanges( const QString& layerId, const QgsChangedAttributesMap& changedAttributesValues );
/** This signal is emitted, when geometry changes are saved to the provider */
void committedGeometriesChanges( const QString& layerId, const QgsGeometryMap& changedGeometries );

void saveLayerToProject();
/** Deprecated: This signal has never been emitted */
void saveLayerToProject() /Deprecated/;

/** Emitted when the font family defined for labeling layer is not found on system */
void labelingFontNotFound( QgsVectorLayer* layer, const QString& fontfamily );
@@ -1982,18 +1982,40 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
*/
void layerDeleted();

void attributeValueChanged( QgsFeatureId fid, int idx, const QVariant & );
void geometryChanged( QgsFeatureId fid, QgsGeometry &geom );
/**
* Is emitted whenever an attribute value change is done in the edit buffer.
* Note that at this point the attribute change is not yet saved to the provider.
*
* @param fid The id of the changed feature
* @param idx The attribute index of the changed attribute
* @param value The new value of the attribute
*/
void attributeValueChanged( QgsFeatureId fid, int idx, const QVariant& value );

/**
* Is emitted whenever a geometry change is done in the edit buffer.
* Note that at this point the geometry change is not yet saved to the provider.
*
* @param fid The id of the changed feature
* @param geometry The new geometry
*/
void geometryChanged( QgsFeatureId fid, const QgsGeometry& geometry );

/** Signals emitted after committing changes */
/** This signal is emitted, when attributes are deleted from the provider */
void committedAttributesDeleted( const QString& layerId, const QgsAttributeList& deletedAttributes );
/** This signal is emitted, when attributes are added to the provider */
void committedAttributesAdded( const QString& layerId, const QList<QgsField>& addedAttributes );
/** This signal is emitted, when features are added to the provider */
void committedFeaturesAdded( const QString& layerId, const QgsFeatureList& addedFeatures );
/** This signal is emitted, when features are deleted from the provider */
void committedFeaturesRemoved( const QString& layerId, const QgsFeatureIds& deletedFeatureIds );
/** This signal is emitted, when attribute value changes are saved to the provider */
void committedAttributeValuesChanges( const QString& layerId, const QgsChangedAttributesMap& changedAttributesValues );
/** This signal is emitted, when geometry changes are saved to the provider */
void committedGeometriesChanges( const QString& layerId, const QgsGeometryMap& changedGeometries );

void saveLayerToProject();
/** Deprecated: This signal has never been emitted */
Q_DECL_DEPRECATED void saveLayerToProject();

/** Emitted when the font family defined for labeling layer is not found on system */
void labelingFontNotFound( QgsVectorLayer* layer, const QString& fontfamily );

0 comments on commit ff1f9cf

Please sign in to comment.
You can’t perform that action at this time.