QGIS/python/gui/qgsattributeeditorcontext.sip.in

110 lines
3.0 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
2017-12-15 10:36:55 -04:00
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)
2017-05-23 14:36:52 +02:00
%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-11-11 15:22:19 +10:00
%Docstring
Constructor for QgsAttributeEditorContext
%End
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;
2014-01-27 09:22:24 +01:00
void setVectorLayerTools( QgsVectorLayerTools *vlTools );
const QgsVectorLayerTools *vectorLayerTools() const;
2014-01-27 09:22:24 +01:00
void setRelation( const QgsRelation &relation, RelationMode mode );
const QgsRelation &relation() const;
RelationMode relationMode() const;
FormMode formMode() const;
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the form mode.
.. seealso:: :py:func:`setFormMode`
2017-05-23 14:36:52 +02:00
%End
void setFormMode( FormMode mode );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the form mode.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param mode: form mode
.. seealso:: :py:func:`formMode`
2017-12-15 10:36:55 -04:00
2017-05-23 14:36:52 +02:00
.. versionadded:: 2.16
%End
bool allowCustomUi() const;
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns true if the attribute editor should permit use of custom UI forms.
.. seealso:: :py:func:`setAllowCustomUi`
2017-12-15 10:36:55 -04:00
2017-05-23 14:36:52 +02:00
.. versionadded:: 2.16
%End
void setAllowCustomUi( bool allow );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets whether the attribute editor should permit use of custom UI forms.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param allow: set to true to allow custom UI forms, or false to disable them and use default generated
QGIS forms
.. seealso:: :py:func:`allowCustomUi`
2017-12-15 10:36:55 -04:00
2017-05-23 14:36:52 +02:00
.. versionadded:: 2.16
%End
const QgsAttributeEditorContext *parentContext() const;
2017-05-23 14:36:52 +02:00
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 *
************************************************************************/