Class QfAttributeFormModelBase
ClassList > QfAttributeFormModelBase
Inherits the following classes: QStandardItemModel
Public Signals
| Type | Name |
|---|---|
| signal void | constraintsHardValidChanged |
| signal void | constraintsSoftValidChanged |
| signal void | featureModelChanged |
| signal void | hasConstraintsChanged |
| signal void | hasRemembranceChanged |
| signal void | hasTabsChanged |
| signal void | isWizardChanged |
Public Functions
| Type | Name |
|---|---|
| QfAttributeFormModelBase (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 | changeAttribute (const QString & name, const QVariant & value) |
| bool | changeGeometry (const QgsGeometry & geometry) |
| bool | constraintsHardValid () const |
| bool | constraintsSoftValid () const |
| bool | create () |
| QgsExpressionContext | createExpressionContext () const Creates an expression context. |
| void | deactivateAllRememberValues () Deactivate all available value that can be remembered and reused. |
| bool | deleteFeature () |
| QfFeatureModel * | featureModel () const |
| bool | hasConstraints () const |
| bool | hasRemembrance () const |
| bool | hasTabs () const |
| bool | isWizard () const |
| QHash< int, QByteArray > | roleNames () override const |
| bool | save () |
| bool | setData (const QModelIndex & index, const QVariant & value, int role=Qt::EditRole) override |
| void | setFeatureModel (QfFeatureModel * featureModel) |
| void | setHasConstraints (bool hasConstraints) |
| void | setHasRemembrance (bool hasRemembrance) |
| void | setHasTabs (bool hasTabs) |
| void | setIsWizard (bool isWizard) |
Public Signals Documentation
signal constraintsHardValidChanged
void QfAttributeFormModelBase::constraintsHardValidChanged;
signal constraintsSoftValidChanged
void QfAttributeFormModelBase::constraintsSoftValidChanged;
signal featureModelChanged
void QfAttributeFormModelBase::featureModelChanged;
signal hasConstraintsChanged
void QfAttributeFormModelBase::hasConstraintsChanged;
signal hasRemembranceChanged
void QfAttributeFormModelBase::hasRemembranceChanged;
signal hasTabsChanged
void QfAttributeFormModelBase::hasTabsChanged;
signal isWizardChanged
void QfAttributeFormModelBase::isWizardChanged;
Public Functions Documentation
function QfAttributeFormModelBase
explicit QfAttributeFormModelBase::QfAttributeFormModelBase (
QObject * parent=nullptr
)
function activateAllRememberValues
Activate all available value that can be remembered and reused.
void QfAttributeFormModelBase::activateAllRememberValues ()
function applyFeatureModel
Applies feature model data such as attribute values, constraints, visibility to the attribute form model.
void QfAttributeFormModelBase::applyFeatureModel ()
function applyParentDefaultValues
Applies default values linked to a parent feature.
void QfAttributeFormModelBase::applyParentDefaultValues ()
function applyRelationshipDefaultValues
Applies default values linked to relationships.
void QfAttributeFormModelBase::applyRelationshipDefaultValues ()
function attribute
QVariant QfAttributeFormModelBase::attribute (
const QString & name
)
Returns the value for an attribute name of the current feature.
Returns:
value of the attribute
function changeAttribute
bool QfAttributeFormModelBase::changeAttribute (
const QString & name,
const QVariant & value
)
function changeGeometry
bool QfAttributeFormModelBase::changeGeometry (
const QgsGeometry & geometry
)
Sets the geometry of the current feature
function constraintsHardValid
bool QfAttributeFormModelBase::constraintsHardValid () const
function constraintsSoftValid
bool QfAttributeFormModelBase::constraintsSoftValid () const
function create
bool QfAttributeFormModelBase::create ()
Create the current (not existing yet) feature
function createExpressionContext
Creates an expression context.
QgsExpressionContext QfAttributeFormModelBase::createExpressionContext () const
function deactivateAllRememberValues
Deactivate all available value that can be remembered and reused.
void QfAttributeFormModelBase::deactivateAllRememberValues ()
function deleteFeature
bool QfAttributeFormModelBase::deleteFeature ()
Delete the current feature
function featureModel
QfFeatureModel * QfAttributeFormModelBase::featureModel () const
function hasConstraints
bool QfAttributeFormModelBase::hasConstraints () const
function hasRemembrance
bool QfAttributeFormModelBase::hasRemembrance () const
function hasTabs
bool QfAttributeFormModelBase::hasTabs () const
function isWizard
bool QfAttributeFormModelBase::isWizard () const
function roleNames
QHash< int, QByteArray > QfAttributeFormModelBase::roleNames () override const
function save
bool QfAttributeFormModelBase::save ()
Save the current (already existing) feature
function setData
bool QfAttributeFormModelBase::setData (
const QModelIndex & index,
const QVariant & value,
int role=Qt::EditRole
) override
function setFeatureModel
void QfAttributeFormModelBase::setFeatureModel (
QfFeatureModel * featureModel
)
function setHasConstraints
void QfAttributeFormModelBase::setHasConstraints (
bool hasConstraints
)
function setHasRemembrance
void QfAttributeFormModelBase::setHasRemembrance (
bool hasRemembrance
)
function setHasTabs
void QfAttributeFormModelBase::setHasTabs (
bool hasTabs
)
function setIsWizard
void QfAttributeFormModelBase::setIsWizard (
bool isWizard
)
The documentation for this class was generated from the following file src/gui/qfattributeformmodelbase.h