2012-09-24 02:28:15 +02:00
|
|
|
/** \ingroup gui
|
|
|
|
* A widget to select format-specific raster saving options
|
|
|
|
*/
|
|
|
|
class QgsRasterPyramidsOptionsWidget: QWidget
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsrasterpyramidsoptionswidget.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsRasterPyramidsOptionsWidget( QWidget* parent = 0, QString provider = "gdal" );
|
|
|
|
~QgsRasterPyramidsOptionsWidget();
|
|
|
|
|
2013-01-18 18:18:47 -02:00
|
|
|
QStringList configOptions() const;
|
2012-09-24 02:28:15 +02:00
|
|
|
QgsRasterFormatSaveOptionsWidget* createOptionsWidget() /Factory/;
|
|
|
|
const QList<int> overviewList() const;
|
2013-04-24 17:18:15 +02:00
|
|
|
QgsRaster::RasterPyramidsFormat pyramidsFormat() const;
|
2012-09-24 02:28:15 +02:00
|
|
|
QString resamplingMethod() const;
|
2013-01-18 18:18:47 -02:00
|
|
|
void setRasterLayer( QgsRasterLayer* rasterLayer );
|
|
|
|
void setRasterFileName( const QString& file );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
void apply();
|
|
|
|
void checkAllLevels( bool checked );
|
|
|
|
|
2013-01-18 18:18:47 -02:00
|
|
|
private slots:
|
|
|
|
|
|
|
|
void on_cbxPyramidsLevelsCustom_toggled( bool toggled );
|
|
|
|
void on_cbxPyramidsFormat_currentIndexChanged( int index );
|
|
|
|
void setOverviewList();
|
|
|
|
void updateUi();
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
signals:
|
|
|
|
void overviewListChanged();
|
2014-01-27 09:22:24 +01:00
|
|
|
void someValueChanged(); /* emitted when any other setting changes */
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|