Add python bindings for setEditorLayout

This commit is contained in:
Matthias Kuhn 2012-11-08 08:56:01 +01:00
parent 7db8601503
commit d218d0a69f

View File

@ -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 );