QGIS API Documentation  master-3f58142
src/gui/symbology-ng/qgsellipsesymbollayerv2widget.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     qgsellipsesymbollayerv2widget.h
00003     ---------------------
00004     begin                : June 2011
00005     copyright            : (C) 2011 by Marco Hugentobler
00006     email                : marco dot hugentobler at sourcepole dot ch
00007  ***************************************************************************
00008  *                                                                         *
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; either version 2 of the License, or     *
00012  *   (at your option) any later version.                                   *
00013  *                                                                         *
00014  ***************************************************************************/
00015 #ifndef QGSELLIPSESYMBOLLAYERV2WIDGET_H
00016 #define QGSELLIPSESYMBOLLAYERV2WIDGET_H
00017 
00018 #include "ui_widget_ellipse.h"
00019 #include "qgssymbollayerv2widget.h"
00020 
00021 class QgsEllipseSymbolLayerV2;
00022 
00023 class GUI_EXPORT QgsEllipseSymbolLayerV2Widget: public QgsSymbolLayerV2Widget, private Ui::WidgetEllipseBase
00024 {
00025     Q_OBJECT
00026 
00027   public:
00028     QgsEllipseSymbolLayerV2Widget( const QgsVectorLayer* vl, QWidget* parent = 0 );
00029 
00030     static QgsSymbolLayerV2Widget* create( const QgsVectorLayer* vl ) { return new QgsEllipseSymbolLayerV2Widget( vl ); }
00031 
00032     // from base class
00033     virtual void setSymbolLayer( QgsSymbolLayerV2* layer );
00034     virtual QgsSymbolLayerV2* symbolLayer();
00035 
00036   protected:
00037     QgsEllipseSymbolLayerV2* mLayer;
00038 
00039   private:
00040     void blockComboSignals( bool block );
00041 
00042   private slots:
00043     void on_mShapeListWidget_itemSelectionChanged();
00044     void on_mWidthSpinBox_valueChanged( double d );
00045     void on_mHeightSpinBox_valueChanged( double d );
00046     void on_mRotationSpinBox_valueChanged( double d );
00047     void on_mOutlineWidthSpinBox_valueChanged( double d );
00048     void on_btnChangeColorBorder_colorChanged( const QColor& newColor );
00049     void on_btnChangeColorFill_colorChanged( const QColor& newColor );
00050 
00051     void on_mSymbolWidthUnitComboBox_currentIndexChanged( int index );
00052     void on_mOutlineWidthUnitComboBox_currentIndexChanged( int index );
00053     void on_mSymbolHeightUnitComboBox_currentIndexChanged( int index );
00054     void on_mOffsetUnitComboBox_currentIndexChanged( int index );
00055 
00056     void on_mDataDefinedPropertiesButton_clicked();
00057     void setOffset();
00058 };
00059 
00060 #endif // QGSELLIPSESYMBOLLAYERV2WIDGET_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines