QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
51  protected:
53  QScopedPointer<QgsInvertedPolygonRenderer> mRenderer;
55  QScopedPointer<QgsRendererV2Widget> mEmbeddedRendererWidget;
56 
57  private slots:
58  void on_mRendererComboBox_currentIndexChanged( int index );
59  void on_mMergePolygonsCheckBox_stateChanged( int state );
60 };
61 
62 
63 #endif // QGSMASKRENDERERV2WIDGET_H