QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 
29 class GUI_EXPORT QgsPointDisplacementRendererWidget: public QgsRendererV2Widget, private Ui::QgsPointDisplacementRendererWidgetBase
30 {
31  Q_OBJECT
32  public:
33  static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer );
36 
37  QgsFeatureRendererV2* renderer() override;
38  void setMapCanvas( QgsMapCanvas* canvas ) override;
39 
40  private:
42  QgsRendererV2Widget* mEmbeddedRendererWidget;
43 
44  void blockAllSignals( bool block );
45  void updateCenterIcon();
46  void setupBlankUi( const QString& layerName );
47 
48  private slots:
49  void on_mLabelFieldComboBox_currentIndexChanged( const QString& text );
50  void on_mRendererComboBox_currentIndexChanged( int index );
51  void on_mPlacementComboBox_currentIndexChanged( int index );
52  void on_mLabelFontButton_clicked();
53  void on_mCircleWidthSpinBox_valueChanged( double d );
54  void on_mCircleColorButton_colorChanged( const QColor& newColor );
55  void on_mDistanceSpinBox_valueChanged( double d );
56  void on_mDistanceUnitWidget_changed();
57  void on_mLabelColorButton_colorChanged( const QColor& newColor );
58  void on_mCircleModificationSpinBox_valueChanged( double d );
59  void on_mScaleDependentLabelsCheckBox_stateChanged( int state );
60  void on_mMaxScaleDenominatorEdit_textChanged( const QString & text );
61  void on_mCenterSymbolPushButton_clicked();
62  void on_mRendererSettingsButton_clicked();
63 };
64 
65 #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:109
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.