21 #ifndef QGSRASTERLAYERPROPERTIES_H
22 #define QGSRASTERLAYERPROPERTIES_H
25 #include "ui_qgsrasterlayerpropertiesbase.h"
113 void updateDataDefinedButtons();
126 void updateProperty();
133 void buttonBuildPyramids_clicked();
138 void addMetadataUrl();
139 void removeSelectedMetadataUrl();
145 void updateGammaSpinBox(
int value );
151 void updateGammaSlider(
double value );
153 void mRenderTypeComboBox_currentIndexChanged(
int index );
155 void loadDefaultStyle_clicked();
157 void saveDefaultStyle_clicked();
159 void loadStyle_clicked();
161 void saveStyleAs_clicked();
163 void restoreWindowModality();
169 void saveMetadataAs();
171 void saveDefaultMetadata();
173 void loadDefaultMetadata();
179 void mResetColorRenderingBtn_clicked();
182 void toggleBuildPyramidsButton();
185 void toggleSaturationControls(
int grayscaleMode );
188 void toggleColorizeControls(
bool colorizeEnabled );
191 void transparencyCellTextEdited(
const QString &text );
193 void aboutToShowStyleMenu();
198 void urlClicked(
const QUrl &url );
201 QPushButton *mBtnStyle =
nullptr;
202 QPushButton *mBtnMetadata =
nullptr;
203 QAction *mActionLoadMetadata =
nullptr;
204 QAction *mActionSaveMetadataAs =
nullptr;
206 QStandardItemModel *mMetadataUrlModel =
nullptr;
209 QList<QgsMapLayerConfigWidget *> mLayerPropertiesPages;
212 const QString TRSTRING_NOT_SET;
215 QString mDefaultContrastEnhancementAlgorithm;
218 double mDefaultStandardDeviation;
222 int mDefaultGreenBand;
223 int mDefaultBlueBand;
226 bool mGrayMinimumMaximumEstimated;
229 bool mRGBMinimumMaximumEstimated;
237 QgsRasterTransparencyWidget *mRasterTransparencyWidget =
nullptr;
244 bool rasterIsMultiBandColor();
249 void updateInformationContent();
251 void setTransparencyCell(
int row,
int column,
double value );
252 void setTransparencyCellValue(
int row,
int column,
double value );
253 double transparencyCellValue(
int row,
int column );
254 void setTransparencyToEdited(
int row );
255 void adjustTransparencyCellWidth(
int row,
int column );
257 void setRendererWidget(
const QString &rendererName );
261 QLinearGradient greenGradient();
262 QLinearGradient redGradient();
263 QLinearGradient blueGradient();
264 QLinearGradient grayGradient();
265 QLinearGradient highlightGradient();
266 qreal mGradientHeight;
267 qreal mGradientWidth;
273 QVector<bool> mTransparencyToEdited;
281 bool mDisableRenderTypeComboBoxCurrentIndexChanged =
false;
283 bool mMetadataFilled;
288 QgsResamplingUtils mResamplingUtils;
296 friend class QgsAppScreenShots;