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 );
54 bool hasBeenPopulated();
58 void showEvent( QShowEvent * )
override;
65 void onSelectionChanged();
72 QPointer<QgsMessageBarItem> mMessageBarItem;
73 bool mMustPopulate =
false;
87 typedef std::function<void(
const QgsSymbolLayer *,
const QString & )> SymbolLayerCallback;
90 SymbolLayerVisitor( SymbolLayerCallback callback );
95 void visitSymbol(
const QgsSymbol *symbol,
const QString &leafIdentifier, QVector<int> rootPath );
101 QList<QPair<QgsSymbolLayerId, QList<QgsSymbolLayerReference>>> mMasks;
102 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.