2017-06-07 16:16:21 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsnewvectorlayerdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsNewVectorLayerDialog: QDialog
|
2012-09-24 02:28:15 +02:00
|
|
|
{
|
2017-06-07 16:16:21 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-06-07 16:16:21 +02:00
|
|
|
#include "qgsnewvectorlayerdialog.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
static QString runAndCreateLayer( QWidget *parent = 0, QString *enc = 0, const QgsCoordinateReferenceSystem &crs = QgsCoordinateReferenceSystem() );
|
|
|
|
%Docstring
|
|
|
|
Runs the dialog and creates a layer matching the dialog parameters.
|
2017-06-16 14:39:07 +02:00
|
|
|
:return: fileName on success, empty string use aborted, QString() if creation failed
|
2017-06-07 16:16:21 +02:00
|
|
|
:rtype: str
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
QgsNewVectorLayerDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
|
2012-09-24 02:28:15 +02:00
|
|
|
~QgsNewVectorLayerDialog();
|
2016-08-04 09:10:08 +02:00
|
|
|
QgsWkbTypes::Type selectedType() const;
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the selected geometry type
|
|
|
|
:rtype: QgsWkbTypes.Type
|
|
|
|
%End
|
2017-05-01 16:42:33 +02:00
|
|
|
void attributes( QList< QPair<QString, QString> > &at ) const;
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Appends the chosen attribute names and types to at
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
QString selectedFileFormat() const;
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the file format for storage
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2014-05-27 23:22:50 +02:00
|
|
|
QString selectedFileEncoding() const;
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the file format for storage
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-03-22 11:13:30 +10:00
|
|
|
|
|
|
|
QgsCoordinateReferenceSystem crs() const;
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the selected CRS for the new layer.
|
|
|
|
.. seealso:: setCrs()
|
|
|
|
:rtype: QgsCoordinateReferenceSystem
|
|
|
|
%End
|
|
|
|
|
2017-03-22 11:13:30 +10:00
|
|
|
void setCrs( const QgsCoordinateReferenceSystem &crs );
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the ``crs`` value for the new layer in the dialog.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
.. seealso:: crs()
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
};
|
2017-06-07 16:16:21 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsnewvectorlayerdialog.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|