|
QGIS API Documentation
master-3f58142
|
00001 /*************************************************************************** 00002 qgsvectorfieldsymbollayerwidget.h 00003 --------------------- 00004 begin : October 2011 00005 copyright : (C) 2011 by Marco Hugentobler 00006 email : marco dot hugentobler at sourcepole dot ch 00007 *************************************************************************** 00008 * * 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; either version 2 of the License, or * 00012 * (at your option) any later version. * 00013 * * 00014 ***************************************************************************/ 00015 #ifndef QGSVECTORFIELDSYMBOLLAYERWIDGET_H 00016 #define QGSVECTORFIELDSYMBOLLAYERWIDGET_H 00017 00018 #include "qgssymbollayerv2widget.h" 00019 #include "ui_widget_vectorfield.h" 00020 00021 class QgsVectorFieldSymbolLayer; 00022 00023 class GUI_EXPORT QgsVectorFieldSymbolLayerWidget: public QgsSymbolLayerV2Widget, private Ui::WidgetVectorFieldBase 00024 { 00025 Q_OBJECT 00026 public: 00027 QgsVectorFieldSymbolLayerWidget( const QgsVectorLayer* vl, QWidget* parent = 0 ); 00028 ~QgsVectorFieldSymbolLayerWidget(); 00029 00030 static QgsSymbolLayerV2Widget* create( const QgsVectorLayer* vl ) { return new QgsVectorFieldSymbolLayerWidget( vl ); } 00031 00032 // from base class 00033 virtual void setSymbolLayer( QgsSymbolLayerV2* layer ); 00034 virtual QgsSymbolLayerV2* symbolLayer(); 00035 00036 protected: 00037 QgsVectorFieldSymbolLayer* mLayer; 00038 00039 private slots: 00040 void on_mScaleSpinBox_valueChanged( double d ); 00041 void on_mXAttributeComboBox_currentIndexChanged( int index ); 00042 void on_mYAttributeComboBox_currentIndexChanged( int index ); 00043 void on_mCartesianRadioButton_toggled( bool checked ); 00044 void on_mPolarRadioButton_toggled( bool checked ); 00045 void on_mHeightRadioButton_toggled( bool checked ); 00046 void on_mDegreesRadioButton_toggled( bool checked ); 00047 void on_mRadiansRadioButton_toggled( bool checked ); 00048 void on_mClockwiseFromNorthRadioButton_toggled( bool checked ); 00049 void on_mCounterclockwiseFromEastRadioButton_toggled( bool checked ); 00050 void on_mDistanceUnitComboBox_currentIndexChanged( int index ); 00051 }; 00052 00053 #endif // QGSVECTORFIELDSYMBOLLAYERWIDGET_H