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 Attributes | List of all members
QgsRuleBasedRendererV2Model Class Reference

#include <qgsrulebasedrendererv2widget.h>

Public Member Functions

 QgsRuleBasedRendererV2Model (QgsRuleBasedRendererV2 *r)
void clearFeatureCounts ()
virtual int columnCount (const QModelIndex &=QModelIndex()) const override
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
void finishedAddingRules ()
virtual Qt::ItemFlags flags (const QModelIndex &index) const override
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 provide model index for parent's child item
void insertRule (const QModelIndex &parent, int before, QgsRuleBasedRendererV2::Rule *newrule)
QMimeData * mimeData (const QModelIndexList &indexes) const override
QStringList mimeTypes () const override
virtual QModelIndex parent (const QModelIndex &index) const override
 provide parent model index
bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override
void removeRule (const QModelIndex &index)
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const override
QgsRuleBasedRendererV2::RuleruleForIndex (const QModelIndex &index) const
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
void setFeatureCounts (QMap< QgsRuleBasedRendererV2::Rule *, QgsRuleBasedRendererV2Count > theCountMap)
Qt::DropActions supportedDropActions () const override
void updateRule (const QModelIndex &parent, int row)
void updateRule (const QModelIndex &index)
void willAddRules (const QModelIndex &parent, int count)

Protected Attributes

QMap
< QgsRuleBasedRendererV2::Rule
*, QgsRuleBasedRendererV2Count
mFeatureCountMap
QgsRuleBasedRendererV2mR

Detailed Description

Definition at line 44 of file qgsrulebasedrendererv2widget.h.

Constructor & Destructor Documentation

QgsRuleBasedRendererV2Model::QgsRuleBasedRendererV2Model ( QgsRuleBasedRendererV2 r)

Definition at line 700 of file qgsrulebasedrendererv2widget.cpp.

Member Function Documentation

void QgsRuleBasedRendererV2Model::clearFeatureCounts ( )

Definition at line 1116 of file qgsrulebasedrendererv2widget.cpp.

int QgsRuleBasedRendererV2Model::columnCount ( const QModelIndex &  = QModelIndex()) const
overridevirtual

Definition at line 850 of file qgsrulebasedrendererv2widget.cpp.

QVariant QgsRuleBasedRendererV2Model::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
overridevirtual

Definition at line 720 of file qgsrulebasedrendererv2widget.cpp.

bool QgsRuleBasedRendererV2Model::dropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  column,
const QModelIndex &  parent 
)
override

Definition at line 969 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Model::finishedAddingRules ( )

Definition at line 1105 of file qgsrulebasedrendererv2widget.cpp.

Qt::ItemFlags QgsRuleBasedRendererV2Model::flags ( const QModelIndex &  index) const
overridevirtual

Definition at line 705 of file qgsrulebasedrendererv2widget.cpp.

QVariant QgsRuleBasedRendererV2Model::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
overridevirtual

Definition at line 818 of file qgsrulebasedrendererv2widget.cpp.

QModelIndex QgsRuleBasedRendererV2Model::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
overridevirtual

provide model index for parent's child item

Definition at line 855 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Model::insertRule ( const QModelIndex &  parent,
int  before,
QgsRuleBasedRendererV2::Rule newrule 
)

Definition at line 1056 of file qgsrulebasedrendererv2widget.cpp.

QMimeData * QgsRuleBasedRendererV2Model::mimeData ( const QModelIndexList &  indexes) const
override

Definition at line 934 of file qgsrulebasedrendererv2widget.cpp.

QStringList QgsRuleBasedRendererV2Model::mimeTypes ( ) const
override

Definition at line 927 of file qgsrulebasedrendererv2widget.cpp.

QModelIndex QgsRuleBasedRendererV2Model::parent ( const QModelIndex &  index) const
overridevirtual

provide parent model index

Definition at line 866 of file qgsrulebasedrendererv2widget.cpp.

bool QgsRuleBasedRendererV2Model::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)
override

Definition at line 1025 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Model::removeRule ( const QModelIndex &  index)

Definition at line 1086 of file qgsrulebasedrendererv2widget.cpp.

int QgsRuleBasedRendererV2Model::rowCount ( const QModelIndex &  parent = QModelIndex()) const
overridevirtual

Definition at line 840 of file qgsrulebasedrendererv2widget.cpp.

QgsRuleBasedRendererV2::Rule * QgsRuleBasedRendererV2Model::ruleForIndex ( const QModelIndex &  index) const

Definition at line 1018 of file qgsrulebasedrendererv2widget.cpp.

bool QgsRuleBasedRendererV2Model::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
overridevirtual

Definition at line 883 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Model::setFeatureCounts ( QMap< QgsRuleBasedRendererV2::Rule *, QgsRuleBasedRendererV2Count theCountMap)
Note
not available in python bindungs

Definition at line 1110 of file qgsrulebasedrendererv2widget.cpp.

Qt::DropActions QgsRuleBasedRendererV2Model::supportedDropActions ( ) const
override

Definition at line 922 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Model::updateRule ( const QModelIndex &  parent,
int  row 
)

Definition at line 1068 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Model::updateRule ( const QModelIndex &  index)

Definition at line 1074 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Model::willAddRules ( const QModelIndex &  parent,
int  count 
)

Definition at line 1099 of file qgsrulebasedrendererv2widget.cpp.

Member Data Documentation

QMap<QgsRuleBasedRendererV2::Rule*, QgsRuleBasedRendererV2Count> QgsRuleBasedRendererV2Model::mFeatureCountMap
protected

Definition at line 90 of file qgsrulebasedrendererv2widget.h.

QgsRuleBasedRendererV2* QgsRuleBasedRendererV2Model::mR
protected

Definition at line 89 of file qgsrulebasedrendererv2widget.h.


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