QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 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 ()
virtual QgsFeatureRendererV2renderer () override
 return pointer to the renderer (no transfer of ownership)
- 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

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
int currentCategoryRow ()
 return row index for the currently selected category (-1 if on no selection)
QgsVectorColorRampV2getColorRamp ()
void keyPressEvent (QKeyEvent *event) override
void populateCategories ()
void refreshSymbolView () override
QList< int > selectedCategories ()
 return a list of indexes for the categories unders selection
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&)
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 changeSymbolColor ()
 Change color of selected symbols.
void changeSymbolSize ()
 Change marker sizes of selected symbols.
void changeSymbolTransparency ()
 Change opacity of selected symbols.
void changeSymbolUnit ()
 Change units mm/map units of selected symbols.
void changeSymbolWidth ()
 Change line widths of selected symbols.
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 372 of file qgscategorizedsymbolrendererv2widget.cpp.

QgsCategorizedSymbolRendererV2Widget::~QgsCategorizedSymbolRendererV2Widget ( )

Definition at line 456 of file qgscategorizedsymbolrendererv2widget.cpp.

Member Function Documentation

void QgsCategorizedSymbolRendererV2Widget::addCategories ( )
slot

Definition at line 640 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::addCategory ( )
slot

Definition at line 810 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::applyColorRamp ( )
slot

Definition at line 766 of file qgscategorizedsymbolrendererv2widget.cpp.

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

Definition at line 566 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::categoryColumnChanged ( QString  field)
slot

Definition at line 561 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::changeCategorizedSymbol ( )
slot

Definition at line 523 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::changeCategorySymbol ( )
protected

Definition at line 572 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 498 of file qgscategorizedsymbolrendererv2widget.cpp.

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

Definition at line 367 of file qgscategorizedsymbolrendererv2widget.cpp.

int QgsCategorizedSymbolRendererV2Widget::currentCategoryRow ( )
protected

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

Definition at line 776 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::deleteAllCategories ( )
slot

Definition at line 805 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::deleteCategories ( )
slot

Definition at line 799 of file qgscategorizedsymbolrendererv2widget.cpp.

QgsVectorColorRampV2 * QgsCategorizedSymbolRendererV2Widget::getColorRamp ( )
protected

Definition at line 626 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::keyPressEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 885 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::populateCategories ( )
protected

Definition at line 557 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::refreshSymbolView ( )
inlineoverrideprotectedvirtual

Reimplemented from QgsRendererV2Widget.

Definition at line 125 of file qgscategorizedsymbolrendererv2widget.h.

QgsFeatureRendererV2 * QgsCategorizedSymbolRendererV2Widget::renderer ( )
overridevirtual

return pointer to the renderer (no transfer of ownership)

Implements QgsRendererV2Widget.

Definition at line 493 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::rotationFieldChanged ( QString  fldName)
slot

Definition at line 818 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::rowsMoved ( )
slot

Definition at line 880 of file qgscategorizedsymbolrendererv2widget.cpp.

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

Definition at line 828 of file qgscategorizedsymbolrendererv2widget.cpp.

QList< int > QgsCategorizedSymbolRendererV2Widget::selectedCategories ( )
protected

return a list of indexes for the categories unders selection

Definition at line 784 of file qgscategorizedsymbolrendererv2widget.cpp.

QgsCategoryList QgsCategorizedSymbolRendererV2Widget::selectedCategoryList ( )
protected

Definition at line 857 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 833 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::showSymbolLevels ( )
slot

Definition at line 875 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::sizeScaleFieldChanged ( QString  fldName)
slot

Definition at line 823 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::updateCategorizedSymbolIcon ( )
protected

Definition at line 551 of file qgscategorizedsymbolrendererv2widget.cpp.

void QgsCategorizedSymbolRendererV2Widget::updateUiFromRenderer ( )
protected

Definition at line 462 of file qgscategorizedsymbolrendererv2widget.cpp.

Member Data Documentation

QgsSymbolV2* QgsCategorizedSymbolRendererV2Widget::mCategorizedSymbol
protected

Definition at line 131 of file qgscategorizedsymbolrendererv2widget.h.

QgsRendererV2DataDefinedMenus* QgsCategorizedSymbolRendererV2Widget::mDataDefinedMenus
protected

Definition at line 133 of file qgscategorizedsymbolrendererv2widget.h.

QgsCategorizedSymbolRendererV2Model* QgsCategorizedSymbolRendererV2Widget::mModel
protected

Definition at line 135 of file qgscategorizedsymbolrendererv2widget.h.

QgsCategorizedSymbolRendererV2* QgsCategorizedSymbolRendererV2Widget::mRenderer
protected

Definition at line 129 of file qgscategorizedsymbolrendererv2widget.h.


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