18#ifndef QGSPROCESSINGRASTERCALCULATOREXPRESSIONLINEEDIT_H
19#define QGSPROCESSINGRASTERCALCULATOREXPRESSIONLINEEDIT_H
28#include "ui_qgsprocessingrastercalculatorexpressiondialogbase.h"
44class GUI_EXPORT QgsProcessingRasterCalculatorExpressionLineEdit :
public QWidget
53 explicit QgsProcessingRasterCalculatorExpressionLineEdit( QWidget *parent
SIP_TRANSFERTHIS =
nullptr );
54 ~QgsProcessingRasterCalculatorExpressionLineEdit()
override;
59 void setLayers(
const QVariantList &layers );
65 QString expression()
const;
73 void expressionChanged(
const QString &expression );
82 void setExpression(
const QString &expression );
86 void expressionEdited(
const QString &expression );
87 void expressionEdited();
90 void editExpression();
94 QToolButton *mButton =
nullptr;
104class GUI_EXPORT QgsProcessingRasterCalculatorExpressionDialog :
public QDialog,
private Ui::QgsProcessingRasterCalculatorExpressionDialogBase
112 QgsProcessingRasterCalculatorExpressionDialog(
const QVariantList &layers,
const QString &startExpression = QString(), QWidget *parent =
nullptr );
119 void setExpression(
const QString &text );
125 QString expression();
128 void mLayersList_itemDoubleClicked( QListWidgetItem *item );
131 void mBtnPlus_clicked();
132 void mBtnMinus_clicked();
133 void mBtnMultiply_clicked();
134 void mBtnDivide_clicked();
135 void mBtnPower_clicked();
136 void mBtnSqrt_clicked();
137 void mBtnOpenBracket_clicked();
138 void mBtnCloseBracket_clicked();
139 void mBtnGreater_clicked();
140 void mBtnGreaterEqual_clicked();
141 void mBtnLess_clicked();
142 void mBtnLessEqual_clicked();
143 void mBtnEqual_clicked();
144 void mBtnNotEqual_clicked();
145 void mBtnAnd_clicked();
146 void mBtnOr_clicked();
147 void mBtnIf_clicked();
148 void mBtnMin_clicked();
149 void mBtnMax_clicked();
150 void mBtnAbs_clicked();
151 void mBtnSin_clicked();
152 void mBtnCos_clicked();
153 void mBtnTan_clicked();
154 void mBtnLog_clicked();
155 void mBtnAsin_clicked();
156 void mBtnAcos_clicked();
157 void mBtnAtan_clicked();
158 void mBtnLn_clicked();
162 void populateLayers();
164 static QString quoteBandEntry(
const QString &layerName );
166 QVariantList mLayers;
167 const QString mInitialText;
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...
Base class for all map layer types.