QGIS API Documentation  2.99.0-Master (c558d51)
qgsinvertedpolygonrendererwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsinvertedpolygonrendererwidget.h
3  ---------------------
4  begin : April 2014
5  copyright : (C) 2014 Hugo Mercier / Oslandia
6  email : hugo dot mercier at oslandia 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 QGSINVERTEDPOLYGONRENDERERWIDGET_H
16 #define QGSINVERTEDPOLYGONRENDERERWIDGET_H
17 
18 #include "ui_qgsinvertedpolygonrendererwidgetbase.h"
20 #include "qgsrendererwidget.h"
21 
22 class QMenu;
23 
29 class GUI_EXPORT QgsInvertedPolygonRendererWidget : public QgsRendererWidget, private Ui::QgsInvertedPolygonRendererWidgetBase
30 {
31  Q_OBJECT
32 
33  public:
34 
40  static QgsRendererWidget* create( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );
41 
48 
50  virtual QgsFeatureRenderer* renderer() override;
51 
52  void setContext( const QgsSymbolWidgetContext& context ) override;
53 
54  protected:
56  QScopedPointer<QgsInvertedPolygonRenderer> mRenderer;
58  QScopedPointer<QgsRendererWidget> mEmbeddedRendererWidget;
59 
60  private slots:
61  void on_mRendererComboBox_currentIndexChanged( int index );
62  void on_mMergePolygonsCheckBox_stateChanged( int state );
63 };
64 
65 
66 #endif // QGSMASKRENDERERV2WIDGET_H
static unsigned index
virtual QgsFeatureRenderer * renderer()=0
return pointer to the renderer (no transfer of ownership)
virtual void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the renderer widget is shown, eg the associated map canvas and expression c...
Base class for renderer settings widgets.
QScopedPointer< QgsInvertedPolygonRenderer > mRenderer
The mask renderer.
Contains settings which reflect the context in which a symbol (or renderer) widget is shown...
A widget used represent options of a QgsInvertedPolygonRenderer.
QScopedPointer< QgsRendererWidget > mEmbeddedRendererWidget
The widget used to represent the mask&#39;s embedded renderer.
Represents a vector layer which manages a vector based data sets.