QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
QgsNewDatabaseTableNameDialog is a dialog which allows selection of a DB schema and a new table name. More...
#include <qgsnewdatabasetablenamewidget.h>
Public Member Functions | |
QgsNewDatabaseTableNameDialog (QgsBrowserGuiModel *browserModel=nullptr, const QStringList &providersFilter=QStringList(), QWidget *parent=nullptr) | |
Constructs a new QgsNewDatabaseTableNameDialog. More... | |
QString | dataProviderKey () const |
Returns the currently selected data item provider key. More... | |
bool | isValid () const |
Returns true if the widget contains a valid new table name. More... | |
QString | schema () const |
Returns the currently selected schema or file path (in case of filesystem-based DBs like spatialite or GPKG) for the new table. More... | |
QString | table () const |
Returns the current name of the new table. More... | |
QString | uri () const |
Returns the (possibly blank) string representation of the new table data source URI. More... | |
QString | validationError () const |
Returns the validation error or an empty string is the widget status is valid. More... | |
QgsNewDatabaseTableNameDialog is a dialog which allows selection of a DB schema and a new table name.
The table name is validated for uniqueness and the selected data item provider, schema and table names can be retrieved with getters.
Definition at line 190 of file qgsnewdatabasetablenamewidget.h.
|
explicit |
Constructs a new QgsNewDatabaseTableNameDialog.
browserModel | an existing browser model (typically from app), if NULL an instance will be created |
providersFilter | optional white list of data provider keys that should be shown in the widget, if not specified all providers data items with database capabilities will be shown |
parent | optional parent for this widget |
Definition at line 397 of file qgsnewdatabasetablenamewidget.cpp.
QString QgsNewDatabaseTableNameDialog::dataProviderKey | ( | ) | const |
Returns the currently selected data item provider key.
Definition at line 427 of file qgsnewdatabasetablenamewidget.cpp.
bool QgsNewDatabaseTableNameDialog::isValid | ( | ) | const |
Returns true
if the widget contains a valid new table name.
Definition at line 432 of file qgsnewdatabasetablenamewidget.cpp.
QString QgsNewDatabaseTableNameDialog::schema | ( | ) | const |
Returns the currently selected schema or file path (in case of filesystem-based DBs like spatialite or GPKG) for the new table.
Definition at line 412 of file qgsnewdatabasetablenamewidget.cpp.
QString QgsNewDatabaseTableNameDialog::table | ( | ) | const |
Returns the current name of the new table.
Definition at line 422 of file qgsnewdatabasetablenamewidget.cpp.
QString QgsNewDatabaseTableNameDialog::uri | ( | ) | const |
Returns the (possibly blank) string representation of the new table data source URI.
The URI might be invalid in case the widget is not in a valid state.
Definition at line 417 of file qgsnewdatabasetablenamewidget.cpp.
QString QgsNewDatabaseTableNameDialog::validationError | ( | ) | const |
Returns the validation error or an empty string is the widget status is valid.
Definition at line 437 of file qgsnewdatabasetablenamewidget.cpp.