QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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();
36 
37  public slots:
38  void changeSingleSymbol();
39 
40  void rotationFieldChanged( QString fldName );
41  void sizeScaleFieldChanged( QString fldName );
42  void scaleMethodChanged( QgsSymbolV2::ScaleMethod scaleMethod );
43 
44  void showSymbolLevels();
45 
46  protected:
47 
51 
53 };
54 
55 
56 #endif // QGSSINGLESYMBOLRENDERERV2WIDGET_H
Utility class for providing GUI for data-defined rendering.
QgsRendererV2DataDefinedMenus * mDataDefinedMenus
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)