Skip to content
Permalink
Browse files
update vector layer sip bindings
  • Loading branch information
jef-n committed Mar 20, 2013
1 parent 9672d1f commit fe6b4ad46d3b211805e112b5452896cd2bebcefd
Showing with 21 additions and 5 deletions.
  1. +21 −4 python/core/qgsvectorlayer.sip
  2. +0 −1 src/core/qgsvectorlayer.h
@@ -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<QgsVectorOverlay*>& overlayList /Out/);
void vectorOverlays( QList<QgsVectorOverlay*>& overlayList /Out/ );

/**Returns the (first) overlay of a type, e.g. diagram or label
@note this method was added in version 1.1
@@ -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
*/

0 comments on commit fe6b4ad

Please sign in to comment.