QGIS API Documentation 3.39.0-Master (699c004a5df)
Loading...
Searching...
No Matches
qgsmergedfeaturerendererwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmergedfeaturerendererwidget.h
3 ---------------------
4 begin : December 2020
5 copyright : (C) 2020 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#ifndef QGSMERGEDFEATURERENDERERWIDGET_H
16#define QGSMERGEDFEATURERENDERERWIDGET_H
17
18#include "ui_qgsmergedfeaturerendererwidgetbase.h"
19#include "qgis_sip.h"
20#include "qgsrendererwidget.h"
21#include "qgis_gui.h"
22
23class QMenu;
25
32class GUI_EXPORT QgsMergedFeatureRendererWidget : public QgsRendererWidget, private Ui::QgsMergedFeatureRendererWidgetBase
33{
34 Q_OBJECT
35
36 public:
37
44 static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer ) SIP_FACTORY;
45
54
55 QgsFeatureRenderer *renderer() override;
56 void setContext( const QgsSymbolWidgetContext &context ) override;
57 void setDockMode( bool dockMode ) override;
58
59 private:
61 std::unique_ptr<QgsMergedFeatureRenderer> mRenderer;
63 std::unique_ptr<QgsRendererWidget> mEmbeddedRendererWidget;
64
65 private slots:
66 void mRendererComboBox_currentIndexChanged( int index );
67};
68
69
70#endif // QGSMERGEDFEATURERENDERERWIDGET_H
Abstract base class for all 2D vector feature renderers.
A widget used represent options of a QgsMergedFeatureRenderer.
~QgsMergedFeatureRendererWidget() override
QgsMergedFeatureRenderer is a polygon or line-only feature renderer used to renderer a set of feature...
Base class for renderer settings widgets.
void setDockMode(bool dockMode) override
Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs.
virtual void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the renderer widget is shown, e.g., the associated map canvas and expressio...
virtual QgsFeatureRenderer * renderer()=0
Returns pointer to the renderer (no transfer of ownership)
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Represents a vector layer which manages a vector based data sets.
#define SIP_FACTORY
Definition qgis_sip.h:76