QGIS/python/gui/qgsattributeeditorcontext.sip

116 lines
3.2 KiB
Plaintext
Raw Normal View History

2017-05-23 14:36:52 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsattributeeditorcontext.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2014-01-27 09:22:24 +01:00
class QgsAttributeEditorContext
{
2017-05-23 14:36:52 +02:00
%Docstring
This class contains context information for attribute editor widgets.
It will be passed to embedded widgets whenever this occurs (e.g. when
showing an embedded form due to relations)
%End
2014-01-27 09:22:24 +01:00
%TypeHeaderCode
#include "qgsattributeeditorcontext.h"
%End
public:
2017-05-23 14:36:52 +02:00
enum RelationMode
{
2017-05-23 14:36:52 +02:00
Undefined,
Multiple,
Single
};
enum FormMode
{
Embed,
StandaloneDialog,
Popup
};
2014-01-27 09:22:24 +01:00
QgsAttributeEditorContext();
2017-05-23 14:36:52 +02:00
QgsAttributeEditorContext( const QgsAttributeEditorContext &parentContext, FormMode formMode );
2017-05-23 14:36:52 +02:00
QgsAttributeEditorContext( const QgsAttributeEditorContext &parentContext, const QgsRelation &relation, RelationMode relationMode, FormMode widgetMode );
2015-02-03 02:21:52 +01:00
void setDistanceArea( const QgsDistanceArea &distanceArea );
2017-05-23 14:36:52 +02:00
const QgsDistanceArea &distanceArea() const;
2017-05-23 14:36:52 +02:00
%Docstring
:rtype: QgsDistanceArea
%End
2014-01-27 09:22:24 +01:00
void setVectorLayerTools( QgsVectorLayerTools *vlTools );
const QgsVectorLayerTools *vectorLayerTools() const;
2017-05-23 14:36:52 +02:00
%Docstring
:rtype: QgsVectorLayerTools
%End
2014-01-27 09:22:24 +01:00
void setRelation( const QgsRelation &relation, RelationMode mode );
const QgsRelation &relation() const;
2017-05-23 14:36:52 +02:00
%Docstring
:rtype: QgsRelation
%End
RelationMode relationMode() const;
2017-05-23 14:36:52 +02:00
%Docstring
:rtype: RelationMode
%End
FormMode formMode() const;
2017-05-23 14:36:52 +02:00
%Docstring
Returns the form mode.
.. seealso:: setFormMode()
:rtype: FormMode
%End
void setFormMode( FormMode mode );
2017-05-23 14:36:52 +02:00
%Docstring
Sets the form mode.
\param mode form mode
.. seealso:: formMode()
.. versionadded:: 2.16
%End
bool allowCustomUi() const;
2017-05-23 14:36:52 +02:00
%Docstring
Returns true if the attribute editor should permit use of custom UI forms.
.. seealso:: setAllowCustomUi()
.. versionadded:: 2.16
:rtype: bool
%End
void setAllowCustomUi( bool allow );
2017-05-23 14:36:52 +02:00
%Docstring
Sets whether the attribute editor should permit use of custom UI forms.
\param allow set to true to allow custom UI forms, or false to disable them and use default generated
QGIS forms
.. seealso:: allowCustomUi()
.. versionadded:: 2.16
%End
const QgsAttributeEditorContext *parentContext() const;
2017-05-23 14:36:52 +02:00
%Docstring
:rtype: QgsAttributeEditorContext
%End
2014-01-27 09:22:24 +01:00
};
2017-05-23 14:36:52 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsattributeeditorcontext.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/