QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
qgsarrowsymbollayerwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsarrowsymbollayerwidget.h
3 ---------------------
4 begin : February 2016
5 copyright : (C) 2016 by Hugo Mercier / Oslandia
6 email : hugo dot mercier at oslandia dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#ifndef QGSARROWSYMBOLLAYERWIDGET_H
16#define QGSARROWSYMBOLLAYERWIDGET_H
17
18#include "ui_qgsarrowsymbollayerwidgetbase.h"
19#include "qgis_sip.h"
21#include "qgis_gui.h"
22
24
29class GUI_EXPORT QgsArrowSymbolLayerWidget : public QgsSymbolLayerWidget, private Ui::QgsArrowSymbolLayerWidgetBase
30{
31 Q_OBJECT
32
33 public:
39 QgsArrowSymbolLayerWidget( QgsVectorLayer *layer, QWidget *parent SIP_TRANSFERTHIS = nullptr );
40
46
47 void setSymbolLayer( QgsSymbolLayer *layer ) override;
48 QgsSymbolLayer *symbolLayer() override;
49
50 private:
51 QgsArrowSymbolLayer *mLayer = nullptr;
52
53 private slots:
54 void mArrowWidthSpin_valueChanged( double d );
55 void mArrowWidthUnitWidget_changed();
56
57 void mArrowStartWidthSpin_valueChanged( double d );
58 void mArrowStartWidthUnitWidget_changed();
59
60 void mHeadLengthSpin_valueChanged( double d );
61 void mHeadLengthUnitWidget_changed();
62 void mHeadThicknessSpin_valueChanged( double d );
63 void mHeadThicknessUnitWidget_changed();
64
65 void mHeadTypeCombo_currentIndexChanged( int );
66 void mArrowTypeCombo_currentIndexChanged( int );
67
68 void mOffsetSpin_valueChanged( double d );
69 void mOffsetUnitWidget_changed();
70
71 void mCurvedArrowChck_stateChanged( int );
72 void mRepeatArrowChck_stateChanged( int );
73};
74
75#endif
static QgsSymbolLayerWidget * create(QgsVectorLayer *layer)
Static creation method.
Line symbol layer used for representing lines as arrows.
virtual void setSymbolLayer(QgsSymbolLayer *layer)=0
virtual QgsSymbolLayer * symbolLayer()=0
Represents a vector layer which manages a vector based data sets.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53
#define SIP_FACTORY
Definition qgis_sip.h:76