QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | List of all members
QgsRuleBasedRendererV2Model Class Reference

#include <qgsrulebasedrendererv2widget.h>

Inheritance diagram for QgsRuleBasedRendererV2Model:
Inheritance graph
[legend]

Public Member Functions

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

Member Function Documentation

void QgsRuleBasedRendererV2Model::clearFeatureCounts ( )

Definition at line 1110 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 844 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 714 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 963 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Model::finishedAddingRules ( )

Definition at line 1099 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 699 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 812 of file qgsrulebasedrendererv2widget.cpp.

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

provide model index for parent's child item

Definition at line 849 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 1050 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 928 of file qgsrulebasedrendererv2widget.cpp.

QStringList QgsRuleBasedRendererV2Model::mimeTypes ( ) const

Definition at line 921 of file qgsrulebasedrendererv2widget.cpp.

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

provide parent model index

Definition at line 860 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 1019 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Model::removeRule ( const QModelIndex &  index)

Definition at line 1080 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 834 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 1012 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 877 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 1104 of file qgsrulebasedrendererv2widget.cpp.

Qt::DropActions QgsRuleBasedRendererV2Model::supportedDropActions ( ) const

Definition at line 916 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 1062 of file qgsrulebasedrendererv2widget.cpp.

void QgsRuleBasedRendererV2Model::updateRule ( const QModelIndex &  index)

Definition at line 1068 of file qgsrulebasedrendererv2widget.cpp.

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

Definition at line 1093 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: