QGIS API Documentation  2.12.0-Lyon
qgspointdisplacementrendererwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgspointdisplacementrendererwidget.h
3  ------------------------------------
4  begin : January 26, 2010
5  copyright : (C) 2010 by Marco Hugentobler
6  email : marco at hugis dot net
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSPOINTDISPLACEMENTRENDERERWIDGET_H
19 #define QGSPOINTDISPLACEMENTRENDERERWIDGET_H
20 
21 #include "ui_qgspointdisplacementrendererwidgetbase.h"
22 #include "qgsrendererv2widget.h"
23 
25 
26 class GUI_EXPORT QgsPointDisplacementRendererWidget: public QgsRendererV2Widget, private Ui::QgsPointDisplacementRendererWidgetBase
27 {
28  Q_OBJECT
29  public:
30  static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer );
33 
34  QgsFeatureRendererV2* renderer() override;
35  void setMapCanvas( QgsMapCanvas* canvas ) override;
36 
37  private:
39  QgsRendererV2Widget* mEmbeddedRendererWidget;
40 
41  void blockAllSignals( bool block );
42  void updateCenterIcon();
43  void setupBlankUi( const QString& layerName );
44 
45  private slots:
46  void on_mLabelFieldComboBox_currentIndexChanged( const QString& text );
47  void on_mRendererComboBox_currentIndexChanged( int index );
48  void on_mPlacementComboBox_currentIndexChanged( int index );
49  void on_mLabelFontButton_clicked();
50  void on_mCircleWidthSpinBox_valueChanged( double d );
51  void on_mCircleColorButton_colorChanged( const QColor& newColor );
52  void on_mDistanceSpinBox_valueChanged( double d );
53  void on_mDistanceUnitWidget_changed();
54  void on_mLabelColorButton_colorChanged( const QColor& newColor );
55  void on_mCircleModificationSpinBox_valueChanged( double d );
56  void on_mScaleDependentLabelsCheckBox_stateChanged( int state );
57  void on_mMaxScaleDenominatorEdit_textChanged( const QString & text );
58  void on_mCenterSymbolPushButton_clicked();
59  void on_mRendererSettingsButton_clicked();
60 };
61 
62 #endif // QGSPOINTDISPLACEMENTRENDERERWIDGET_H
static unsigned index
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:107
A renderer that automatically displaces points with the same position.
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.