2020-03-09 19:22:29 +01:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsnewdatabasetablenamewidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsNewDatabaseTableNameWidget : QWidget
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
The QgsNewDatabaseTableNameWidget class embeds the browser view to
|
|
|
|
select 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.
|
|
|
|
|
2020-03-10 14:58:10 +01:00
|
|
|
.. warning::
|
|
|
|
|
|
|
|
The data provider that originated the data item provider
|
|
|
|
must support the connections API
|
|
|
|
|
2020-03-09 19:22:29 +01:00
|
|
|
.. versionadded:: 3.14
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsnewdatabasetablenamewidget.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
explicit QgsNewDatabaseTableNameWidget( QgsBrowserGuiModel *browserModel = 0,
|
|
|
|
const QStringList &providersFilter = QStringList(),
|
|
|
|
QWidget *parent = 0 );
|
|
|
|
%Docstring
|
|
|
|
Constructs a new QgsNewDatabaseTableNameWidget
|
|
|
|
|
|
|
|
:param browserModel: an existing browser model (typically from app), if NULL an instance will be created
|
2020-03-10 14:58:10 +01:00
|
|
|
:param 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
|
2020-03-09 19:22:29 +01:00
|
|
|
:param parent: optional parent for this widget
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString schema();
|
|
|
|
%Docstring
|
|
|
|
Returns the currently selected schema for the new table
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString table();
|
|
|
|
%Docstring
|
|
|
|
Returns the current name of the new table
|
|
|
|
%End
|
|
|
|
|
2020-03-10 14:58:10 +01:00
|
|
|
QString dataProviderKey();
|
2020-03-09 19:22:29 +01:00
|
|
|
%Docstring
|
2020-03-10 14:58:10 +01:00
|
|
|
Returns the currently selected data item provider key
|
2020-03-09 19:22:29 +01:00
|
|
|
%End
|
|
|
|
|
|
|
|
bool isValid() const;
|
|
|
|
%Docstring
|
|
|
|
Returns ``True`` if the widget contains a valid new table name
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString validationError();
|
|
|
|
%Docstring
|
|
|
|
Returns the validation error or an empty string is the widget status is valid
|
|
|
|
%End
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
void validationChanged( bool isValid );
|
|
|
|
%Docstring
|
|
|
|
This signal is emitted whenever the validation status of the widget changes.
|
|
|
|
|
|
|
|
:param isValid: ``True`` if the current status of the widget is valid
|
|
|
|
%End
|
|
|
|
|
|
|
|
void schemaNameChanged( const QString &schemaName );
|
|
|
|
%Docstring
|
|
|
|
This signal is emitted when the user selects a schema.
|
|
|
|
|
|
|
|
:param schemaName: the name of the selected schema
|
|
|
|
%End
|
|
|
|
|
|
|
|
void tableNameChanged( const QString &tableName );
|
|
|
|
%Docstring
|
|
|
|
This signal is emitted when the user enters a table name
|
|
|
|
|
|
|
|
:param tableName: the name of the new table
|
|
|
|
%End
|
|
|
|
|
2020-03-10 14:58:10 +01:00
|
|
|
void providerKeyChanged( const QString &providerKey );
|
|
|
|
%Docstring
|
|
|
|
This signal is emitted when the selects a data provider or a schema name
|
|
|
|
that has a different data provider than the previously selected one.
|
|
|
|
|
|
|
|
:param providerKey: the data provider key of the selected schema
|
|
|
|
%End
|
|
|
|
|
2020-03-09 19:22:29 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsnewdatabasetablenamewidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|