QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
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. | |
QString | dataProviderKey () const |
Returns the currently selected data item provider key. | |
bool | isValid () const |
Returns true if the widget contains a valid new table name. | |
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. | |
QString | table () const |
Returns the current name of the new table. | |
QString | uri () const |
Returns the (possibly blank) string representation of the new table data source URI. | |
QString | validationError () const |
Returns the validation error or an empty string is the widget status is valid. | |
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 nullptr 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 398 of file qgsnewdatabasetablenamewidget.cpp.
QString QgsNewDatabaseTableNameDialog::dataProviderKey | ( | ) | const |
Returns the currently selected data item provider key.
Definition at line 428 of file qgsnewdatabasetablenamewidget.cpp.
bool QgsNewDatabaseTableNameDialog::isValid | ( | ) | const |
Returns true
if the widget contains a valid new table name.
Definition at line 433 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 413 of file qgsnewdatabasetablenamewidget.cpp.
QString QgsNewDatabaseTableNameDialog::table | ( | ) | const |
Returns the current name of the new table.
Definition at line 423 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 418 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 438 of file qgsnewdatabasetablenamewidget.cpp.