QGIS API Documentation  2.15.0-Master (af20121)
qgssinglesymbolrendererv2widget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgssinglesymbolrendererv2widget.h
3  ---------------------
4  begin : November 2009
5  copyright : (C) 2009 by Martin Dobias
6  email : wonder dot sk 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 QGSSINGLESYMBOLRENDERERV2WIDGET_H
16 #define QGSSINGLESYMBOLRENDERERV2WIDGET_H
17 
18 #include "qgsrendererv2widget.h"
19 
22 
23 class QMenu;
24 
26 {
27  Q_OBJECT
28 
29  public:
30  static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer );
31 
34 
35  virtual QgsFeatureRendererV2* renderer() override;
36 
37  virtual void setMapCanvas( QgsMapCanvas* canvas ) override;
38 
39  public slots:
40  void changeSingleSymbol();
41 
42  void sizeScaleFieldChanged( const QString& fldName );
43  void scaleMethodChanged( QgsSymbolV2::ScaleMethod scaleMethod );
44 
45  void showSymbolLevels();
46 
47  protected:
48 
52 };
53 
54 
55 #endif // QGSSINGLESYMBOLRENDERERV2WIDGET_H
void create(WId window, bool initializeWindow, bool destroyOldWindow)
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:108
ScaleMethod
Scale method.
Definition: qgssymbolv2.h:87
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.