mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-31 00:06:02 -04:00 
			
		
		
		
	Rationale: - there was a lot of large objects passed by value, so potentially there's a speed bump from this - even for implicitly shared classes like QString/QList there's still a (small) cost for copying the objects when there's no reason to - it's the right thing to do!
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /** \ingroup gui
 | |
|  * A widget to select format-specific raster saving options
 | |
|  */
 | |
| class QgsRasterPyramidsOptionsWidget: QWidget
 | |
| {
 | |
| %TypeHeaderCode
 | |
| #include <qgsrasterpyramidsoptionswidget.h>
 | |
| %End
 | |
| 
 | |
|   public:
 | |
| 
 | |
|     QgsRasterPyramidsOptionsWidget( QWidget* parent /TransferThis/ = 0, const QString& provider = "gdal" );
 | |
|     ~QgsRasterPyramidsOptionsWidget();
 | |
| 
 | |
|     QStringList configOptions() const;
 | |
|     QgsRasterFormatSaveOptionsWidget* createOptionsWidget() /Factory/;
 | |
|     const QList<int> overviewList() const;
 | |
|     QgsRaster::RasterPyramidsFormat pyramidsFormat() const;
 | |
|     QString resamplingMethod() const;
 | |
|     void setRasterLayer( QgsRasterLayer* rasterLayer );
 | |
|     void setRasterFileName( const QString& file );
 | |
| 
 | |
|   public slots:
 | |
| 
 | |
|     void apply();
 | |
|     void checkAllLevels( bool checked );
 | |
| 
 | |
|   private slots:
 | |
| 
 | |
|     void on_cbxPyramidsLevelsCustom_toggled( bool toggled );
 | |
|     void on_cbxPyramidsFormat_currentIndexChanged( int index );
 | |
|     void setOverviewList();
 | |
|     void updateUi();
 | |
| 
 | |
|   signals:
 | |
|     void overviewListChanged();
 | |
|     void someValueChanged(); /* emitted when any other setting changes */
 | |
| };
 |