18 #ifndef QGSCOLORRAMPSHADERWIDGET_H
19 #define QGSCOLORRAMPSHADERWIDGET_H
25 #include "ui_qgscolorrampshaderwidgetbase.h"
53 void initializeForUseWithRasterLayer();
59 void setRasterBand(
int band );
65 void setMinimumMaximumAndClassify(
double minimum,
double maximum );
68 void setMinimumMaximum(
double minimum,
double maximum );
71 double minimum()
const;
74 double maximum()
const;
100 void loadMinimumMaximumFromTree();
104 void populateColormapTreeWidget(
const QList<QgsColorRampShader::ColorRampItem> &colorRampItems );
123 bool colormapMinMax(
double &min,
double &max )
const;
126 void setUnitFromLabels();
128 QMenu *contextMenu =
nullptr;
132 void applyColorRamp();
133 void mAddEntryButton_clicked();
134 void mDeleteEntryButton_clicked();
135 void mLoadFromBandButton_clicked();
136 void mLoadFromFileButton_clicked();
137 void mExportToFileButton_clicked();
138 void mUnitLineEdit_textEdited(
const QString &text ) { Q_UNUSED( text ) autoLabel(); }
139 void mColormapTreeWidget_itemDoubleClicked( QTreeWidgetItem *item,
int column );
140 void mColormapTreeWidget_itemEdited( QTreeWidgetItem *item,
int column );
141 void mColorInterpolationComboBox_currentIndexChanged(
int index );
142 void mClassificationModeComboBox_currentIndexChanged(
int index );
144 void changeOpacity();
147 void setLineEditValue( QLineEdit *lineEdit,
double value );
148 double lineEditValue(
const QLineEdit *lineEdit )
const;
149 void resetClassifyButton();
153 double mMin = std::numeric_limits<double>::quiet_NaN();
154 double mMax = std::numeric_limits<double>::quiet_NaN();
163 #endif // QGSCOLORRAMPSHADERWIDGET_H