QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 "qgsrendererv2widget.h"
21 
22 class QMenu;
23 
29 class GUI_EXPORT QgsInvertedPolygonRendererWidget : public QgsRendererV2Widget, private Ui::QgsInvertedPolygonRendererWidgetBase
30 {
31  Q_OBJECT
32 
33  public:
39  static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer );
40 
47 
49  virtual QgsFeatureRendererV2* renderer() override;
50  void setMapCanvas( QgsMapCanvas* canvas ) override;
51 
52  protected:
57 
58  private slots:
59  void on_mRendererComboBox_currentIndexChanged( int index );
60  void on_mMergePolygonsCheckBox_stateChanged( int state );
61 };
62 
63 
64 #endif // QGSMASKRENDERERV2WIDGET_H
static unsigned index
void create(WId window, bool initializeWindow, bool destroyOldWindow)
QScopedPointer< QgsInvertedPolygonRenderer > mRenderer
The mask renderer.
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:109
QScopedPointer< QgsRendererV2Widget > mEmbeddedRendererWidget
The widget used to represent the mask&#39;s embedded renderer.
A widget used represent options of a QgsInvertedPolygonRenderer.
Base class for renderer settings widgets.
Represents a vector layer which manages a vector based data sets.
virtual QgsFeatureRendererV2 * renderer()=0
return pointer to the renderer (no transfer of ownership)
virtual void setMapCanvas(QgsMapCanvas *canvas)
Sets the map canvas associated with the widget.