15#ifndef QGSFIELDCONDITIONALFORMATWIDGET_H
16#define QGSFIELDCONDITIONALFORMATWIDGET_H
19#include <QStandardItemModel>
20#include <QStandardItem>
24#include "ui_qgsfieldconditionalformatwidget.h"
25#include "ui_qgseditconditionalformatrulewidget.h"
81 void setPresets(
const QList<QgsConditionalStyle> &styles );
87 static QList<QgsConditionalStyle> defaultPresets();
103 bool mEditing =
false;
104 bool mPanelHandled =
false;
105 QStandardItemModel *mModel =
nullptr;
107 QList<QgsConditionalStyle> mPresets;
113 void ruleClicked(
const QModelIndex &index );
116 void fieldChanged(
const QString &fieldName );
117 void deleteCurrentRule();
146 void setPresets(
const QList<QgsConditionalStyle> &styles );
165 void setRule(
const QString &rule );
187 bool mEditing =
false;
188 QStandardItemModel *mModel =
nullptr;
189 QStandardItemModel *mPresetsModel =
nullptr;
190 QList<QgsConditionalStyle> mPresets;
195 void setExpression();
196 void presetSet(
int index );
Conditional styling for a rule.
Represents a vector layer which manages a vector based data sets.
QDomDocument getStyles(QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request)
Returns an SLD file with the styles of the requested layers.