Skip to content
Permalink
Browse files

Add python bindings for setEditorLayout

  • Loading branch information
m-kuhn committed Nov 8, 2012
1 parent 7db8601 commit d218d0a69f8d9ecfb98cad20fbbd571b61f04e0b
Showing with 13 additions and 0 deletions.
  1. +13 −0 python/core/qgsvectorlayer.sip
@@ -73,6 +73,13 @@ class QgsVectorLayer : QgsMapLayer
UuidGenerator, /* uuid generator - readonly and automatically intialized @added in 1.9 */
};

enum EditorLayout
{
GeneratedLayout,
TabLayout,
UiFileLayout,
};

struct RangeData
{
RangeData();
@@ -569,6 +576,12 @@ class QgsVectorLayer : QgsMapLayer
/**set edit type*/
void setEditType( int idx, EditType edit );

/**get editor layout**/
EditorLayout editorLayout();

/**set editor layout*/
void setEditorLayout( EditorLayout layout );

/** set string representing 'true' for a checkbox (added in 1.4) */
void setCheckedState( int idx, QString checked, QString notChecked );

0 comments on commit d218d0a

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