1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsnewvectortabledialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsNewVectorTableDialog : QDialog
{
%Docstring(signature="appended")
The :py:class:`QgsNewVectorTableDialog` class is a provider-agnostic
database vector and aspatial table designer dialog based on the
connections API.
It allows designing a new vector or aspatial database table by defining
the schema (if supported by the provider) and table name, the list of
:py:class:`QgsFields`, the optional geometry type and SRID.
The actual creation of the table is delegated to the connections API
method
:py:func:`QgsAbstractDatabaseProviderConnection.createVectorTable()`
.. versionadded:: 3.16
%End
%TypeHeaderCode
#include "qgsnewvectortabledialog.h"
%End
public:
QgsNewVectorTableDialog( QgsAbstractDatabaseProviderConnection *conn, QWidget *parent /TransferThis/ = 0 );
%Docstring
QgsNewVectorTableDialog constructor
:param conn: DB connection, ownership is NOT transferred
:param parent: optional parent
%End
void setSchemaName( const QString &name );
%Docstring
Sets the schema ``name``
%End
void setTableName( const QString &name );
%Docstring
Sets the table ``name``
%End
void setGeometryType( Qgis::WkbType type );
%Docstring
Sets the geometry ``type``
%End
void setCrs( const QgsCoordinateReferenceSystem &crs );
%Docstring
Sets the CRS to ``crs``
%End
QgsCoordinateReferenceSystem crs() const;
%Docstring
Returns the CRS
%End
QString tableName() const;
%Docstring
Returns the table name
%End
QString schemaName() const;
%Docstring
Returns the schema name
%End
QString geometryColumnName() const;
%Docstring
Returns the geometry column name
%End
QgsFields fields() const;
%Docstring
Returns the fields
%End
Qgis::WkbType geometryType() const;
%Docstring
Returns the geometry type
%End
void setFields( const QgsFields &fields );
%Docstring
Sets the fields to ``fields``
%End
bool createSpatialIndex();
%Docstring
Returns ``True`` if spatialindex checkbox is checked.
%End
QStringList validationErrors() const;
%Docstring
Returns the validation errors or an empty list if the dialog is valid
%End
protected:
virtual void showEvent( QShowEvent *event );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsnewvectortabledialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|