23 mDistanceUnitWidget->setUnits( QStringList() <<
tr(
"Millimeter" ) <<
tr(
"Map unit" ), 1 );
28 mXAttributeComboBox->addItem(
"" );
29 mYAttributeComboBox->addItem(
"" );
30 for (
int idx = 0; idx < fm.
count(); ++idx )
32 QString fieldName = fm[idx].name();
33 mXAttributeComboBox->addItem( fieldName );
34 mYAttributeComboBox->addItem( fieldName );
45 if ( layer->
layerType() !=
"VectorField" )
55 mXAttributeComboBox->setCurrentIndex( mXAttributeComboBox->findText(
mLayer->
xAttribute() ) );
56 mYAttributeComboBox->setCurrentIndex( mYAttributeComboBox->findText(
mLayer->
yAttribute() ) );
62 mCartesianRadioButton->setChecked(
true );
66 mPolarRadioButton->setChecked(
true );
70 mHeightRadioButton->setChecked(
true );
76 mClockwiseFromNorthRadioButton->setChecked(
true );
80 mCounterclockwiseFromEastRadioButton->setChecked(
true );
86 mDegreesRadioButton->setChecked(
true );
90 mRadiansRadioButton->setChecked(
true );
93 mDistanceUnitWidget->blockSignals(
true );
96 mDistanceUnitWidget->blockSignals(
false );
106 void QgsVectorFieldSymbolLayerWidget::on_mScaleSpinBox_valueChanged(
double d )
115 void QgsVectorFieldSymbolLayerWidget::on_mXAttributeComboBox_currentIndexChanged(
int index )
124 void QgsVectorFieldSymbolLayerWidget::on_mYAttributeComboBox_currentIndexChanged(
int index )
133 void QgsVectorFieldSymbolLayerWidget::on_mCartesianRadioButton_toggled(
bool checked )
138 mXAttributeComboBox->setEnabled(
true );
139 mYAttributeComboBox->setEnabled(
true );
140 mXAttributeLabel->setText(
tr(
"X attribute" ) );
141 mYAttributeLabel->setText(
tr(
"Y attribute" ) );
146 void QgsVectorFieldSymbolLayerWidget::on_mPolarRadioButton_toggled(
bool checked )
151 mXAttributeComboBox->setEnabled(
true );
152 mYAttributeComboBox->setEnabled(
true );
153 mXAttributeLabel->setText(
tr(
"Length attribute" ) );
154 mYAttributeLabel->setText(
tr(
"Angle attribute" ) );
159 void QgsVectorFieldSymbolLayerWidget::on_mHeightRadioButton_toggled(
bool checked )
164 mXAttributeLabel->setText(
"" );
165 mXAttributeComboBox->setEnabled(
false );
166 mYAttributeLabel->setText(
tr(
"Height attribute" ) );
171 void QgsVectorFieldSymbolLayerWidget::on_mDegreesRadioButton_toggled(
bool checked )
180 void QgsVectorFieldSymbolLayerWidget::on_mRadiansRadioButton_toggled(
bool checked )
189 void QgsVectorFieldSymbolLayerWidget::on_mClockwiseFromNorthRadioButton_toggled(
bool checked )
198 void QgsVectorFieldSymbolLayerWidget::on_mCounterclockwiseFromEastRadioButton_toggled(
bool checked )
207 void QgsVectorFieldSymbolLayerWidget::on_mDistanceUnitWidget_changed()