QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
23 class GUI_EXPORT QgsEllipseSymbolLayerV2Widget: public QgsSymbolLayerV2Widget, private Ui::WidgetEllipseBase
24 {
25  Q_OBJECT
26 
27  public:
28  QgsEllipseSymbolLayerV2Widget( const QgsVectorLayer* vl, QWidget* parent = 0 );
29 
31 
32  // from base class
33  virtual void setSymbolLayer( QgsSymbolLayerV2* layer ) override;
34  virtual QgsSymbolLayerV2* symbolLayer() override;
35 
36  protected:
38 
39  private:
40  void blockComboSignals( bool block );
41 
42  private slots:
43  void on_mShapeListWidget_itemSelectionChanged();
44  void on_mWidthSpinBox_valueChanged( double d );
45  void on_mHeightSpinBox_valueChanged( double d );
46  void on_mRotationSpinBox_valueChanged( double d );
47  void on_mOutlineStyleComboBox_currentIndexChanged( int index );
48  void on_mOutlineWidthSpinBox_valueChanged( double d );
49  void on_btnChangeColorBorder_colorChanged( const QColor& newColor );
50  void on_btnChangeColorFill_colorChanged( const QColor& newColor );
51 
52  void on_mSymbolWidthUnitWidget_changed();
53  void on_mOutlineWidthUnitWidget_changed();
54  void on_mSymbolHeightUnitWidget_changed();
55  void on_mOffsetUnitWidget_changed();
56  void on_mHorizontalAnchorComboBox_currentIndexChanged( int index );
57  void on_mVerticalAnchorComboBox_currentIndexChanged( int index );
58 
59  void setOffset();
60 };
61 
62 #endif // QGSELLIPSESYMBOLLAYERV2WIDGET_H