|
QGIS API Documentation
master-28efcda
|
00001 /*************************************************************************** 00002 qgspointdisplacementrendererwidget.h 00003 ------------------------------------ 00004 begin : January 26, 2010 00005 copyright : (C) 2010 by Marco Hugentobler 00006 email : marco at hugis dot net 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef QGSPOINTDISPLACEMENTRENDERERWIDGET_H 00019 #define QGSPOINTDISPLACEMENTRENDERERWIDGET_H 00020 00021 #include "ui_qgspointdisplacementrendererwidgetbase.h" 00022 #include "qgsrendererv2widget.h" 00023 00024 class QgsPointDisplacementRenderer; 00025 00026 class GUI_EXPORT QgsPointDisplacementRendererWidget: public QgsRendererV2Widget, private Ui::QgsPointDisplacementRendererWidgetBase 00027 { 00028 Q_OBJECT 00029 public: 00030 static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer ); 00031 QgsPointDisplacementRendererWidget( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer ); 00032 ~QgsPointDisplacementRendererWidget(); 00033 00034 QgsFeatureRendererV2* renderer(); 00035 00036 private: 00037 QgsPointDisplacementRenderer* mRenderer; 00038 QgsRendererV2Widget* mEmbeddedRendererWidget; 00039 00040 void blockAllSignals( bool block ); 00041 void updateCenterIcon(); 00042 void setupBlankUi( const QString& layerName ); 00043 00044 private slots: 00045 void on_mLabelFieldComboBox_currentIndexChanged( const QString& text ); 00046 void on_mRendererComboBox_currentIndexChanged( int index ); 00047 void on_mLabelFontButton_clicked(); 00048 void on_mCircleWidthSpinBox_valueChanged( double d ); 00049 void on_mCircleColorButton_colorChanged( const QColor& newColor ); 00050 void on_mDistanceSpinBox_valueChanged( double d ); 00051 void on_mLabelColorButton_colorChanged( const QColor& newColor ); 00052 void on_mCircleModificationSpinBox_valueChanged( double d ); 00053 void on_mScaleDependentLabelsCheckBox_stateChanged( int state ); 00054 void on_mMaxScaleDenominatorEdit_textChanged( const QString & text ); 00055 void on_mCenterSymbolPushButton_clicked(); 00056 void on_mRendererSettingsButton_clicked(); 00057 }; 00058 00059 #endif // QGSPOINTDISPLACEMENTRENDERERWIDGET_H