16 #ifndef QGSATTRIBUTEFORM_H 17 #define QGSATTRIBUTEFORM_H 25 #include <QDialogButtonBox> 86 void disconnectButtonBox();
119 void setMode(
Mode mode );
129 Q_DECL_DEPRECATED
void setIsAddDialog(
bool isAddDialog );
168 void attributeChanged(
const QString& attribute,
const QVariant& value );
178 void beforeSave(
bool& ok );
183 void featureSaved(
const QgsFeature& feature );
230 Q_DECL_DEPRECATED
void accept() { save(); }
237 Q_DECL_DEPRECATED
void reject() { resetValues(); }
252 void refreshFeature();
255 void onAttributeChanged(
const QVariant& value );
256 void onAttributeAdded(
int idx );
257 void onAttributeDeleted(
int idx );
258 void onUpdatedFields();
259 void onConstraintStatusChanged(
const QString& constraint,
261 void preventFeatureRefresh();
262 void synchronizeEnabledState(
bool synchronizeWidgetWrapper =
true );
263 void layerSelectionChanged();
266 bool saveMultiEdits();
267 void resetMultiEdit(
bool promptToSave =
false );
268 void multiEditMessageClicked(
const QString& link );
270 void filterAndTriggered();
271 void filterOrTriggered();
272 void filterTriggered();
274 void searchSetSelection();
275 void searchAddToSelection();
276 void searchRemoveFromSelection();
277 void searchIntersectSelection();
290 , labelOnTop(
false )
291 , labelAlignRight(
false )
298 bool labelAlignRight;
310 void createWrappers();
311 void afterWidgetInit();
318 int messageTimeout();
319 void clearMultiEditMessages();
320 void pushSelectedFeaturesMessage();
323 QString createFilterExpression()
const;
326 void updateAllConstaints();
328 bool currentFormFeature(
QgsFeature& feature );
331 void clearInvalidConstraintsMessage();
332 void displayInvalidConstraintMessage(
const QStringList& invalidFields,
338 bool mOwnsMessageBar;
341 QLabel* mInvalidConstraintMessage;
351 struct ContainerInformation
354 : tabWidget( tabWidget )
356 , expression( expression )
361 : tabWidget(
nullptr )
363 , expression( expression )
375 void registerContainerInformation( ContainerInformation* info );
382 static int sFormCounter;
390 bool mPreventFeatureRefresh;
393 bool mIsSettingFeature;
394 bool mIsSettingMultiEditFeatures;
397 bool mUnsavedMultiEditChanges;
406 friend class TestQgsDualView;
407 friend class TestQgsAttributeForm;
410 #endif // QGSATTRIBUTEFORM_H
Class for parsing and evaluation of expressions (formerly called "search strings").
Wrapper for iterator of features from vector data provider or vector layer.
This is an abstract base class for any elements of a drag and drop form.
This class contains context information for attribute editor widgets.
A bar for displaying non-blocking messages to the user.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
virtual bool eventFilter(QObject *watched, QEvent *event)
SelectBehaviour
Selection behaviour.
Represents a vector layer which manages a vector based data sets.