QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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 ( 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 24 of file qgsnewauxiliaryfielddialog.cpp.

Member Function Documentation

void QgsNewAuxiliaryFieldDialog::accept ( )
overrideprotected

Definition at line 56 of file qgsnewauxiliaryfielddialog.cpp.

QgsPropertyDefinition QgsNewAuxiliaryFieldDialog::propertyDefinition ( ) const

Returns the underlying property definition.

Definition at line 102 of file qgsnewauxiliaryfielddialog.cpp.

Member Data Documentation

QgsVectorLayer* QgsNewAuxiliaryFieldDialog::mLayer = nullptr
protected

Definition at line 57 of file qgsnewauxiliaryfielddialog.h.

bool QgsNewAuxiliaryFieldDialog::mNameOnly = true
protected

Definition at line 58 of file qgsnewauxiliaryfielddialog.h.

QgsPropertyDefinition QgsNewAuxiliaryFieldDialog::mPropertyDefinition
protected

Definition at line 59 of file qgsnewauxiliaryfielddialog.h.


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