mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-30 00:07:09 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			81 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			81 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /************************************************************************
 | |
|  * 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
 | |
| {
 | |
| 
 | |
| %TypeHeaderCode
 | |
| #include "qgsnewvectorlayerdialog.h"
 | |
| %End
 | |
|   public:
 | |
| 
 | |
|     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.
 | |
|  :return: fileName on success, empty string use aborted, QString() if creation failed
 | |
|  :rtype: str
 | |
| %End
 | |
| 
 | |
|     QgsNewVectorLayerDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
 | |
|     ~QgsNewVectorLayerDialog();
 | |
|     QgsWkbTypes::Type selectedType() const;
 | |
| %Docstring
 | |
| Returns the selected geometry type
 | |
|  :rtype: QgsWkbTypes.Type
 | |
| %End
 | |
|     void attributes( QList< QPair<QString, QString> > &at ) const;
 | |
| %Docstring
 | |
| Appends the chosen attribute names and types to at
 | |
| %End
 | |
|     QString selectedFileFormat() const;
 | |
| %Docstring
 | |
| Returns the file format for storage
 | |
|  :rtype: str
 | |
| %End
 | |
|     QString selectedFileEncoding() const;
 | |
| %Docstring
 | |
| Returns the file format for storage
 | |
|  :rtype: str
 | |
| %End
 | |
| 
 | |
|     QgsCoordinateReferenceSystem crs() const;
 | |
| %Docstring
 | |
|  Returns the selected CRS for the new layer.
 | |
| .. seealso:: setCrs()
 | |
|  :rtype: QgsCoordinateReferenceSystem
 | |
| %End
 | |
| 
 | |
|     void setCrs( const QgsCoordinateReferenceSystem &crs );
 | |
| %Docstring
 | |
|  Sets the ``crs`` value for the new layer in the dialog.
 | |
| .. versionadded:: 3.0
 | |
| .. seealso:: crs()
 | |
| %End
 | |
| 
 | |
|   protected slots:
 | |
|     void on_mAddAttributeButton_clicked();
 | |
|     void on_mRemoveAttributeButton_clicked();
 | |
|     void on_mFileFormatComboBox_currentIndexChanged( int index );
 | |
|     void on_mTypeBox_currentIndexChanged( int index );
 | |
|     void on_buttonBox_helpRequested();
 | |
|     void nameChanged( const QString & );
 | |
|     void selectionChanged();
 | |
| 
 | |
| };
 | |
| 
 | |
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/gui/qgsnewvectorlayerdialog.h                                    *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 |