QGIS API Documentation  2.17.0-Master (bf77d09)
qgsellipsesymbollayerv2widget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsellipsesymbollayerv2widget.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 QGSELLIPSESYMBOLLAYERV2WIDGET_H
16 #define QGSELLIPSESYMBOLLAYERV2WIDGET_H
17 
18 #include "ui_widget_ellipse.h"
19 #include "qgssymbollayerv2widget.h"
20 
22 
26 class GUI_EXPORT QgsEllipseSymbolLayerV2Widget: public QgsSymbolLayerV2Widget, private Ui::WidgetEllipseBase
27 {
28  Q_OBJECT
29 
30  public:
31  QgsEllipseSymbolLayerV2Widget( const QgsVectorLayer* vl, QWidget* parent = nullptr );
32 
34 
35  // from base class
36  virtual void setSymbolLayer( QgsSymbolLayerV2* layer ) override;
37  virtual QgsSymbolLayerV2* symbolLayer() override;
38 
39  protected:
41 
42  private:
43  void blockComboSignals( bool block );
44 
45  private slots:
46  void on_mShapeListWidget_itemSelectionChanged();
47  void on_mWidthSpinBox_valueChanged( double d );
48  void on_mHeightSpinBox_valueChanged( double d );
49  void on_mRotationSpinBox_valueChanged( double d );
50  void on_mOutlineStyleComboBox_currentIndexChanged( int index );
51  void on_mOutlineWidthSpinBox_valueChanged( double d );
52  void on_btnChangeColorBorder_colorChanged( const QColor& newColor );
53  void on_btnChangeColorFill_colorChanged( const QColor& newColor );
54 
55  void on_mSymbolWidthUnitWidget_changed();
56  void on_mOutlineWidthUnitWidget_changed();
57  void on_mSymbolHeightUnitWidget_changed();
58  void on_mOffsetUnitWidget_changed();
59  void on_mHorizontalAnchorComboBox_currentIndexChanged( int index );
60  void on_mVerticalAnchorComboBox_currentIndexChanged( int index );
61 
62  void penJoinStyleChanged();
63 
64  void setOffset();
65 };
66 
67 #endif // QGSELLIPSESYMBOLLAYERV2WIDGET_H
virtual void setSymbolLayer(QgsSymbolLayerV2 *layer)=0
static unsigned index
static QgsSymbolLayerV2Widget * create(const QgsVectorLayer *vl)
A symbol layer for rendering objects with major and minor axis (e.g.
virtual QgsSymbolLayerV2 * symbolLayer()=0
Represents a vector layer which manages a vector based data sets.