QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots | List of all members
QgsSVGFillSymbolLayerWidget Class Reference

#include <qgssymbollayerv2widget.h>

Inheritance diagram for QgsSVGFillSymbolLayerWidget:
Inheritance graph
[legend]
Collaboration diagram for QgsSVGFillSymbolLayerWidget:
Collaboration graph
[legend]

Public Member Functions

 QgsSVGFillSymbolLayerWidget (const QgsVectorLayer *vl, QWidget *parent=NULL)
 
virtual void setSymbolLayer (QgsSymbolLayerV2 *layer)
 
virtual QgsSymbolLayerV2symbolLayer ()
 
- Public Member Functions inherited from QgsSymbolLayerV2Widget
 QgsSymbolLayerV2Widget (QWidget *parent, const QgsVectorLayer *vl=0)
 
virtual ~QgsSymbolLayerV2Widget ()
 

Static Public Member Functions

static QgsSymbolLayerV2Widgetcreate (const QgsVectorLayer *vl)
 

Protected Member Functions

void insertIcons ()
 
void updateParamGui (bool resetValues=true)
 Enables or disables svg fill color, border color and border width based on whether the svg file supports custom parameters. More...
 
- Protected Member Functions inherited from QgsSymbolLayerV2Widget
virtual QString dataDefinedPropertyLabel (const QString &entryName)
 Get label for data defined entry. More...
 

Protected Attributes

QgsSVGFillSymbolLayermLayer
 
- Protected Attributes inherited from QgsSymbolLayerV2Widget
const QgsVectorLayermVectorLayer
 

Private Slots

void on_mBrowseToolButton_clicked ()
 
void on_mTextureWidthSpinBox_valueChanged (double d)
 
void on_mSVGLineEdit_textEdited (const QString &text)
 
void on_mSVGLineEdit_editingFinished ()
 
void setFile (const QModelIndex &item)
 
void populateIcons (const QModelIndex &item)
 
void on_mRotationSpinBox_valueChanged (double d)
 
void on_mChangeColorButton_colorChanged (const QColor &color)
 
void on_mChangeBorderColorButton_colorChanged (const QColor &color)
 
void on_mBorderWidthSpinBox_valueChanged (double d)
 
void on_mTextureWidthUnitWidget_changed ()
 
void on_mSvgOutlineWidthUnitWidget_changed ()
 
void on_mDataDefinedPropertiesButton_clicked ()
 

Additional Inherited Members

- Signals inherited from QgsSymbolLayerV2Widget
void changed ()
 

Detailed Description

Definition at line 328 of file qgssymbollayerv2widget.h.

Constructor & Destructor Documentation

QgsSVGFillSymbolLayerWidget::QgsSVGFillSymbolLayerWidget ( const QgsVectorLayer vl,
QWidget *  parent = NULL 
)

Definition at line 2032 of file qgssymbollayerv2widget.cpp.

References insertIcons(), mLayer, populateIcons(), setFile(), and tr.

Member Function Documentation

static QgsSymbolLayerV2Widget* QgsSVGFillSymbolLayerWidget::create ( const QgsVectorLayer vl)
inlinestatic

Definition at line 335 of file qgssymbollayerv2widget.h.

Referenced by _initWidgetFunctions().

void QgsSVGFillSymbolLayerWidget::insertIcons ( )
protected

Definition at line 2165 of file qgssymbollayerv2widget.cpp.

Referenced by QgsSVGFillSymbolLayerWidget().

void QgsSVGFillSymbolLayerWidget::on_mBorderWidthSpinBox_valueChanged ( double  d)
privateslot
void QgsSVGFillSymbolLayerWidget::on_mBrowseToolButton_clicked ( )
privateslot

Definition at line 2094 of file qgssymbollayerv2widget.cpp.

References QgsSymbolLayerV2Widget::changed(), and tr.

void QgsSVGFillSymbolLayerWidget::on_mChangeBorderColorButton_colorChanged ( const QColor &  color)
privateslot
void QgsSVGFillSymbolLayerWidget::on_mChangeColorButton_colorChanged ( const QColor &  color)
privateslot
void QgsSVGFillSymbolLayerWidget::on_mDataDefinedPropertiesButton_clicked ( )
privateslot
void QgsSVGFillSymbolLayerWidget::on_mRotationSpinBox_valueChanged ( double  d)
privateslot
void QgsSVGFillSymbolLayerWidget::on_mSVGLineEdit_editingFinished ( )
privateslot
void QgsSVGFillSymbolLayerWidget::on_mSVGLineEdit_textEdited ( const QString &  text)
privateslot
void QgsSVGFillSymbolLayerWidget::on_mSvgOutlineWidthUnitWidget_changed ( )
privateslot
void QgsSVGFillSymbolLayerWidget::on_mTextureWidthSpinBox_valueChanged ( double  d)
privateslot
void QgsSVGFillSymbolLayerWidget::on_mTextureWidthUnitWidget_changed ( )
privateslot
void QgsSVGFillSymbolLayerWidget::populateIcons ( const QModelIndex &  item)
privateslot
void QgsSVGFillSymbolLayerWidget::setFile ( const QModelIndex &  item)
privateslot
void QgsSVGFillSymbolLayerWidget::setSymbolLayer ( QgsSymbolLayerV2 layer)
virtual
QgsSymbolLayerV2 * QgsSVGFillSymbolLayerWidget::symbolLayer ( )
virtual

Implements QgsSymbolLayerV2Widget.

Definition at line 2089 of file qgssymbollayerv2widget.cpp.

References mLayer.

void QgsSVGFillSymbolLayerWidget::updateParamGui ( bool  resetValues = true)
protected

Enables or disables svg fill color, border color and border width based on whether the svg file supports custom parameters.

Parameters
resetValuesset to true to overwrite existing layer fill color, border color and border width with default values from svg file

Definition at line 2201 of file qgssymbollayerv2widget.cpp.

References QgsSvgCache::containsParams(), and QgsSvgCache::instance().

Referenced by on_mSVGLineEdit_editingFinished(), on_mSVGLineEdit_textEdited(), setFile(), and setSymbolLayer().

Member Data Documentation

QgsSVGFillSymbolLayer* QgsSVGFillSymbolLayerWidget::mLayer
protected

The documentation for this class was generated from the following files: