QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsNewAuxiliaryFieldDialog Class Reference

A dialog to create a new auxiliary field. More...

#include <qgsnewauxiliaryfielddialog.h>

Inheritance diagram for QgsNewAuxiliaryFieldDialog:
Inheritance graph
[legend]

Public Member Functions

 QgsNewAuxiliaryFieldDialog (const QgsPropertyDefinition &definition, QgsVectorLayer *layer, bool nameOnly=true, QWidget *parent=nullptr)
 Constructor. More...
 
QgsPropertyDefinition propertyDefinition () const
 Returns the underlying property definition. More...
 

Protected Member Functions

void accept () override
 

Protected Attributes

QgsVectorLayermLayer = nullptr
 
bool mNameOnly = true
 
QgsPropertyDefinition mPropertyDefinition
 

Detailed Description

A dialog to create a new auxiliary field.

Since
QGIS 3.0

Definition at line 33 of file qgsnewauxiliaryfielddialog.h.

Constructor & Destructor Documentation

◆ QgsNewAuxiliaryFieldDialog()

QgsNewAuxiliaryFieldDialog::QgsNewAuxiliaryFieldDialog ( const QgsPropertyDefinition definition,
QgsVectorLayer layer,
bool  nameOnly = true,
QWidget *  parent = nullptr 
)

Constructor.

Parameters
definitionThe property definition to use to create the auxiliary field
layerThe vector layer for which the auxiliary layer has to be created
nameOnlytrue to indicate that only the name widget is enabled
parentParent window

Definition at line 26 of file qgsnewauxiliaryfielddialog.cpp.

Member Function Documentation

◆ accept()

void QgsNewAuxiliaryFieldDialog::accept ( )
overrideprotected

Definition at line 47 of file qgsnewauxiliaryfielddialog.cpp.

◆ propertyDefinition()

QgsPropertyDefinition QgsNewAuxiliaryFieldDialog::propertyDefinition ( ) const

Returns the underlying property definition.

Definition at line 82 of file qgsnewauxiliaryfielddialog.cpp.

Member Data Documentation

◆ mLayer

QgsVectorLayer* QgsNewAuxiliaryFieldDialog::mLayer = nullptr
protected

Definition at line 57 of file qgsnewauxiliaryfielddialog.h.

◆ mNameOnly

bool QgsNewAuxiliaryFieldDialog::mNameOnly = true
protected

Definition at line 58 of file qgsnewauxiliaryfielddialog.h.

◆ mPropertyDefinition

QgsPropertyDefinition QgsNewAuxiliaryFieldDialog::mPropertyDefinition
protected

Definition at line 59 of file qgsnewauxiliaryfielddialog.h.


The documentation for this class was generated from the following files: