15#ifndef QGSMASKINGWIDGET_H
16#define QGSMASKINGWIDGET_H
26#include "ui_qgsmaskingwidgetbase.h"
40class GUI_EXPORT QgsMaskingWidget :
public QgsPanelWidget,
private Ui::QgsMaskingWidgetBase
45 QgsMaskingWidget( QWidget *parent =
nullptr );
58 void onSelectionChanged();
65 QPointer<QgsMessageBarItem> mMessageBarItem;
67 friend class TestQgsMaskingWidget;
81 typedef std::function<void(
const QgsSymbolLayer *,
const QString & )> SymbolLayerCallback;
84 SymbolLayerVisitor( SymbolLayerCallback callback );
89 void visitSymbol(
const QgsSymbol *symbol,
const QString &leafIdentifier, QVector<int> rootPath );
95 QList<QPair<QgsSymbolLayerId, QList<QgsSymbolLayerReference>>> mMasks;
96 SymbolLayerCallback mCallback;
Represents an item shown within a QgsMessageBar widget.
An interface for classes which can visit style entity (e.g.
virtual bool visitEnter(const QgsStyleEntityVisitorInterface::Node &node)
Called when the visitor starts visiting a node.
virtual bool visit(const QgsStyleEntityVisitorInterface::StyleLeaf &entity)
Called when the visitor will visit a style entity.
Abstract base class for all rendered symbols.
Represents a vector layer which manages a vector based data sets.
Contains information relating to a node (i.e.
Contains information relating to the style entity currently being visited.