QGIS API Documentation  2.5.0-Master
 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>

Inheritance diagram for QgsRuleBasedRendererV2Model:
Inheritance graph
Collaboration diagram for QgsRuleBasedRendererV2Model:
Collaboration graph

Public Member Functions

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

Protected Attributes

< QgsRuleBasedRendererV2::Rule
*, QgsRuleBasedRendererV2Count

Detailed Description

Definition at line 44 of file qgsrulebasedrendererv2widget.h.

Constructor & Destructor Documentation

QgsRuleBasedRendererV2Model::QgsRuleBasedRendererV2Model ( QgsRuleBasedRendererV2 r)

Definition at line 694 of file qgsrulebasedrendererv2widget.cpp.

Member Function Documentation

void QgsRuleBasedRendererV2Model::clearFeatureCounts ( )
int QgsRuleBasedRendererV2Model::columnCount ( const QModelIndex &  = QModelIndex()) const

Definition at line 836 of file qgsrulebasedrendererv2widget.cpp.

Referenced by updateRule().

QVariant QgsRuleBasedRendererV2Model::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
bool QgsRuleBasedRendererV2Model::dropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  column,
const QModelIndex &  parent 
void QgsRuleBasedRendererV2Model::finishedAddingRules ( )
Qt::ItemFlags QgsRuleBasedRendererV2Model::flags ( const QModelIndex &  index) const

Definition at line 699 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 804 of file qgsrulebasedrendererv2widget.cpp.

References tr.

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

provide model index for parent's child item

Definition at line 841 of file qgsrulebasedrendererv2widget.cpp.

References QgsRuleBasedRendererV2::Rule::children(), and ruleForIndex().

Referenced by mimeData(), QgsRuleBasedRendererV2Widget::paste(), and updateRule().

void QgsRuleBasedRendererV2Model::insertRule ( const QModelIndex &  parent,
int  before,
QgsRuleBasedRendererV2::Rule newrule 
QMimeData * QgsRuleBasedRendererV2Model::mimeData ( const QModelIndexList &  indexes) const
QStringList QgsRuleBasedRendererV2Model::mimeTypes ( ) const

Definition at line 903 of file qgsrulebasedrendererv2widget.cpp.

QModelIndex QgsRuleBasedRendererV2Model::parent ( const QModelIndex &  index) const
bool QgsRuleBasedRendererV2Model::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
void QgsRuleBasedRendererV2Model::removeRule ( const QModelIndex &  index)

Definition at line 1058 of file qgsrulebasedrendererv2widget.cpp.

References ruleForIndex().

int QgsRuleBasedRendererV2Model::rowCount ( const QModelIndex &  parent = QModelIndex()) const
QgsRuleBasedRendererV2::Rule * QgsRuleBasedRendererV2Model::ruleForIndex ( const QModelIndex &  index) const
bool QgsRuleBasedRendererV2Model::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
void QgsRuleBasedRendererV2Model::setFeatureCounts ( QMap< QgsRuleBasedRendererV2::Rule *, QgsRuleBasedRendererV2Count theCountMap)
not available in python bindungs

Definition at line 1082 of file qgsrulebasedrendererv2widget.cpp.

References mFeatureCountMap, and updateRule().

Referenced by QgsRuleBasedRendererV2Widget::countFeatures().

Qt::DropActions QgsRuleBasedRendererV2Model::supportedDropActions ( ) const

Definition at line 898 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 1046 of file qgsrulebasedrendererv2widget.cpp.

References columnCount(), index(), rowCount(), and updateRule().

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

Member Data Documentation

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

Definition at line 90 of file qgsrulebasedrendererv2widget.h.

Referenced by clearFeatureCounts(), data(), and setFeatureCounts().

QgsRuleBasedRendererV2* QgsRuleBasedRendererV2Model::mR

Definition at line 89 of file qgsrulebasedrendererv2widget.h.

Referenced by parent(), and ruleForIndex().

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