QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 
29 {
30  Q_OBJECT
31 
32  public:
33  static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer );
34 
37 
38  virtual QgsFeatureRendererV2* renderer() override;
39 
40  virtual void setMapCanvas( QgsMapCanvas* canvas ) override;
41 
47  virtual void setDockMode( bool dockMode ) override;
48 
49  public slots:
50  void changeSingleSymbol();
51 
52  void sizeScaleFieldChanged( const QString& fldName );
53  void scaleMethodChanged( QgsSymbolV2::ScaleMethod scaleMethod );
54 
55  void showSymbolLevels();
56 
57  protected:
58 
62 };
63 
64 
65 #endif // QGSSINGLESYMBOLRENDERERV2WIDGET_H
Symbol selector widget that cna be used to select and build a symbol.
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:109
virtual void setDockMode(bool dockMode)
Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs...
ScaleMethod
Scale method.
Definition: qgssymbolv2.h:90
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.