QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgsheatmaprendererwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsheatmaprendererwidget.h
3  --------------------------
4  begin : November 2014
5  copyright : (C) 2014 Nyall Dawson
6  email : nyall dot dawson 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 QGSHEATMAPRENDERERWIDGET_H
16 #define QGSHEATMAPRENDERERWIDGET_H
17 
18 #include "ui_qgsheatmaprendererwidgetbase.h"
19 #include "qgsheatmaprenderer.h"
20 #include "qgsrendererv2widget.h"
21 
22 class QMenu;
23 
24 class GUI_EXPORT QgsHeatmapRendererWidget : public QgsRendererV2Widget, private Ui::QgsHeatmapRendererWidgetBase
25 {
26  Q_OBJECT
27 
28  public:
34  static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer );
35 
42 
44  virtual QgsFeatureRendererV2* renderer() override;
45 
46  protected:
48 
49  private slots:
50 
51  void applyColorRamp();
52  void on_mButtonEditRamp_clicked();
53  void on_mRadiusUnitWidget_changed();
54  void on_mRadiusSpinBox_valueChanged( double d );
55  void on_mMaxSpinBox_valueChanged( double d );
56  void on_mQualitySlider_valueChanged( int v );
57  void on_mInvertCheckBox_toggled( bool v );
58  void weightExpressionChanged( QString expression );
59 
60 };
61 
62 
63 #endif // QGSHEATMAPRENDERERWIDGET_H