QGIS API Documentation  2.9.0-Master
Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsCategorizedSymbolRendererV2Widget Class Reference

#include <qgscategorizedsymbolrendererv2widget.h>

Inheritance diagram for QgsCategorizedSymbolRendererV2Widget:
Inheritance graph
[legend]

Public Slots

void addCategories ()
 
void addCategory ()
 
void applyColorRamp ()
 
void categoriesDoubleClicked (const QModelIndex &idx)
 
void categoryColumnChanged (QString field)
 
void changeCategorizedSymbol ()
 
void deleteAllCategories ()
 
void deleteCategories ()
 
void matchToSymbolsFromLibrary ()
 Replaces category symbols with the symbols from the users' symbol library that have a matching name. More...
 
void matchToSymbolsFromXml ()
 Prompts for selection of an xml file, then replaces category symbols with the symbols from the XML file with a matching name. More...
 
void rotationFieldChanged (QString fldName)
 
void rowsMoved ()
 
void scaleMethodChanged (QgsSymbolV2::ScaleMethod scaleMethod)
 
void showSymbolLevels ()
 
void sizeScaleFieldChanged (QString fldName)
 

Public Member Functions

 QgsCategorizedSymbolRendererV2Widget (QgsVectorLayer *layer, QgsStyleV2 *style, QgsFeatureRendererV2 *renderer)
 
 ~QgsCategorizedSymbolRendererV2Widget ()
 
int matchToSymbols (QgsStyleV2 *style)
 Replaces category symbols with the symbols from a style that have a matching name. More...
 
virtual QgsFeatureRendererV2renderer () override
 return pointer to the renderer (no transfer of ownership) More...
 
- Public Member Functions inherited from QgsRendererV2Widget
 QgsRendererV2Widget (QgsVectorLayer *layer, QgsStyleV2 *style)
 
virtual ~QgsRendererV2Widget ()
 
void showSymbolLevelsDialog (QgsFeatureRendererV2 *r)
 show a dialog with renderer's symbol level settings More...
 

Static Public Member Functions

static QgsRendererV2Widgetcreate (QgsVectorLayer *layer, QgsStyleV2 *style, QgsFeatureRendererV2 *renderer)
 

Protected Member Functions

void changeCategorySymbol ()
 
void changeSelectedSymbols ()
 change the selected symbols alone for the change button, if there is a selection More...
 
int currentCategoryRow ()
 return row index for the currently selected category (-1 if on no selection) More...
 
QgsVectorColorRampV2getColorRamp ()
 
void keyPressEvent (QKeyEvent *event) override
 
void populateCategories ()
 
void refreshSymbolView () override
 
QList< int > selectedCategories ()
 return a list of indexes for the categories unders selection More...
 
QgsCategoryList selectedCategoryList ()
 
QList< QgsSymbolV2 * > selectedSymbols () override
 Subclasses may provide the capability of changing multiple symbols at once by implementing the following two methods and by connecting the slot contextMenuViewCategories(const QPoint&) More...
 
void updateCategorizedSymbolIcon ()
 
void updateUiFromRenderer ()
 

Protected Attributes

QgsSymbolV2mCategorizedSymbol
 
QgsRendererV2DataDefinedMenusmDataDefinedMenus
 
QgsCategorizedSymbolRendererV2ModelmModel
 
QgsCategorizedSymbolRendererV2mRenderer
 
- Protected Attributes inherited from QgsRendererV2Widget
QMenu * contextMenu
 
QAction * mCopyAction
 
QgsVectorLayermLayer
 
QAction * mPasteAction
 
QgsStyleV2mStyle
 

Additional Inherited Members

- Protected Slots inherited from QgsRendererV2Widget
void changeSymbolAngle ()
 Change marker angles of selected symbols. More...
 
void changeSymbolColor ()
 Change color of selected symbols. More...
 
void changeSymbolSize ()
 Change marker sizes of selected symbols. More...
 
void changeSymbolTransparency ()
 Change opacity of selected symbols. More...
 
void changeSymbolUnit ()
 Change units mm/map units of selected symbols. More...
 
void changeSymbolWidth ()
 Change line widths of selected symbols. More...
 
void contextMenuViewCategories (const QPoint &p)
 
virtual void copy ()
 
virtual void paste ()
 

Detailed Description

Definition at line 72 of file qgscategorizedsymbolrendererv2widget.h.

Constructor & Destructor Documentation

QgsCategorizedSymbolRendererV2Widget::QgsCategorizedSymbolRendererV2Widget ( QgsVectorLayer layer,
QgsStyleV2 style,
QgsFeatureRendererV2 renderer 
)

Definition at line 373 of file qgscategorizedsymbolrendererv2widget.cpp.

QgsCategorizedSymbolRendererV2Widget::~QgsCategorizedSymbolRendererV2Widget ( )

Definition at line 459 of file qgscategorizedsymbolrendererv2widget.cpp.

Member Function Documentation

void QgsCategorizedSymbolRendererV2Widget::addCategories ( )
slot

Definition at line 643 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::addCategory ( )
slot

Definition at line 813 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::applyColorRamp ( )
slot

Definition at line 769 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::categoriesDoubleClicked ( const QModelIndex &  idx)
slot

Definition at line 569 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::categoryColumnChanged ( QString  field)
slot

Definition at line 564 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::changeCategorizedSymbol ( )
slot

Definition at line 526 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::changeCategorySymbol ( )
protected

Definition at line 575 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::changeSelectedSymbols ( )
protected

change the selected symbols alone for the change button, if there is a selection

Definition at line 501 of file qgscategorizedsymbolrendererv2widget.cpp.

QgsRendererV2Widget * QgsCategorizedSymbolRendererV2Widget::create ( QgsVectorLayer layer,
QgsStyleV2 style,
QgsFeatureRendererV2 renderer 
)
static

Definition at line 368 of file qgscategorizedsymbolrendererv2widget.cpp.

int QgsCategorizedSymbolRendererV2Widget::currentCategoryRow ( )
protected

return row index for the currently selected category (-1 if on no selection)

Definition at line 779 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::deleteAllCategories ( )
slot

Definition at line 808 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::deleteCategories ( )
slot

Definition at line 802 of file qgscategorizedsymbolrendererv2widget.cpp.

QgsVectorColorRampV2 * QgsCategorizedSymbolRendererV2Widget::getColorRamp ( )
protected

Definition at line 629 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::keyPressEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 962 of file qgscategorizedsymbolrendererv2widget.cpp.

int QgsCategorizedSymbolRendererV2Widget::matchToSymbols ( QgsStyleV2 style)

Replaces category symbols with the symbols from a style that have a matching name.

Parameters
stylestyle containing symbols to match with
Returns
number of symbols matched
See also
matchToSymbolsFromLibrary
matchToSymbolsFromXml
Note
added in QGIS 2.9

Definition at line 903 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::matchToSymbolsFromLibrary ( )
slot

Replaces category symbols with the symbols from the users' symbol library that have a matching name.

See also
matchToSymbolsFromXml
matchToSymbols
Note
added in QGIS 2.9

Definition at line 888 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::matchToSymbolsFromXml ( )
slot

Prompts for selection of an xml file, then replaces category symbols with the symbols from the XML file with a matching name.

See also
matchToSymbolsFromLibrary
matchToSymbols
Note
added in QGIS 2.9

Definition at line 926 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::populateCategories ( )
protected

Definition at line 560 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::refreshSymbolView ( )
inlineoverrideprotectedvirtual

Reimplemented from QgsRendererV2Widget.

Definition at line 151 of file qgscategorizedsymbolrendererv2widget.h.

QgsFeatureRendererV2 * QgsCategorizedSymbolRendererV2Widget::renderer ( )
overridevirtual

return pointer to the renderer (no transfer of ownership)

Implements QgsRendererV2Widget.

Definition at line 496 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::rotationFieldChanged ( QString  fldName)
slot

Definition at line 821 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::rowsMoved ( )
slot

Definition at line 883 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::scaleMethodChanged ( QgsSymbolV2::ScaleMethod  scaleMethod)
slot

Definition at line 831 of file qgscategorizedsymbolrendererv2widget.cpp.

QList< int > QgsCategorizedSymbolRendererV2Widget::selectedCategories ( )
protected

return a list of indexes for the categories unders selection

Definition at line 787 of file qgscategorizedsymbolrendererv2widget.cpp.

QgsCategoryList QgsCategorizedSymbolRendererV2Widget::selectedCategoryList ( )
protected

Definition at line 860 of file qgscategorizedsymbolrendererv2widget.cpp.

QList< QgsSymbolV2 * > QgsCategorizedSymbolRendererV2Widget::selectedSymbols ( )
overrideprotectedvirtual

Subclasses may provide the capability of changing multiple symbols at once by implementing the following two methods and by connecting the slot contextMenuViewCategories(const QPoint&)

Reimplemented from QgsRendererV2Widget.

Definition at line 836 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::showSymbolLevels ( )
slot

Definition at line 878 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::sizeScaleFieldChanged ( QString  fldName)
slot

Definition at line 826 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::updateCategorizedSymbolIcon ( )
protected

Definition at line 554 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::updateUiFromRenderer ( )
protected

Definition at line 465 of file qgscategorizedsymbolrendererv2widget.cpp.

Member Data Documentation

QgsSymbolV2* QgsCategorizedSymbolRendererV2Widget::mCategorizedSymbol
protected

Definition at line 157 of file qgscategorizedsymbolrendererv2widget.h.

QgsRendererV2DataDefinedMenus* QgsCategorizedSymbolRendererV2Widget::mDataDefinedMenus
protected

Definition at line 159 of file qgscategorizedsymbolrendererv2widget.h.

QgsCategorizedSymbolRendererV2Model* QgsCategorizedSymbolRendererV2Widget::mModel
protected

Definition at line 161 of file qgscategorizedsymbolrendererv2widget.h.

QgsCategorizedSymbolRendererV2* QgsCategorizedSymbolRendererV2Widget::mRenderer
protected

Definition at line 155 of file qgscategorizedsymbolrendererv2widget.h.


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