Skip to content

Commit

Permalink
Add python bindings for setEditorLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Nov 8, 2012
1 parent 7db8601 commit d218d0a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions python/core/qgsvectorlayer.sip
Expand Up @@ -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();
Expand Down Expand Up @@ -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 );

Expand Down

0 comments on commit d218d0a

Please sign in to comment.