QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
35 
36  private:
39 
40  void blockAllSignals( bool block );
41  void updateCenterIcon();
42  void setupBlankUi( const QString& layerName );
43 
44  private slots:
45  void on_mLabelFieldComboBox_currentIndexChanged( const QString& text );
46  void on_mRendererComboBox_currentIndexChanged( int index );
47  void on_mLabelFontButton_clicked();
48  void on_mCircleWidthSpinBox_valueChanged( double d );
49  void on_mCircleColorButton_colorChanged( const QColor& newColor );
50  void on_mDistanceSpinBox_valueChanged( double d );
51  void on_mLabelColorButton_colorChanged( const QColor& newColor );
52  void on_mCircleModificationSpinBox_valueChanged( double d );
53  void on_mScaleDependentLabelsCheckBox_stateChanged( int state );
54  void on_mMaxScaleDenominatorEdit_textChanged( const QString & text );
55  void on_mCenterSymbolPushButton_clicked();
56  void on_mRendererSettingsButton_clicked();
57 };
58 
59 #endif // QGSPOINTDISPLACEMENTRENDERERWIDGET_H