From fe6b4ad46d3b211805e112b5452896cd2bebcefd Mon Sep 17 00:00:00 2001 From: "Juergen E. Fischer" Date: Wed, 20 Mar 2013 13:35:56 +0100 Subject: [PATCH] update vector layer sip bindings --- python/core/qgsvectorlayer.sip | 25 +++++++++++++++++++++---- src/core/qgsvectorlayer.h | 1 - 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/python/core/qgsvectorlayer.sip b/python/core/qgsvectorlayer.sip index 636b6132b2bc..bf43aaec043b 100644 --- a/python/core/qgsvectorlayer.sip +++ b/python/core/qgsvectorlayer.sip @@ -619,8 +619,10 @@ class QgsVectorLayer : QgsMapLayer bool commitChanges(); const QStringList &commitErrors(); - /** Stop editing and discard the edits */ - bool rollBack(); + /** Stop editing and discard the edits + * @param deleteBuffer whether to delete editing buffer (added in 1.9) + */ + bool rollBack( bool deleteBuffer = true ); /**get edit type*/ EditType editType( int idx ); @@ -672,10 +674,25 @@ class QgsVectorLayer : QgsMapLayer **/ ValueRelationData &valueRelation( int idx ); + /**access date format + * @note added in 1.9 + */ + QString &dateFormat( int idx ); + + /**is edit widget editable + * @note added in 1.9 + **/ + bool fieldEditable( int idx ); + + /**set edit widget editable + * @note added in 1.9 + **/ + void setFieldEditable( int idx, bool editable ); + /**Adds a new overlay to this class. QgsVectorLayer takes ownership of the object @note this method was added in version 1.1 */ - void addOverlay( QgsVectorOverlay* overlay /Transfer/); + void addOverlay( QgsVectorOverlay* overlay /Transfer/ ); /**Removes all overlays of a given type @note this method was added in version 1.1 @@ -685,7 +702,7 @@ class QgsVectorLayer : QgsMapLayer /**Returns pointers to the overlays of this layer @note this method was added in version 1.1 */ - void vectorOverlays( QList& overlayList /Out/); + void vectorOverlays( QList& overlayList /Out/ ); /**Returns the (first) overlay of a type, e.g. diagram or label @note this method was added in version 1.1 diff --git a/src/core/qgsvectorlayer.h b/src/core/qgsvectorlayer.h index 4304ba805c8a..46626f388bbd 100644 --- a/src/core/qgsvectorlayer.h +++ b/src/core/qgsvectorlayer.h @@ -760,7 +760,6 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer **/ void setFieldEditable( int idx, bool editable ); - /**Adds a new overlay to this class. QgsVectorLayer takes ownership of the object @note this method was added in version 1.1 */