QGIS API Documentation 3.41.0-Master (57ec4277f5e)
Loading...
Searching...
No Matches
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)
 
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 29 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 276 of file qgssourcefieldsproperties.cpp.

◆ apply()

void QgsSourceFieldsProperties::apply ( )

Definition at line 293 of file qgssourcefieldsproperties.cpp.

◆ init()

void QgsSourceFieldsProperties::init ( )

Definition at line 86 of file qgssourcefieldsproperties.cpp.

◆ loadRows()

void QgsSourceFieldsProperties::loadRows ( )

Definition at line 91 of file qgssourcefieldsproperties.cpp.

◆ setRow()

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

Definition at line 201 of file qgssourcefieldsproperties.cpp.

◆ toggleEditing

void QgsSourceFieldsProperties::toggleEditing ( )
signal

◆ updateButtons()

void QgsSourceFieldsProperties::updateButtons ( )
protected

Definition at line 421 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: