QGIS API Documentation  master-3f58142
QgsSymbolsListWidget Class Reference

#include <qgssymbolslistwidget.h>

+ Collaboration diagram for QgsSymbolsListWidget:

List of all members.

Public Slots

void addSymbolToStyle ()
void on_groupsCombo_currentIndexChanged (int index)
void on_groupsCombo_editTextChanged (const QString &text)
void on_mSymbolUnitComboBox_currentIndexChanged (const QString &text)
void on_mTransparencySlider_valueChanged (int value)
void openStyleManager ()
void setLineWidth (double width)
void setMarkerAngle (double angle)
void setMarkerSize (double size)
void setSymbolColor (const QColor &color)
void setSymbolFromStyle (const QModelIndex &index)

Signals

void changed ()

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

QgsStyleV2mStyle
QgsSymbolV2mSymbol

Private Member Functions

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

Detailed Description

Definition at line 28 of file qgssymbolslistwidget.h.


Constructor & Destructor Documentation


Member Function Documentation

void QgsSymbolsListWidget::displayTransparency ( double  alpha) [private]

Displays alpha value as transparency in mTransparencyLabel.

Definition at line 272 of file qgssymbolslistwidget.cpp.

References tr.

Referenced by on_mTransparencySlider_valueChanged(), and QgsSymbolsListWidget().

void QgsSymbolsListWidget::on_groupsCombo_editTextChanged ( const QString &  text) [slot]

Definition at line 350 of file qgssymbolslistwidget.cpp.

References QgsStyleV2::findSymbols(), mStyle, and populateSymbols().

Definition at line 250 of file qgssymbolslistwidget.cpp.

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

Definition at line 179 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 114 of file qgssymbolslistwidget.cpp.

References QgsStyleV2::childGroupNames(), and mStyle.

Referenced by QgsSymbolsListWidget().

void QgsSymbolsListWidget::setLineWidth ( double  width) [slot]
void QgsSymbolsListWidget::setSymbolColor ( const QColor &  color) [slot]

Definition at line 187 of file qgssymbolslistwidget.cpp.

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

Referenced by QgsSymbolsListWidget().

Definition at line 278 of file qgssymbolslistwidget.cpp.

References QgsSymbolV2::color(), and mSymbol.

Referenced by QgsSymbolsListWidget(), and updateSymbolInfo().


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines