QGIS API Documentation  2.15.0-Master (972fc9f)
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 
44  virtual void setDockMode( bool dockMode ) override;
45 
46  public slots:
47  void changeSingleSymbol();
48 
49  void sizeScaleFieldChanged( const QString& fldName );
50  void scaleMethodChanged( QgsSymbolV2::ScaleMethod scaleMethod );
51 
52  void showSymbolLevels();
53 
54  protected:
55 
59 };
60 
61 
62 #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: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.