15#ifndef QGSRASTERLAYERSAVEASDIALOG_H
16#define QGSRASTERLAYERSAVEASDIALOG_H
18#include "ui_qgsrasterlayersaveasdialogbase.h"
27class QgsRasterFormatOptionsWidget;
61 Qt::WindowFlags f = Qt::WindowFlags() );
66 double xResolution()
const;
67 double yResolution()
const;
68 int maximumTileSizeX()
const;
69 int maximumTileSizeY()
const;
70 bool tileMode()
const;
77 bool addToCanvas()
const;
85 void setAddToCanvas(
bool checked );
87 QString outputFileName()
const;
93 QString outputLayerName()
const;
94 QString outputFormat()
const;
96 QStringList createOptions()
const;
100 QList< int > pyramidsList()
const;
120 void accept()
override;
123 void mRawModeRadioButton_toggled(
bool );
124 void mFormatComboBox_currentIndexChanged(
const QString &text );
125 void mResolutionRadioButton_toggled(
bool ) { toggleResolutionSize(); }
126 void mOriginalResolutionPushButton_clicked() { setOriginalResolution(); }
127 void mXResolutionLineEdit_textEdited(
const QString & ) { mResolutionState = UserResolution; recalcSize(); }
128 void mYResolutionLineEdit_textEdited(
const QString & ) { mResolutionState = UserResolution; recalcSize(); }
130 void mOriginalSizePushButton_clicked() { setOriginalSize(); }
131 void mColumnsLineEdit_textEdited(
const QString & ) { mResolutionState = UserResolution; recalcResolution(); }
132 void mRowsLineEdit_textEdited(
const QString & ) { mResolutionState = UserResolution; recalcResolution(); }
134 void mAddNoDataManuallyToolButton_clicked();
135 void mLoadTransparentNoDataToolButton_clicked();
136 void mRemoveSelectedNoDataToolButton_clicked();
137 void mRemoveAllNoDataToolButton_clicked();
138 void noDataCellTextEdited(
const QString &text );
139 void mTileModeCheckBox_toggled(
bool toggled );
140 void mPyramidsGroupBox_toggled(
bool toggled );
141 void populatePyramidsLevels();
142 void extentChanged();
153 ResolutionState mResolutionState;
154 QVector<bool> mNoDataToEdited;
156 void setValidators();
157 void toggleResolutionSize();
159 void setOriginalResolution();
160 void setOriginalSize();
162 void recalcResolution();
163 void updateResolutionStateMsg();
164 void recalcResolutionSize();
166 void addNoDataRow(
double min,
double max );
167 void setNoDataToEdited(
int row );
168 double noDataCellValue(
int row,
int column )
const;
169 void adjustNoDataCellWidth(
int row,
int column );
170 bool validate()
const;
172 bool outputLayerExists()
const;
174 void insertAvailableOutputFormats();
176 friend class TestQgsRasterLayerSaveAsDialog;
RasterPyramidFormat
Raster pyramid formats.
RasterBuildPyramidOption
Raster pyramid building options.
This class represents a coordinate reference system (CRS).
Base class for raster data providers.
QString pyramidsResamplingMethod() const
Qgis::RasterPyramidFormat pyramidsFormat() const
Returns the selected pyramid format.
QStringList pyramidsConfigOptions() const
Represents a raster layer.
A rectangle specified with double values.
QList< QgsRasterRange > QgsRasterRangeList
const QgsCoordinateReferenceSystem & outputCrs