|
QGIS API Documentation 3.42.0-Münster (feb80233002)
|
Contains settings which reflect the context in which vector layer tool operations should consider. More...
#include <qgsvectorlayertoolscontext.h>
Public Member Functions | |
| QgsVectorLayerToolsContext ()=default | |
| QgsVectorLayerToolsContext (const QgsVectorLayerToolsContext &other) | |
| const QgsExpressionContextScope * | additionalExpressionContextScope () const |
| Returns an additional expression context scope to be made available when calculating expressions. | |
| QgsExpressionContext * | expressionContext () const |
| Returns the optional expression context used by the vector layer tools. | |
| bool | hideParent () const |
| Returns whether the parent widget should be hidden when showing tools' dialogues. | |
| QgsVectorLayerToolsContext & | operator= (const QgsVectorLayerToolsContext &other) |
| QWidget * | parentWidget () const |
| Returns the widget which should be parented to tools dialogues. | |
| void | setAdditionalExpressionContextScope (const QgsExpressionContextScope *scope) |
| Sets an additional expression context scope to be made available when calculating expressions. | |
| void | setExpressionContext (const QgsExpressionContext *context) |
| Sets the optional expression context used by the vector layer tools. | |
| void | setHideParent (bool hide) |
| Sets whether the parent widget should be hidden when showing tools' dialogues. | |
| void | setParentWidget (QWidget *parent) |
| Sets the widget which should be parented to tools' dialogues. | |
| void | setShowModal (bool modal) |
| Sets whether tools' dialogues should be modal. | |
| bool | showModal () const |
| Returns whether tools' dialogues should be modal. | |
Contains settings which reflect the context in which vector layer tool operations should consider.
Definition at line 31 of file qgsvectorlayertoolscontext.h.
|
default |
| QgsVectorLayerToolsContext::QgsVectorLayerToolsContext | ( | const QgsVectorLayerToolsContext & | other | ) |
Definition at line 19 of file qgsvectorlayertoolscontext.cpp.
| const QgsExpressionContextScope * QgsVectorLayerToolsContext::additionalExpressionContextScope | ( | ) | const |
Returns an additional expression context scope to be made available when calculating expressions.
Definition at line 75 of file qgsvectorlayertoolscontext.cpp.
| QgsExpressionContext * QgsVectorLayerToolsContext::expressionContext | ( | ) | const |
Returns the optional expression context used by the vector layer tools.
Definition at line 62 of file qgsvectorlayertoolscontext.cpp.
|
inline |
Returns whether the parent widget should be hidden when showing tools' dialogues.
Definition at line 92 of file qgsvectorlayertoolscontext.h.
| QgsVectorLayerToolsContext & QgsVectorLayerToolsContext::operator= | ( | const QgsVectorLayerToolsContext & | other | ) |
Definition at line 34 of file qgsvectorlayertoolscontext.cpp.
|
inline |
Returns the widget which should be parented to tools dialogues.
Definition at line 71 of file qgsvectorlayertoolscontext.h.
| void QgsVectorLayerToolsContext::setAdditionalExpressionContextScope | ( | const QgsExpressionContextScope * | scope | ) |
Sets an additional expression context scope to be made available when calculating expressions.
| scope | additional scope. Ownership is not transferred and a copy will be made. |
Definition at line 67 of file qgsvectorlayertoolscontext.cpp.
| void QgsVectorLayerToolsContext::setExpressionContext | ( | const QgsExpressionContext * | context | ) |
Sets the optional expression context used by the vector layer tools.
| context | expression context pointer. Ownership is not transferred. |
Definition at line 54 of file qgsvectorlayertoolscontext.cpp.
|
inline |
Sets whether the parent widget should be hidden when showing tools' dialogues.
Definition at line 97 of file qgsvectorlayertoolscontext.h.
|
inline |
Sets the widget which should be parented to tools' dialogues.
| parent | the widget actign as parent |
Definition at line 77 of file qgsvectorlayertoolscontext.h.
|
inline |
Sets whether tools' dialogues should be modal.
Definition at line 87 of file qgsvectorlayertoolscontext.h.
|
inline |
Returns whether tools' dialogues should be modal.
Definition at line 82 of file qgsvectorlayertoolscontext.h.