16 #ifndef QGSEDITORWIDGETWRAPPER_H
17 #define QGSEDITORWIDGETWRAPPER_H
51 Q_PROPERTY(
bool constraintResultVisible READ constraintResultVisible WRITE setConstraintResultVisible NOTIFY constraintResultVisibleChanged )
52 Q_PROPERTY(
ConstraintResult constraintResult READ constraintResult NOTIFY constraintStatusChanged )
62 ConstraintResultPass = 0,
86 virtual QVariant value()
const = 0;
109 int fieldIdx()
const;
127 QVariant defaultValue()
const;
141 static bool isInTable(
const QWidget *parent );
186 bool isValidConstraint()
const;
194 bool isBlockingCommit()
const;
202 QString constraintFailureReason()
const;
209 virtual void setHint(
const QString &hintText );
217 ConstraintResult constraintResult()
const;
227 bool constraintResultVisible()
const;
238 void setConstraintResultVisible(
bool constraintResultVisible );
248 Q_DECL_DEPRECATED
void valueChanged(
const QVariant &value );
258 void valuesChanged(
const QVariant &value,
const QVariantList &additionalFieldValues = QVariantList() );
273 void constraintResultVisibleChanged(
bool visible );
302 void setValues(
const QVariant &value,
const QVariantList &additionalValues );
307 void emitValueChanged();
320 virtual void parentFormValueChanged(
const QString &attribute,
const QVariant &value );
336 virtual void updateConstraintWidgetStatus();
361 bool setFormFeatureAttribute(
const QString &attributeName,
const QVariant &attributeValue );
374 virtual void updateValues(
const QVariant &value,
const QVariantList &additionalValues = QVariantList() );
377 bool isRunningDeprecatedSetValue =
false;
384 QList<int> mAdditionalFieldIndexes;
394 bool mValidConstraint;
397 bool mIsBlockingCommit;
400 QString mConstraintFailureReason;
403 ConstraintResult mConstraintResult = ConstraintResultPass;
406 bool mConstraintResultVisible =
false;
408 mutable QVariant mDefaultValue;
415 #endif // QGSEDITORWIDGETWRAPPER_H