QGIS API Documentation  3.6.0-Noosa (5873452)
qgsellipsesymbollayerwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsellipsesymbollayerwidget.h
3  ---------------------
4  begin : June 2011
5  copyright : (C) 2011 by Marco Hugentobler
6  email : marco dot hugentobler at sourcepole dot ch
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 QGSELLIPSESYMBOLLAYERWIDGET_H
16 #define QGSELLIPSESYMBOLLAYERWIDGET_H
17 
18 #include "ui_widget_ellipse.h"
19 #include "qgis_sip.h"
20 #include "qgssymbollayerwidget.h"
21 #include "qgis_gui.h"
22 
24 
29 class GUI_EXPORT QgsEllipseSymbolLayerWidget: public QgsSymbolLayerWidget, private Ui::WidgetEllipseBase
30 {
31  Q_OBJECT
32 
33  public:
34 
40  QgsEllipseSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
41 
47 
48  // from base class
49  void setSymbolLayer( QgsSymbolLayer *layer ) override;
50  QgsSymbolLayer *symbolLayer() override;
51 
52  protected:
53  QgsEllipseSymbolLayer *mLayer = nullptr;
54 
55  private:
56  void blockComboSignals( bool block );
57 
58  private slots:
59  void mShapeListWidget_itemSelectionChanged();
60  void mWidthSpinBox_valueChanged( double d );
61  void mHeightSpinBox_valueChanged( double d );
62  void mRotationSpinBox_valueChanged( double d );
63  void mStrokeStyleComboBox_currentIndexChanged( int index );
64  void mStrokeWidthSpinBox_valueChanged( double d );
65  void btnChangeColorStroke_colorChanged( const QColor &newColor );
66  void btnChangeColorFill_colorChanged( const QColor &newColor );
67 
68  void mSymbolWidthUnitWidget_changed();
69  void mStrokeWidthUnitWidget_changed();
70  void mSymbolHeightUnitWidget_changed();
71  void mOffsetUnitWidget_changed();
72  void mHorizontalAnchorComboBox_currentIndexChanged( int index );
73  void mVerticalAnchorComboBox_currentIndexChanged( int index );
74 
75  void penJoinStyleChanged();
76 
77  void setOffset();
78 };
79 
80 #endif // QGSELLIPSESYMBOLLAYERWIDGET_H
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:46
static QgsSymbolLayerWidget * create(QgsVectorLayer *vl)
Creates a new QgsSymbolLayerWidget.
virtual void setSymbolLayer(QgsSymbolLayer *layer)=0
A symbol layer for rendering objects with major and minor axis (e.g.
virtual QgsSymbolLayer * symbolLayer()=0
#define SIP_FACTORY
Definition: qgis_sip.h:69
Represents a vector layer which manages a vector based data sets.