QGIS/python/gui/auto_generated/qgsattributeeditorcontext.sip.in

284 lines
6.3 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:
static const QMetaObject staticMetaObject;
2014-01-27 09:22:24 +01:00
public:
2017-05-23 14:36:52 +02:00
enum Mode
{
SingleEditMode,
AddFeatureMode,
MultiEditMode,
SearchMode,
AggregateSearchMode,
IdentifyMode
};
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 );
2018-04-02 22:46:47 +02:00
%Docstring
Sets distance area object, ``distanceArea``, for area/length calculations
2018-04-02 22:46:47 +02:00
.. seealso:: :py:func:`distanceArea`
2018-04-02 22:46:47 +02:00
.. versionadded:: 2.2
%End
2017-05-23 14:36:52 +02:00
const QgsDistanceArea &distanceArea() const;
%Docstring
Returns the distance area object used for area/length calculations.
.. seealso:: :py:func:`setDistanceArea`
.. versionadded:: 2.2
%End
2014-01-27 09:22:24 +01:00
void setMapCanvas( QgsMapCanvas *mapCanvas );
2018-04-02 22:46:47 +02:00
%Docstring
Sets the associated map canvas, ``mapCanvas``, (e.g. to zoom to related features).
2018-04-02 22:46:47 +02:00
.. seealso:: :py:func:`mapCanvas`
.. versionadded:: 3.2
%End
QgsMapCanvas *mapCanvas() const;
%Docstring
Returns the associated map canvas (e.g. to zoom to related features).
.. seealso:: :py:func:`setMapCanvas`
.. versionadded:: 3.2
%End
void setCadDockWidget( QgsAdvancedDigitizingDockWidget *cadDockWidget );
%Docstring
Sets the associated CAD dock widget, ``cadDockWidget``, (e.g. to be used in map tools).
.. note::
Unstable API. This method is unstable API and may be modified or removed at any time.
.. seealso:: :py:func:`cadDockWidget`
.. versionadded:: 3.10
%End
QgsAdvancedDigitizingDockWidget *cadDockWidget() const;
%Docstring
Returns the associated CAD dock widget (e.g. to be used in map tools).
.. note::
Unstable API. This method is unstable API and may be modified or removed at any time.
.. seealso:: :py:func:`setCadDockWidget`
.. versionadded:: 3.10
%End
void setVectorLayerTools( QgsVectorLayerTools *vlTools );
2018-04-02 22:46:47 +02:00
%Docstring
Sets the associated vector layer tools.
2018-04-02 22:46:47 +02:00
:param vlTools: vector layer tools
.. seealso:: :py:func:`vectorLayerTools`
.. versionadded:: 2.2
%End
const QgsVectorLayerTools *vectorLayerTools() const;
%Docstring
Returns the associated vector layer tools.
.. seealso:: :py:func:`setVectorLayerTools`
.. versionadded:: 2.2
%End
2014-01-27 09:22:24 +01:00
void setRelation( const QgsRelation &relation, RelationMode mode );
2018-04-02 22:46:47 +02:00
%Docstring
Set attribute relation and mode
:param relation: relation
:param mode: relation mode
.. seealso:: :py:func:`relation`
.. seealso:: :py:func:`relationMode`
.. versionadded:: 2.6
%End
const QgsRelation &relation() const;
%Docstring
Returns the attribute relation.
.. seealso:: :py:func:`setRelation`
.. seealso:: :py:func:`relationMode`
.. versionadded:: 2.6
%End
RelationMode relationMode() const;
%Docstring
Returns the attribute relation mode.
.. seealso:: :py:func:`setRelation`
.. seealso:: :py:func:`relation`
.. versionadded:: 2.6
%End
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
2019-02-26 19:54:09 +10:00
Returns ``True`` if the attribute editor should permit use of custom UI forms.
2017-12-15 10:36:55 -04:00
.. 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
2019-02-26 19:54:09 +10:00
:param allow: set to ``True`` to allow custom UI forms, or ``False`` to disable them and use default generated
QGIS forms
2017-12-15 10:36:55 -04:00
.. 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
QgsFeature formFeature() const;
%Docstring
Returns current feature from the currently edited form or table row
.. seealso:: :py:func:`setFormFeature`
.. versionadded:: 3.2
%End
void setFormFeature( const QgsFeature &feature );
%Docstring
Set current ``feature`` for the currently edited form or table row
.. seealso:: :py:func:`formFeature`
.. versionadded:: 3.2
%End
Mode attributeFormMode() const;
%Docstring
Returns current attributeFormMode
.. versionadded:: 3.4
%End
void setAttributeFormMode( const Mode &attributeFormMode );
%Docstring
Set ``attributeFormMode`` for the edited form
.. versionadded:: 3.4
%End
2018-09-11 18:36:44 +02:00
QString attributeFormModeString() const;
%Docstring
Returns given ``attributeFormMode`` as string
.. versionadded:: 3.4
%End
void setMainMessageBar( QgsMessageBar *messageBar );
%Docstring
Set current ``messageBar`` as the main message bar
.. versionadded:: 3.12
%End
QgsMessageBar *mainMessageBar();
%Docstring
Returns the main message bar
.. versionadded:: 3.12
%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 *
************************************************************************/