16 #ifndef QGSATTRIBUTEFORM_H
17 #define QGSATTRIBUTEFORM_H
25 #include <QDialogButtonBox>
53 void disconnectButtonBox();
82 void setIsAddDialog(
bool isAddDialog );
99 bool eventFilter( QObject*
object, QEvent* event )
override;
108 void attributeChanged( QString attribute,
const QVariant& value );
118 void beforeSave(
bool& ok );
123 void featureSaved(
const QgsFeature& feature );
132 void changeAttribute(
const QString& field,
const QVariant& value );
153 Q_DECL_DEPRECATED
void accept() { save(); }
160 Q_DECL_DEPRECATED
void reject() { resetValues(); }
168 void onAttributeChanged(
const QVariant& value );
169 void onAttributeAdded(
int idx );
170 void onAttributeDeleted(
int idx );
172 void synchronizeEnabledState();
189 void createWrappers();
190 void connectWrappers();
194 QList<QgsWidgetWrapper*> mWidgets;
196 QDialogButtonBox* mButtonBox;
197 QList<QgsAttributeFormInterface*> mInterfaces;
200 static int sFormCounter;
202 QString mPyFormVarName;
208 QString mEditCommandMessage;
211 #endif // QGSATTRIBUTEFORM_H