QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
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"
21#include "qgis_gui.h"
22
24
29class GUI_EXPORT QgsEllipseSymbolLayerWidget : public QgsSymbolLayerWidget, private Ui::WidgetEllipseBase
30{
31 Q_OBJECT
32
33 public:
39 QgsEllipseSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
40
46
47 // from base class
48 void setSymbolLayer( QgsSymbolLayer *layer ) override;
49 QgsSymbolLayer *symbolLayer() override;
50
51 protected:
52 QgsEllipseSymbolLayer *mLayer = nullptr;
53
54 private:
55 void blockComboSignals( bool block );
56
57 private slots:
58 void mShapeListWidget_itemSelectionChanged();
59 void mWidthSpinBox_valueChanged( double d );
60 void mHeightSpinBox_valueChanged( double d );
61 void mRotationSpinBox_valueChanged( double d );
62 void mStrokeStyleComboBox_currentIndexChanged( int index );
63 void mStrokeWidthSpinBox_valueChanged( double d );
64 void btnChangeColorStroke_colorChanged( const QColor &newColor );
65 void btnChangeColorFill_colorChanged( const QColor &newColor );
66
67 void mSymbolWidthUnitWidget_changed();
68 void mStrokeWidthUnitWidget_changed();
69 void mSymbolHeightUnitWidget_changed();
70 void mOffsetUnitWidget_changed();
71 void mHorizontalAnchorComboBox_currentIndexChanged( int index );
72 void mVerticalAnchorComboBox_currentIndexChanged( int index );
73
74 void penJoinStyleChanged();
75 void penCapStyleChanged();
76
77 void setOffset();
78};
79
80#endif // QGSELLIPSESYMBOLLAYERWIDGET_H
static QgsSymbolLayerWidget * create(QgsVectorLayer *vl)
Creates a new QgsSymbolLayerWidget.
A symbol layer for rendering objects with major and minor axis (e.g.
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