QGIS/python/gui/auto_generated/qgsnewvectorlayerdialog.sip.in

75 lines
2.4 KiB
Plaintext
Raw Normal View History

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
{
2017-06-07 16:16:21 +02:00
%TypeHeaderCode
2017-06-07 16:16:21 +02:00
#include "qgsnewvectorlayerdialog.h"
%End
public:
2017-06-07 16:16:21 +02:00
static QString runAndCreateLayer( QWidget *parent = 0, QString *enc = 0, const QgsCoordinateReferenceSystem &crs = QgsCoordinateReferenceSystem() );
%Docstring
2017-12-15 10:36:55 -04:00
Runs the dialog and creates a layer matching the dialog parameters.
:return: fileName on success, empty string use aborted, QString() if creation failed
2017-06-07 16:16:21 +02:00
%End
2017-06-07 16:16:21 +02:00
QgsNewVectorLayerDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
~QgsNewVectorLayerDialog();
QgsWkbTypes::Type selectedType() const;
2017-06-07 16:16:21 +02:00
%Docstring
Returns the selected geometry type
%End
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
QString selectedFileFormat() const;
2017-06-07 16:16:21 +02:00
%Docstring
Returns the file format for storage
%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
%End
QString filename() const;
%Docstring
Returns the name for the new layer
%End
QgsCoordinateReferenceSystem crs() const;
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the selected CRS for the new layer.
.. seealso:: :py:func:`setCrs`
2017-06-07 16:16:21 +02:00
%End
void setCrs( const QgsCoordinateReferenceSystem &crs );
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the ``crs`` value for the new layer in the dialog.
.. seealso:: :py:func:`crs`
2018-05-28 11:31:08 -04:00
.. versionadded:: 3.0
2017-06-07 16:16:21 +02:00
%End
};
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 *
************************************************************************/