QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
QgsRendererV2Widget Class Referenceabstract

Base class for renderer settings widgets. More...

#include <qgsrendererv2widget.h>

Inheritance diagram for QgsRendererV2Widget:
Inheritance graph
[legend]
Collaboration diagram for QgsRendererV2Widget:
Collaboration graph
[legend]

Public Member Functions

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

Protected Slots

void contextMenuViewCategories (const QPoint &p)
 
void changeSymbolColor ()
 Change color 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 changeSymbolSize ()
 Change marker sizes of selected symbols. More...
 
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&) More...
 
virtual void refreshSymbolView ()
 

Protected Attributes

QgsVectorLayermLayer
 
QgsStyleV2mStyle
 
QMenu * contextMenu
 
QAction * mCopyAction
 
QAction * mPasteAction
 

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

References refreshSymbolView(), and selectedSymbols().

Referenced by QgsRendererV2Widget().

void QgsRendererV2Widget::changeSymbolSize ( )
protectedslot

Change marker sizes of selected symbols.

Definition at line 144 of file qgsrendererv2widget.cpp.

References refreshSymbolView(), selectedSymbols(), QgsMarkerSymbolV2::setSize(), size, and tr.

Referenced by QgsRendererV2Widget().

void QgsRendererV2Widget::changeSymbolTransparency ( )
protectedslot

Change opacity of selected symbols.

Definition at line 77 of file qgsrendererv2widget.cpp.

References refreshSymbolView(), selectedSymbols(), and tr.

Referenced by QgsRendererV2Widget().

void QgsRendererV2Widget::changeSymbolUnit ( )
protectedslot

Change units mm/map units of selected symbols.

Definition at line 99 of file qgsrendererv2widget.cpp.

References QgsSymbolV2::MapUnit, QgsSymbolV2::MM, refreshSymbolView(), selectedSymbols(), and tr.

Referenced by QgsRendererV2Widget().

void QgsRendererV2Widget::changeSymbolWidth ( )
protectedslot

Change line widths of selected symbols.

Definition at line 123 of file qgsrendererv2widget.cpp.

References refreshSymbolView(), selectedSymbols(), QgsLineSymbolV2::setWidth(), and tr.

Referenced by QgsRendererV2Widget().

void QgsRendererV2Widget::contextMenuViewCategories ( const QPoint &  p)
protectedslot
virtual void QgsRendererV2Widget::copy ( )
inlineprotectedvirtualslot

Definition at line 77 of file qgsrendererv2widget.h.

Referenced by QgsRendererV2Widget().

virtual void QgsRendererV2Widget::paste ( )
inlineprotectedvirtualslot

Definition at line 78 of file qgsrendererv2widget.h.

Referenced by QgsRendererV2Widget().

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.

Referenced by changeSymbolColor(), changeSymbolSize(), changeSymbolTransparency(), changeSymbolUnit(), and changeSymbolWidth().

void QgsRendererV2Widget::showSymbolLevelsDialog ( QgsFeatureRendererV2 r)

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: