QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
QgsRendererV2Widget Class Reference

Base class for renderer settings widgets. More...

#include <qgsrendererv2widget.h>

Inheritance diagram for QgsRendererV2Widget:
Inheritance graph
[legend]

Public Member Functions

 QgsRendererV2Widget (QgsVectorLayer *layer, QgsStyleV2 *style)
virtual ~QgsRendererV2Widget ()
virtual QgsFeatureRendererV2renderer ()=0
 return pointer to the renderer (no transfer of ownership)
void showSymbolLevelsDialog (QgsFeatureRendererV2 *r)
 show a dialog with renderer's symbol level settings

Protected Slots

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 ()

Protected Member Functions

virtual void refreshSymbolView ()
virtual QList< QgsSymbolV2 * > selectedSymbols ()
 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&)

Protected Attributes

QMenu * contextMenu
QAction * mCopyAction
QgsVectorLayermLayer
QAction * mPasteAction
QgsStyleV2mStyle

Detailed Description

Base class for renderer settings widgets.

WORKFLOW:

Definition at line 38 of file qgsrendererv2widget.h.

Constructor & Destructor Documentation

QgsRendererV2Widget::QgsRendererV2Widget ( QgsVectorLayer layer,
QgsStyleV2 style 
)

Definition at line 27 of file qgsrendererv2widget.cpp.

virtual QgsRendererV2Widget::~QgsRendererV2Widget ( )
inlinevirtual

Definition at line 44 of file qgsrendererv2widget.h.

Member Function Documentation

void QgsRendererV2Widget::changeSymbolColor ( )
protectedslot

Change color of selected symbols.

Definition at line 57 of file qgsrendererv2widget.cpp.

void QgsRendererV2Widget::changeSymbolSize ( )
protectedslot

Change marker sizes of selected symbols.

Definition at line 147 of file qgsrendererv2widget.cpp.

void QgsRendererV2Widget::changeSymbolTransparency ( )
protectedslot

Change opacity of selected symbols.

Definition at line 77 of file qgsrendererv2widget.cpp.

void QgsRendererV2Widget::changeSymbolUnit ( )
protectedslot

Change units mm/map units of selected symbols.

Definition at line 99 of file qgsrendererv2widget.cpp.

void QgsRendererV2Widget::changeSymbolWidth ( )
protectedslot

Change line widths of selected symbols.

Definition at line 123 of file qgsrendererv2widget.cpp.

void QgsRendererV2Widget::contextMenuViewCategories ( const QPoint &  p)
protectedslot

Definition at line 52 of file qgsrendererv2widget.cpp.

virtual void QgsRendererV2Widget::copy ( )
inlineprotectedvirtualslot

Definition at line 77 of file qgsrendererv2widget.h.

virtual void QgsRendererV2Widget::paste ( )
inlineprotectedvirtualslot

Definition at line 78 of file qgsrendererv2widget.h.

virtual void QgsRendererV2Widget::refreshSymbolView ( )
inlineprotectedvirtual
virtual QgsFeatureRendererV2* QgsRendererV2Widget::renderer ( )
pure virtual
virtual QList<QgsSymbolV2*> QgsRendererV2Widget::selectedSymbols ( )
inlineprotectedvirtual

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 in QgsRuleBasedRendererV2Widget, QgsGraduatedSymbolRendererV2Widget, and QgsCategorizedSymbolRendererV2Widget.

Definition at line 61 of file qgsrendererv2widget.h.

void QgsRendererV2Widget::showSymbolLevelsDialog ( QgsFeatureRendererV2 r)

show a dialog with renderer's symbol level settings

Definition at line 172 of file qgsrendererv2widget.cpp.

Member Data Documentation

QMenu* QgsRendererV2Widget::contextMenu
protected

Definition at line 55 of file qgsrendererv2widget.h.

QAction* QgsRendererV2Widget::mCopyAction
protected

Definition at line 56 of file qgsrendererv2widget.h.

QgsVectorLayer* QgsRendererV2Widget::mLayer
protected

Definition at line 53 of file qgsrendererv2widget.h.

QAction* QgsRendererV2Widget::mPasteAction
protected

Definition at line 57 of file qgsrendererv2widget.h.

QgsStyleV2* QgsRendererV2Widget::mStyle
protected

Definition at line 54 of file qgsrendererv2widget.h.


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