QGIS API Documentation  2.6.0-Brighton
 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)
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
virtual QModelIndex parent (const QModelIndex &index) const
 provide parent model index
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

QgsRuleBasedRendererV2mR
QMap
< QgsRuleBasedRendererV2::Rule
*, QgsRuleBasedRendererV2Count
mFeatureCountMap

Constructor & Destructor Documentation

QgsRuleBasedRendererV2Model::QgsRuleBasedRendererV2Model ( QgsRuleBasedRendererV2 r)

Member Function Documentation

void QgsRuleBasedRendererV2Model::clearFeatureCounts ( )
int QgsRuleBasedRendererV2Model::columnCount ( const QModelIndex &  = QModelIndex()) const
virtual
QVariant QgsRuleBasedRendererV2Model::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual
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
virtual
QVariant QgsRuleBasedRendererV2Model::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
virtual
QModelIndex QgsRuleBasedRendererV2Model::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
virtual

provide model index for parent's child item

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

provide parent model index

bool QgsRuleBasedRendererV2Model::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)
void QgsRuleBasedRendererV2Model::removeRule ( const QModelIndex &  index)
int QgsRuleBasedRendererV2Model::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual
QgsRuleBasedRendererV2::Rule * QgsRuleBasedRendererV2Model::ruleForIndex ( const QModelIndex &  index) const
bool QgsRuleBasedRendererV2Model::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
virtual
void QgsRuleBasedRendererV2Model::setFeatureCounts ( QMap< QgsRuleBasedRendererV2::Rule *, QgsRuleBasedRendererV2Count theCountMap)
Note
not available in python bindungs
Qt::DropActions QgsRuleBasedRendererV2Model::supportedDropActions ( ) const
void QgsRuleBasedRendererV2Model::updateRule ( const QModelIndex &  parent,
int  row 
)
void QgsRuleBasedRendererV2Model::updateRule ( const QModelIndex &  index)
void QgsRuleBasedRendererV2Model::willAddRules ( const QModelIndex &  parent,
int  count 
)

Member Data Documentation

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

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