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

#include <qgsrulebasedrendererv2widget.h>

Inheritance diagram for QgsRuleBasedRendererV2Widget:
Inheritance graph
[legend]

Public Slots

void addRule ()
 
void clearFeatureCounts ()
 
void countFeatures ()
 
void currentRuleChanged (const QModelIndex &current=QModelIndex(), const QModelIndex &previous=QModelIndex())
 
void editRule ()
 
void editRule (const QModelIndex &index)
 
void refineRuleCategories ()
 
void refineRuleRanges ()
 
void refineRuleScales ()
 
void removeRule ()
 
void restoreSectionWidths ()
 
void saveSectionWidth (int section, int oldSize, int newSize)
 
void setRenderingOrder ()
 

Public Member Functions

 QgsRuleBasedRendererV2Widget (QgsVectorLayer *layer, QgsStyleV2 *style, QgsFeatureRendererV2 *renderer)
 
 ~QgsRuleBasedRendererV2Widget ()
 
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 Slots

void copy () override
 
void paste () override
 
- 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 ()
 

Protected Member Functions

QgsRuleBasedRendererV2::RulecurrentRule ()
 
void keyPressEvent (QKeyEvent *event) override
 
void refineRule (int type)
 
void refineRuleCategoriesGui (const QModelIndexList &index)
 
void refineRuleRangesGui (const QModelIndexList &index)
 
void refineRuleScalesGui (const QModelIndexList &index)
 
void refreshSymbolView () override
 
QgsRuleBasedRendererV2::RuleList selectedRules ()
 
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...
 

Protected Attributes

QgsRuleBasedRendererV2::RuleList mCopyBuffer
 
QAction * mDeleteAction
 
QgsRuleBasedRendererV2ModelmModel
 
QMenu * mRefineMenu
 
QgsRuleBasedRendererV2mRenderer
 
- Protected Attributes inherited from QgsRendererV2Widget
QMenu * contextMenu
 
QAction * mCopyAction
 
QgsVectorLayermLayer
 
QAction * mPasteAction
 
QgsStyleV2mStyle
 

Detailed Description

Definition at line 98 of file qgsrulebasedrendererv2widget.h.

Constructor & Destructor Documentation

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

Definition at line 46 of file qgsrulebasedrendererv2widget.cpp.

QgsRuleBasedRendererV2Widget::~QgsRuleBasedRendererV2Widget ( )

Definition at line 116 of file qgsrulebasedrendererv2widget.cpp.

Member Function Documentation

void QgsRuleBasedRendererV2Widget::addRule ( )
slot

Definition at line 127 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::clearFeatureCounts ( )
inlineslot

Definition at line 118 of file qgsrulebasedrendererv2widget.h.

void QgsRuleBasedRendererV2Widget::copy ( )
overrideprotectedslot

Definition at line 462 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::countFeatures ( )
slot

Definition at line 487 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 41 of file qgsrulebasedrendererv2widget.cpp.

QgsRuleBasedRendererV2::Rule * QgsRuleBasedRendererV2Widget::currentRule ( )
protected

Definition at line 156 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::currentRuleChanged ( const QModelIndex &  current = QModelIndex(),
const QModelIndex &  previous = QModelIndex() 
)
slot

Definition at line 200 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::editRule ( )
slot

Definition at line 165 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::editRule ( const QModelIndex &  index)
slot

Definition at line 170 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::keyPressEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 402 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::paste ( )
overrideprotectedslot

Definition at line 474 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::refineRule ( int  type)
protected

Definition at line 216 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::refineRuleCategories ( )
slot

Definition at line 238 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::refineRuleCategoriesGui ( const QModelIndexList &  index)
protected

Definition at line 253 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::refineRuleRanges ( )
slot

Definition at line 243 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::refineRuleRangesGui ( const QModelIndexList &  index)
protected

Definition at line 281 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::refineRuleScales ( )
slot

Definition at line 248 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::refineRuleScalesGui ( const QModelIndexList &  index)
protected

Definition at line 310 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::refreshSymbolView ( )
overrideprotectedvirtual

Reimplemented from QgsRendererV2Widget.

Definition at line 391 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::removeRule ( )
slot

Definition at line 185 of file qgsrulebasedrendererv2widget.cpp.

QgsFeatureRendererV2 * QgsRuleBasedRendererV2Widget::renderer ( )
overridevirtual

return pointer to the renderer (no transfer of ownership)

Implements QgsRendererV2Widget.

Definition at line 122 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::restoreSectionWidths ( )
slot

Definition at line 449 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::saveSectionWidth ( int  section,
int  oldSize,
int  newSize 
)
slot

Definition at line 438 of file qgsrulebasedrendererv2widget.cpp.

QgsRuleBasedRendererV2::RuleList QgsRuleBasedRendererV2Widget::selectedRules ( )
protected

Definition at line 374 of file qgsrulebasedrendererv2widget.cpp.

QList< QgsSymbolV2 * > QgsRuleBasedRendererV2Widget::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 350 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Widget::setRenderingOrder ( )
slot

Definition at line 428 of file qgsrulebasedrendererv2widget.cpp.

Member Data Documentation

QgsRuleBasedRendererV2::RuleList QgsRuleBasedRendererV2Widget::mCopyBuffer
protected

Definition at line 150 of file qgsrulebasedrendererv2widget.h.

QAction* QgsRuleBasedRendererV2Widget::mDeleteAction
protected

Definition at line 148 of file qgsrulebasedrendererv2widget.h.

QgsRuleBasedRendererV2Model* QgsRuleBasedRendererV2Widget::mModel
protected

Definition at line 145 of file qgsrulebasedrendererv2widget.h.

QMenu* QgsRuleBasedRendererV2Widget::mRefineMenu
protected

Definition at line 147 of file qgsrulebasedrendererv2widget.h.

QgsRuleBasedRendererV2* QgsRuleBasedRendererV2Widget::mRenderer
protected

Definition at line 144 of file qgsrulebasedrendererv2widget.h.


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