29 connect( mArrowWidthSpin,
static_cast<void ( QDoubleSpinBox::* )(
double )
>( &QDoubleSpinBox::valueChanged ),
this, &QgsArrowSymbolLayerWidget::mArrowWidthSpin_valueChanged );
31 connect( mArrowStartWidthSpin,
static_cast<void ( QDoubleSpinBox::* )(
double )
>( &QDoubleSpinBox::valueChanged ),
this, &QgsArrowSymbolLayerWidget::mArrowStartWidthSpin_valueChanged );
33 connect( mHeadLengthSpin,
static_cast<void ( QDoubleSpinBox::* )(
double )
>( &QDoubleSpinBox::valueChanged ),
this, &QgsArrowSymbolLayerWidget::mHeadLengthSpin_valueChanged );
35 connect( mHeadThicknessSpin,
static_cast<void ( QDoubleSpinBox::* )(
double )
>( &QDoubleSpinBox::valueChanged ),
this, &QgsArrowSymbolLayerWidget::mHeadThicknessSpin_valueChanged );
37 connect( mHeadTypeCombo,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
this, &QgsArrowSymbolLayerWidget::mHeadTypeCombo_currentIndexChanged );
38 connect( mArrowTypeCombo,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
this, &QgsArrowSymbolLayerWidget::mArrowTypeCombo_currentIndexChanged );
39 connect( mOffsetSpin,
static_cast<void ( QDoubleSpinBox::* )(
double )
>( &QDoubleSpinBox::valueChanged ),
this, &QgsArrowSymbolLayerWidget::mOffsetSpin_valueChanged );
41 connect( mCurvedArrowCheck, &QCheckBox::stateChanged,
this, &QgsArrowSymbolLayerWidget::mCurvedArrowChck_stateChanged );
42 connect( mRepeatArrowCheck, &QCheckBox::stateChanged,
this, &QgsArrowSymbolLayerWidget::mRepeatArrowChck_stateChanged );
43 this->layout()->setContentsMargins( 0, 0, 0, 0 );
51 mOffsetSpin->setClearValue( 0.0 );
56 if ( !layer || layer->
layerType() != QLatin1String(
"ArrowLine" ) )
63 mArrowWidthSpin->setValue( mLayer->arrowWidth() );
64 mArrowWidthUnitWidget->setUnit( mLayer->arrowWidthUnit() );
65 mArrowWidthUnitWidget->
setMapUnitScale( mLayer->arrowWidthUnitScale() );
67 mArrowStartWidthSpin->setValue( mLayer->arrowStartWidth() );
68 mArrowStartWidthUnitWidget->setUnit( mLayer->arrowStartWidthUnit() );
69 mArrowStartWidthUnitWidget->setMapUnitScale( mLayer->arrowStartWidthUnitScale() );
71 mHeadLengthSpin->setValue( mLayer->headLength() );
72 mHeadLengthUnitWidget->setUnit( mLayer->headLengthUnit() );
73 mHeadLengthUnitWidget->setMapUnitScale( mLayer->headLengthUnitScale() );
74 mHeadThicknessSpin->setValue( mLayer->headThickness() );
75 mHeadThicknessUnitWidget->setUnit( mLayer->headThicknessUnit() );
76 mHeadThicknessUnitWidget->setMapUnitScale( mLayer->headThicknessUnitScale() );
78 mHeadTypeCombo->setCurrentIndex( mLayer->headType() );
79 mArrowTypeCombo->setCurrentIndex( mLayer->arrowType() );
81 mOffsetSpin->setValue( mLayer->offset() );
82 mOffsetUnitWidget->setUnit( mLayer->offsetUnit() );
83 mOffsetUnitWidget->setMapUnitScale( mLayer->offsetMapUnitScale() );
85 mCurvedArrowCheck->setChecked( mLayer->isCurved() );
86 mRepeatArrowCheck->setChecked( mLayer->isRepeated() );