QGIS API Documentation  3.24.2-Tisler (13c1a02865)
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"
20 #include "qgssymbollayerwidget.h"
21 #include "qgis_gui.h"
22 
24 
29 class GUI_EXPORT QgsArrowSymbolLayerWidget: public QgsSymbolLayerWidget, private Ui::QgsArrowSymbolLayerWidgetBase
30 {
31  Q_OBJECT
32 
33  public:
34 
40  QgsArrowSymbolLayerWidget( QgsVectorLayer *layer, QWidget *parent SIP_TRANSFERTHIS = nullptr );
41 
47 
48  void setSymbolLayer( QgsSymbolLayer *layer ) override;
49  QgsSymbolLayer *symbolLayer() override;
50 
51  private:
52  QgsArrowSymbolLayer *mLayer = nullptr;
53 
54  private slots:
55  void mArrowWidthSpin_valueChanged( double d );
56  void mArrowWidthUnitWidget_changed();
57 
58  void mArrowStartWidthSpin_valueChanged( double d );
59  void mArrowStartWidthUnitWidget_changed();
60 
61  void mHeadLengthSpin_valueChanged( double d );
62  void mHeadLengthUnitWidget_changed();
63  void mHeadThicknessSpin_valueChanged( double d );
64  void mHeadThicknessUnitWidget_changed();
65 
66  void mHeadTypeCombo_currentIndexChanged( int );
67  void mArrowTypeCombo_currentIndexChanged( int );
68 
69  void mOffsetSpin_valueChanged( double d );
70  void mOffsetUnitWidget_changed();
71 
72  void mCurvedArrowChck_stateChanged( int );
73  void mRepeatArrowChck_stateChanged( int );
74 };
75 
76 #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