QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
23 #include <QMessageBox>
24 #include <QPushButton>
37 if ( fields.isEmpty() )
39 buttonBox->button( QDialogButtonBox::Ok )->setDisabled(
true );
60 QMessageBox::critical(
this, tr(
"New Auxiliary Layer" ), errMsg );
const QgsAuxiliaryStorage * auxiliaryStorage() const
Returns the current const auxiliary storage.
Class allowing to manage the auxiliary storage for a vector layer.
Container of fields for a vector layer.
static QgsProject * instance()
Returns the QgsProject singleton instance.
void setAuxiliaryLayer(QgsAuxiliaryLayer *layer=nullptr)
Sets the current auxiliary layer.
QgsAuxiliaryLayer * createAuxiliaryLayer(const QgsField &field, QgsVectorLayer *layer) const
Creates an auxiliary layer for a vector layer.
static void enableAutoGeometryRestore(QWidget *widget, const QString &key=QString())
Register the widget to allow its position to be automatically saved and restored when open and closed...
QgsFields fields() const FINAL
Returns the list of fields of this layer.
QgsNewAuxiliaryLayerDialog(QgsVectorLayer *layer, QWidget *parent=nullptr)
Constructor.
QgsField field(int fieldIdx) const
Returns the field at particular index (must be in range 0..N-1).
Represents a vector layer which manages a vector based data sets.
QString errorString() const
Returns the underlying error string describing potential errors happening in saveAs().
int lookupField(const QString &fieldName) const
Looks up field's index from the field name.
Encapsulate a field in an attribute table or data source.