Skip to content

Class AttributeFormModelBase

ClassList > AttributeFormModelBase

Inherits the following classes: QStandardItemModel

Public Signals

Type Name
signal void constraintsHardValidChanged
signal void constraintsSoftValidChanged
signal void featureChanged
signal void featureModelChanged
signal void hasRemembranceChanged
signal void hasTabsChanged

Public Functions

Type Name
AttributeFormModelBase (QObject * parent=nullptr)
void activateAllRememberValues ()
Activate all available value that can be remembered and reused.
void applyFeatureModel ()
Applies feature model data such as attribute values, constraints, visibility to the attribute form model.
void applyParentDefaultValues ()
Applies default values linked to a parent feature.
void applyRelationshipDefaultValues ()
Applies default values linked to relationships.
QVariant attribute (const QString & name)
bool constraintsHardValid () const
bool constraintsSoftValid () const
bool create ()
void deactivateAllRememberValues ()
Deactivate all available value that can be remembered and reused.
bool deleteFeature ()
FeatureModel * featureModel () const
bool hasRemembrance () const
bool hasTabs () const
QHash< int, QByteArray > roleNames () override const
bool save ()
bool setData (const QModelIndex & index, const QVariant & value, int role=Qt::EditRole) override
void setFeatureModel (FeatureModel * featureModel)
void setHasRemembrance (bool hasRemembrance)
void setHasTabs (bool hasTabs)

Public Signals Documentation

signal constraintsHardValidChanged

void AttributeFormModelBase::constraintsHardValidChanged;

signal constraintsSoftValidChanged

void AttributeFormModelBase::constraintsSoftValidChanged;

signal featureChanged

void AttributeFormModelBase::featureChanged;

signal featureModelChanged

void AttributeFormModelBase::featureModelChanged;

signal hasRemembranceChanged

void AttributeFormModelBase::hasRemembranceChanged;

signal hasTabsChanged

void AttributeFormModelBase::hasTabsChanged;

Public Functions Documentation

function AttributeFormModelBase

explicit AttributeFormModelBase::AttributeFormModelBase (
    QObject * parent=nullptr
) 

function activateAllRememberValues

Activate all available value that can be remembered and reused.

void AttributeFormModelBase::activateAllRememberValues () 

function applyFeatureModel

Applies feature model data such as attribute values, constraints, visibility to the attribute form model.

void AttributeFormModelBase::applyFeatureModel () 

function applyParentDefaultValues

Applies default values linked to a parent feature.

void AttributeFormModelBase::applyParentDefaultValues () 

function applyRelationshipDefaultValues

Applies default values linked to relationships.

void AttributeFormModelBase::applyRelationshipDefaultValues () 

function attribute

QVariant AttributeFormModelBase::attribute (
    const QString & name
) 

Get the attribute of the current feature by name

Parameters:

  • name the name of the attribute

Returns:

value of the attribute


function constraintsHardValid

bool AttributeFormModelBase::constraintsHardValid () const

function constraintsSoftValid

bool AttributeFormModelBase::constraintsSoftValid () const

function create

bool AttributeFormModelBase::create () 

Create the current (not existing yet) feature


function deactivateAllRememberValues

Deactivate all available value that can be remembered and reused.

void AttributeFormModelBase::deactivateAllRememberValues () 

function deleteFeature

bool AttributeFormModelBase::deleteFeature () 

Delete the current feature


function featureModel

FeatureModel * AttributeFormModelBase::featureModel () const

function hasRemembrance

bool AttributeFormModelBase::hasRemembrance () const

function hasTabs

bool AttributeFormModelBase::hasTabs () const

function roleNames

QHash< int, QByteArray > AttributeFormModelBase::roleNames () override const

function save

bool AttributeFormModelBase::save () 

Save the current (already existing) feature


function setData

bool AttributeFormModelBase::setData (
    const QModelIndex & index,
    const QVariant & value,
    int role=Qt::EditRole
) override

function setFeatureModel

void AttributeFormModelBase::setFeatureModel (
    FeatureModel * featureModel
) 

function setHasRemembrance

void AttributeFormModelBase::setHasRemembrance (
    bool hasRemembrance
) 

function setHasTabs

void AttributeFormModelBase::setHasTabs (
    bool hasTabs
) 


The documentation for this class was generated from the following file src/core/attributeformmodelbase.h