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

#include <qgssymbolslistwidget.h>

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

Public Slots

void setSymbolFromStyle (const QModelIndex &index)
 
void setSymbolColor (const QColor &color)
 
void setMarkerAngle (double angle)
 
void setMarkerSize (double size)
 
void setLineWidth (double width)
 
void addSymbolToStyle ()
 
void symbolAddedToStyle (QString name, QgsSymbolV2 *symbol)
 
void on_mSymbolUnitWidget_changed ()
 
void on_mTransparencySlider_valueChanged (int value)
 
void on_groupsCombo_currentIndexChanged (int index)
 
void on_groupsCombo_editTextChanged (const QString &text)
 
void openStyleManager ()
 

Signals

void changed ()
 

Public Member Functions

 QgsSymbolsListWidget (QgsSymbolV2 *symbol, QgsStyleV2 *style, QMenu *menu, QWidget *parent)
 

Protected Member Functions

void populateSymbolView ()
 
void populateSymbols (QStringList symbols)
 
void updateSymbolColor ()
 
void updateSymbolInfo ()
 

Protected Attributes

QgsSymbolV2mSymbol
 
QgsStyleV2mStyle
 

Private Member Functions

void displayTransparency (double alpha)
 Displays alpha value as transparency in mTransparencyLabel. More...
 
void populateGroups (QString parent="", QString prepend="")
 Recursive function to create the group tree in the widget. More...
 

Detailed Description

Definition at line 28 of file qgssymbolslistwidget.h.

Constructor & Destructor Documentation

QgsSymbolsListWidget::QgsSymbolsListWidget ( QgsSymbolV2 symbol,
QgsStyleV2 style,
QMenu *  menu,
QWidget *  parent 
)

Member Function Documentation

void QgsSymbolsListWidget::addSymbolToStyle ( )
slot
void QgsSymbolsListWidget::changed ( )
signal
void QgsSymbolsListWidget::displayTransparency ( double  alpha)
private

Displays alpha value as transparency in mTransparencyLabel.

Definition at line 256 of file qgssymbolslistwidget.cpp.

References tr.

Referenced by on_mTransparencySlider_valueChanged(), and updateSymbolInfo().

void QgsSymbolsListWidget::on_groupsCombo_currentIndexChanged ( int  index)
slot
void QgsSymbolsListWidget::on_groupsCombo_editTextChanged ( const QString &  text)
slot
void QgsSymbolsListWidget::on_mSymbolUnitWidget_changed ( )
slot
void QgsSymbolsListWidget::on_mTransparencySlider_valueChanged ( int  value)
slot
void QgsSymbolsListWidget::openStyleManager ( )
slot

Definition at line 156 of file qgssymbolslistwidget.cpp.

References mStyle, and populateSymbolView().

Referenced by QgsSymbolsListWidget().

void QgsSymbolsListWidget::populateGroups ( QString  parent = "",
QString  prepend = "" 
)
private

Recursive function to create the group tree in the widget.

Definition at line 91 of file qgssymbolslistwidget.cpp.

References QgsStyleV2::childGroupNames(), and mStyle.

Referenced by QgsSymbolsListWidget().

void QgsSymbolsListWidget::populateSymbols ( QStringList  symbols)
protected
void QgsSymbolsListWidget::populateSymbolView ( )
protected
void QgsSymbolsListWidget::setLineWidth ( double  width)
slot
void QgsSymbolsListWidget::setMarkerAngle ( double  angle)
slot
void QgsSymbolsListWidget::setMarkerSize ( double  size)
slot
void QgsSymbolsListWidget::setSymbolColor ( const QColor &  color)
slot

Definition at line 164 of file qgssymbolslistwidget.cpp.

References changed(), mSymbol, and QgsSymbolV2::setColor().

Referenced by QgsSymbolsListWidget().

void QgsSymbolsListWidget::setSymbolFromStyle ( const QModelIndex &  index)
slot
void QgsSymbolsListWidget::symbolAddedToStyle ( QString  name,
QgsSymbolV2 symbol 
)
slot

Definition at line 197 of file qgssymbolslistwidget.cpp.

References populateSymbolView().

Referenced by QgsSymbolsListWidget().

void QgsSymbolsListWidget::updateSymbolColor ( )
protected

Definition at line 262 of file qgssymbolslistwidget.cpp.

References QgsSymbolV2::color(), and mSymbol.

Referenced by updateSymbolInfo().

void QgsSymbolsListWidget::updateSymbolInfo ( )
protected

Member Data Documentation

QgsStyleV2* QgsSymbolsListWidget::mStyle
protected
QgsSymbolV2* QgsSymbolsListWidget::mSymbol
protected

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