QGIS API Documentation 3.38.0-Grenoble (exported)
|
Contains settings which reflect the context in which vector layer tool operations should consider. More...
#include <qgsvectorlayertoolscontext.h>
Public Member Functions | |
QgsVectorLayerToolsContext ()=default | |
Constructor for QgsVectorLayerToolsContext. | |
QgsVectorLayerToolsContext (const QgsVectorLayerToolsContext &other) | |
Copy constructor. | |
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 |
Constructor for QgsVectorLayerToolsContext.
QgsVectorLayerToolsContext::QgsVectorLayerToolsContext | ( | const QgsVectorLayerToolsContext & | other | ) |
Copy constructor.
other | source QgsVectorLayerToolsContext |
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 100 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 79 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 105 of file qgsvectorlayertoolscontext.h.
|
inline |
Sets the widget which should be parented to tools' dialogues.
parent | the widget actign as parent |
Definition at line 85 of file qgsvectorlayertoolscontext.h.
|
inline |
Sets whether tools' dialogues should be modal.
Definition at line 95 of file qgsvectorlayertoolscontext.h.
|
inline |
Returns whether tools' dialogues should be modal.
Definition at line 90 of file qgsvectorlayertoolscontext.h.