QGIS/python/gui/qgsnewmemorylayerdialog.sip
Matthias Kuhn bb79d13e82 Remove deprecated Qgis::WKBType and API cleanup (#3325)
* Remove deprecated Qgis::WKBType and API cleanup

Renames QgsWKBTypes to QgsWkbTypes

Replaces usage of the enums:

* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType

Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)

Renames some SSLxxx to SslXxx and URIxxx to UriXxx

* Fix build warnings and simplify type handling

* Add a fixer to rewrite imports

* The forgotten rebase conflictThe forgotten rebase conflicts

* QgsDataSourcURI > QgsDataSourceUri

* QgsWKBTypes > QgsWkbTypes

* Qgis.WKBGeom > QgsWkbTypes.Geom

* Further python fixes

* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions

* Fix tests

* Python 3 updates

* [travis] pull request caching cannot be disabled

so at least use it in r/w mode

* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00

28 lines
709 B
Plaintext

class QgsNewMemoryLayerDialog : QDialog
{
%TypeHeaderCode
#include <qgsnewmemorylayerdialog.h>
%End
public:
/** Runs the dialoag and creates a new memory layer
* @param parent parent widget
* @returns new memory layer
*/
static QgsVectorLayer* runAndCreateLayer( QWidget* parent = 0 );
QgsNewMemoryLayerDialog( QWidget *parent /TransferThis/ = 0, const Qt::WindowFlags& fl = QgisGui::ModalDialogFlags );
~QgsNewMemoryLayerDialog();
/** Returns the selected geometry type*/
QgsWkbTypes::Type selectedType() const;
/** Returns the selected crs*/
QgsCoordinateReferenceSystem crs() const;
/** Returns the layer name*/
QString layerName() const;
};