QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsSourceFieldsProperties Class Reference

A widget which displays information about vector layer fields, and allows some configuration of them. More...

#include <qgssourcefieldsproperties.h>

Inheritance diagram for QgsSourceFieldsProperties:

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

A widget which displays information about vector layer fields, and allows some configuration of them.

Definition at line 50 of file qgssourcefieldsproperties.h.

Member Enumeration Documentation

◆ AttrColumns

Enumerator
AttrIdCol 
AttrNameCol 
AttrAliasCol 
AttrTypeCol 
AttrTypeNameCol 
AttrLengthCol 
AttrPrecCol 
AttrCommentCol 
AttrConfigurationFlagsCol 
AttrColCount 

Definition at line 80 of file qgssourcefieldsproperties.h.

Constructor & Destructor Documentation

◆ QgsSourceFieldsProperties()

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

Definition at line 30 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 277 of file qgssourcefieldsproperties.cpp.

◆ apply()

void QgsSourceFieldsProperties::apply ( )

Definition at line 294 of file qgssourcefieldsproperties.cpp.

◆ init()

void QgsSourceFieldsProperties::init ( )

Definition at line 87 of file qgssourcefieldsproperties.cpp.

◆ loadRows()

void QgsSourceFieldsProperties::loadRows ( )

Definition at line 92 of file qgssourcefieldsproperties.cpp.

◆ setRow()

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

Definition at line 202 of file qgssourcefieldsproperties.cpp.

◆ toggleEditing

void QgsSourceFieldsProperties::toggleEditing ( )
signal

◆ updateButtons()

void QgsSourceFieldsProperties::updateButtons ( )
protected

Definition at line 422 of file qgssourcefieldsproperties.cpp.

Member Data Documentation

◆ mIndexedWidgets

QList<QTableWidgetItem *> QgsSourceFieldsProperties::mIndexedWidgets
protected

Definition at line 78 of file qgssourcefieldsproperties.h.

◆ mLayer

QgsVectorLayer* QgsSourceFieldsProperties::mLayer = nullptr
protected

Definition at line 73 of file qgssourcefieldsproperties.h.


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