15 #ifndef QGSRENDERERWIDGET_H 16 #define QGSRENDERERWIDGET_H 20 #include <QStackedWidget> 89 void layerVariablesChanged();
94 void symbolLevelsChanged();
99 QMenu *contextMenu =
nullptr;
100 QAction *mCopyAction =
nullptr;
101 QAction *mPasteAction =
nullptr;
107 QAction *mCopySymbolAction =
nullptr;
113 QAction *mPasteSymbolAction =
nullptr;
132 void contextMenuViewCategories( QPoint p );
134 void changeSymbolColor();
136 void changeSymbolOpacity();
138 void changeSymbolUnit();
140 void changeSymbolWidth();
142 void changeSymbolSize();
144 void changeSymbolAngle();
155 virtual void pasteSymbolToSelection();
181 #include "ui_widget_set_dd_value.h" 182 #include "qgis_gui.h" 226 void dataDefinedChanged();
235 void init(
int propertyKey );
244 QList<QgsSymbol *> mSymbolList;
264 if ( !symbolList.isEmpty() && symbolList.at( 0 ) &&
vectorLayer() )
266 mAssistantSymbol.reset( static_cast<const QgsMarkerSymbol *>( symbolList.at( 0 ) )->clone() );
267 mDDBtn->setSymbol( mAssistantSymbol );
280 std::shared_ptr< QgsMarkerSymbol > mAssistantSymbol;
329 #endif // QGSRENDERERWIDGET_H double value(const QgsSymbol *symbol) const override
Abstract base class for all rendered symbols.
double value(const QgsSymbol *symbol) const override
Container of fields for a vector layer.
Map canvas is a class for displaying all GIS data types on a canvas.
double ANALYSIS_EXPORT angle(QgsPoint *p1, QgsPoint *p2, QgsPoint *p3, QgsPoint *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
A marker symbol type, for rendering Point and MultiPoint geometries.
A line symbol type, for rendering LineString and MultiLineString geometries.
Utility classes for "en masse" size definition.
virtual QgsExpressionContext createExpressionContext() const =0
This method needs to be reimplemented in all classes which implement this interface and return an exp...
Contains settings which reflect the context in which a symbol (or renderer) widget is shown...
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Encapsulate a field in an attribute table or data source.
A store for object properties.
Abstract interface for generating an expression context.
double value(const QgsSymbol *symbol) const override
const QgsVectorLayer * vectorLayer() const
Returns the vector layer associated with the widget.
void init(int propertyKey)
Should be called in the constructor of child classes.
QgsDataDefinedRotationDialog(const QList< QgsSymbol *> &symbolList, QgsVectorLayer *layer)
QgsDataDefinedSizeDialog(const QList< QgsSymbol *> &symbolList, QgsVectorLayer *layer)
QgsDataDefinedWidthDialog(const QList< QgsSymbol *> &symbolList, QgsVectorLayer *layer)
Represents a vector layer which manages a vector based data sets.
Object that keeps configuration of appearance of marker symbol's data-defined size in legend...