32 connect( mArrowWidthSpin,
static_cast<void ( QDoubleSpinBox::* )(
double )
>( &QDoubleSpinBox::valueChanged ),
this, &QgsArrowSymbolLayerWidget::mArrowWidthSpin_valueChanged );
34 connect( mArrowStartWidthSpin,
static_cast<void ( QDoubleSpinBox::* )(
double )
>( &QDoubleSpinBox::valueChanged ),
this, &QgsArrowSymbolLayerWidget::mArrowStartWidthSpin_valueChanged );
36 connect( mHeadLengthSpin,
static_cast<void ( QDoubleSpinBox::* )(
double )
>( &QDoubleSpinBox::valueChanged ),
this, &QgsArrowSymbolLayerWidget::mHeadLengthSpin_valueChanged );
38 connect( mHeadThicknessSpin,
static_cast<void ( QDoubleSpinBox::* )(
double )
>( &QDoubleSpinBox::valueChanged ),
this, &QgsArrowSymbolLayerWidget::mHeadThicknessSpin_valueChanged );
40 connect( mHeadTypeCombo,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
this, &QgsArrowSymbolLayerWidget::mHeadTypeCombo_currentIndexChanged );
41 connect( mArrowTypeCombo,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
this, &QgsArrowSymbolLayerWidget::mArrowTypeCombo_currentIndexChanged );
42 connect( mOffsetSpin,
static_cast<void ( QDoubleSpinBox::* )(
double )
>( &QDoubleSpinBox::valueChanged ),
this, &QgsArrowSymbolLayerWidget::mOffsetSpin_valueChanged );
44 connect( mCurvedArrowCheck, &QCheckBox::stateChanged,
this, &QgsArrowSymbolLayerWidget::mCurvedArrowChck_stateChanged );
45 connect( mRepeatArrowCheck, &QCheckBox::stateChanged,
this, &QgsArrowSymbolLayerWidget::mRepeatArrowChck_stateChanged );
46 this->layout()->setContentsMargins( 0, 0, 0, 0 );
54 mOffsetSpin->setClearValue( 0.0 );
59 if ( !layer || layer->
layerType() !=
"ArrowLine"_L1 )
66 mArrowWidthSpin->setValue( mLayer->arrowWidth() );
67 mArrowWidthUnitWidget->setUnit( mLayer->arrowWidthUnit() );
68 mArrowWidthUnitWidget->
setMapUnitScale( mLayer->arrowWidthUnitScale() );
70 mArrowStartWidthSpin->setValue( mLayer->arrowStartWidth() );
71 mArrowStartWidthUnitWidget->setUnit( mLayer->arrowStartWidthUnit() );
72 mArrowStartWidthUnitWidget->setMapUnitScale( mLayer->arrowStartWidthUnitScale() );
74 mHeadLengthSpin->setValue( mLayer->headLength() );
75 mHeadLengthUnitWidget->setUnit( mLayer->headLengthUnit() );
76 mHeadLengthUnitWidget->setMapUnitScale( mLayer->headLengthUnitScale() );
77 mHeadThicknessSpin->setValue( mLayer->headThickness() );
78 mHeadThicknessUnitWidget->setUnit( mLayer->headThicknessUnit() );
79 mHeadThicknessUnitWidget->setMapUnitScale( mLayer->headThicknessUnitScale() );
81 mHeadTypeCombo->setCurrentIndex( mLayer->headType() );
82 mArrowTypeCombo->setCurrentIndex( mLayer->arrowType() );
84 mOffsetSpin->setValue( mLayer->offset() );
85 mOffsetUnitWidget->setUnit( mLayer->offsetUnit() );
86 mOffsetUnitWidget->setMapUnitScale( mLayer->offsetMapUnitScale() );
88 mCurvedArrowCheck->setChecked( mLayer->isCurved() );
89 mRepeatArrowCheck->setChecked( mLayer->isRepeated() );