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

#include <qgssourcefieldsproperties.h>

Inheritance diagram for QgsSourceFieldsProperties:
Inheritance graph
[legend]

Signals

void toggleEditing ()
 

Public Member Functions

 QgsSourceFieldsProperties (QgsVectorLayer *layer, QWidget *parent=nullptr)
 
bool addAttribute (const QgsField &field)
 Adds an attribute to the table (but does not commit it yet) More...
 
void apply ()
 
void init ()
 
void loadRows ()
 
void setRow (int row, int idx, const QgsField &field)
 

Protected Types

enum  AttrColumns {
  AttrIdCol = 0 , AttrNameCol , AttrAliasCol , AttrTypeCol ,
  AttrTypeNameCol , AttrLengthCol , AttrPrecCol , AttrCommentCol ,
  AttrConfigurationFlagsCol , AttrColCount
}
 

Protected Member Functions

void updateButtons ()
 

Protected Attributes

QList< QTableWidgetItem * > mIndexedWidgets
 
QgsVectorLayermLayer = nullptr
 

Detailed Description

Definition at line 47 of file qgssourcefieldsproperties.h.

Member Enumeration Documentation

◆ AttrColumns

Enumerator
AttrIdCol 
AttrNameCol 
AttrAliasCol 
AttrTypeCol 
AttrTypeNameCol 
AttrLengthCol 
AttrPrecCol 
AttrCommentCol 
AttrConfigurationFlagsCol 
AttrColCount 

Definition at line 77 of file qgssourcefieldsproperties.h.

Constructor & Destructor Documentation

◆ QgsSourceFieldsProperties()

QgsSourceFieldsProperties::QgsSourceFieldsProperties ( QgsVectorLayer layer,
QWidget *  parent = nullptr 
)
explicit

Definition at line 28 of file qgssourcefieldsproperties.cpp.

Member Function Documentation

◆ addAttribute()

bool QgsSourceFieldsProperties::addAttribute ( const QgsField field)

Adds an attribute to the table (but does not commit it yet)

Parameters
fieldthe field to add
Returns
false in case of a name conflict, true in case of success

Definition at line 274 of file qgssourcefieldsproperties.cpp.

◆ apply()

void QgsSourceFieldsProperties::apply ( )

Definition at line 291 of file qgssourcefieldsproperties.cpp.

◆ init()

void QgsSourceFieldsProperties::init ( )

Definition at line 83 of file qgssourcefieldsproperties.cpp.

◆ loadRows()

void QgsSourceFieldsProperties::loadRows ( )

Definition at line 88 of file qgssourcefieldsproperties.cpp.

◆ setRow()

void QgsSourceFieldsProperties::setRow ( int  row,
int  idx,
const QgsField field 
)

Definition at line 197 of file qgssourcefieldsproperties.cpp.

◆ toggleEditing

void QgsSourceFieldsProperties::toggleEditing ( )
signal

◆ updateButtons()

void QgsSourceFieldsProperties::updateButtons ( )
protected

Definition at line 418 of file qgssourcefieldsproperties.cpp.

Member Data Documentation

◆ mIndexedWidgets

QList<QTableWidgetItem *> QgsSourceFieldsProperties::mIndexedWidgets
protected

Definition at line 75 of file qgssourcefieldsproperties.h.

◆ mLayer

QgsVectorLayer* QgsSourceFieldsProperties::mLayer = nullptr
protected

Definition at line 70 of file qgssourcefieldsproperties.h.


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