Skip to content

Commit

Permalink
update vector layer sip bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Mar 20, 2013
1 parent 9672d1f commit fe6b4ad
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
25 changes: 21 additions & 4 deletions python/core/qgsvectorlayer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/core/qgsvectorlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit fe6b4ad

Please sign in to comment.