17#ifndef QGSNEWGEOPACKAGELAYERDIALOG_H
18#define QGSNEWGEOPACKAGELAYERDIALOG_H
20#include "ui_qgsnewgeopackagelayerdialogbase.h"
65 void lockDatabasePath();
73 void setOverwriteBehavior( OverwriteBehavior behavior );
81 void setAddToProject(
bool addToProject );
84 void mAddAttributeButton_clicked();
85 void mRemoveAttributeButton_clicked();
86 void mFieldTypeBox_currentIndexChanged(
int index );
87 void mGeometryTypeBox_currentIndexChanged(
int index );
88 void mTableNameEdit_textChanged(
const QString &text );
89 void mTableNameEdit_textEdited(
const QString &text );
90 void mLayerIdentifierEdit_textEdited(
const QString &text );
91 void fieldNameChanged(
const QString & );
92 void selectionChanged();
96 void buttonBox_accepted();
97 void buttonBox_rejected();
102 QPushButton *mOkButton =
nullptr;
104 bool mTableNameEdited =
false;
105 bool mLayerIdentifierEdited =
false;
106 OverwriteBehavior mBehavior = Prompt;
107 bool mAddToProject =
true;
This class represents a coordinate reference system (CRS).
Dialog to set up parameters to create a new GeoPackage layer, and on accept() to create it and add it...
OverwriteBehavior
Behavior to use when an existing geopackage already exists.
@ AddNewLayer
Keep existing contents and add new layer.
@ Overwrite
Overwrite whole geopackage.
@ Prompt
Prompt user for action.
void setDatabasePath(const QString &path)
Sets the initial database path.
QString databasePath() const
Returns the database path.
const QgsCoordinateReferenceSystem & crs