QGIS API Documentation  2.6.0-Brighton
 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 contextMenuViewCategories (const QPoint &p)
void changeSymbolColor ()
 Change color 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 changeSymbolSize ()
 Change marker sizes of selected symbols.
virtual void copy ()
virtual void paste ()

Protected Member Functions

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&)
virtual void refreshSymbolView ()

Protected Attributes

QgsVectorLayermLayer
QgsStyleV2mStyle
QMenu * contextMenu
QAction * mCopyAction
QAction * mPasteAction

Detailed Description

Base class for renderer settings widgets.

WORKFLOW:

Constructor & Destructor Documentation

QgsRendererV2Widget::QgsRendererV2Widget ( QgsVectorLayer layer,
QgsStyleV2 style 
)
virtual QgsRendererV2Widget::~QgsRendererV2Widget ( )
inlinevirtual

Member Function Documentation

void QgsRendererV2Widget::changeSymbolColor ( )
protectedslot

Change color of selected symbols.

void QgsRendererV2Widget::changeSymbolSize ( )
protectedslot

Change marker sizes of selected symbols.

void QgsRendererV2Widget::changeSymbolTransparency ( )
protectedslot

Change opacity of selected symbols.

void QgsRendererV2Widget::changeSymbolUnit ( )
protectedslot

Change units mm/map units of selected symbols.

void QgsRendererV2Widget::changeSymbolWidth ( )
protectedslot

Change line widths of selected symbols.

void QgsRendererV2Widget::contextMenuViewCategories ( const QPoint &  p)
protectedslot
virtual void QgsRendererV2Widget::copy ( )
inlineprotectedvirtualslot
virtual void QgsRendererV2Widget::paste ( )
inlineprotectedvirtualslot
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.

void QgsRendererV2Widget::showSymbolLevelsDialog ( QgsFeatureRendererV2 r)

show a dialog with renderer's symbol level settings

Member Data Documentation

QMenu* QgsRendererV2Widget::contextMenu
protected
QAction* QgsRendererV2Widget::mCopyAction
protected
QgsVectorLayer* QgsRendererV2Widget::mLayer
protected
QAction* QgsRendererV2Widget::mPasteAction
protected
QgsStyleV2* QgsRendererV2Widget::mStyle
protected

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