19#include "moc_qgsnewauxiliarylayerdialog.cpp" 
   35  for ( 
const QgsField &field : fields )
 
   36    comboBox->addItem( field.name() );
 
   40    buttonBox->button( QDialogButtonBox::Ok )->setDisabled( 
true );
 
 
   61      QMessageBox::critical( 
this, tr( 
"New Auxiliary Layer" ), errMsg );
 
 
Allows managing the auxiliary storage for a vector layer.
 
QString errorString() const
Returns the underlying error string describing potential errors happening in saveAs().
 
QgsAuxiliaryLayer * createAuxiliaryLayer(const QgsField &field, QgsVectorLayer *layer) const
Creates an auxiliary layer for a vector layer.
 
Encapsulate a field in an attribute table or data source.
 
Container of fields for a vector layer.
 
QgsField field(int fieldIdx) const
Returns the field at particular index (must be in range 0..N-1).
 
Q_INVOKABLE int lookupField(const QString &fieldName) const
Looks up field's index from the field name.
 
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...
 
QgsNewAuxiliaryLayerDialog(QgsVectorLayer *layer, QWidget *parent=nullptr)
Constructor.
 
static QgsProject * instance()
Returns the QgsProject singleton instance.
 
const QgsAuxiliaryStorage * auxiliaryStorage() const
Returns the current const auxiliary storage.
 
Represents a vector layer which manages a vector based dataset.
 
void setAuxiliaryLayer(QgsAuxiliaryLayer *layer=nullptr)
Sets the current auxiliary layer.