QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
qgs25drendererwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgs25drendererwidget.h - Qgs25DRendererWidget
3 
4  ---------------------
5  begin : 14.1.2016
6  copyright : (C) 2016 by Matthias Kuhn
7  email : [email protected]
8  ***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 #ifndef QGS25DRENDERERWIDGET_H
17 #define QGS25DRENDERERWIDGET_H
18 
19 #include "ui_qgs25drendererwidgetbase.h"
20 #include "qgis_sip.h"
21 #include "qgsrendererwidget.h"
22 #include "qgis_gui.h"
23 
24 class Qgs25DRenderer;
25 
30 class GUI_EXPORT Qgs25DRendererWidget : public QgsRendererWidget, protected Ui::Qgs25DRendererWidgetBase
31 {
32  Q_OBJECT
33 
34  public:
35 
42  static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer SIP_TRANSFER ) SIP_FACTORY;
43 
50  Qgs25DRendererWidget( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer SIP_TRANSFER );
51 
52  QgsFeatureRenderer *renderer() override;
53 
54  private slots:
55  void updateRenderer();
56 
57  private:
58  void apply() override SIP_FORCE;
59 
60  Qgs25DRenderer *mRenderer = nullptr;
61 
62  friend class QgsAppScreenShots;
63 };
64 
65 #endif // QGS25DRENDERERWIDGET_H
virtual QgsFeatureRenderer * renderer()=0
Returns pointer to the renderer (no transfer of ownership)
Base class for renderer settings widgets.
#define SIP_FORCE
Definition: qgis_sip.h:131
#define SIP_TRANSFER
Definition: qgis_sip.h:36
#define SIP_FACTORY
Definition: qgis_sip.h:76
Represents a vector layer which manages a vector based data sets.