te::qt::widgets::DataSetTreeModel Class Reference

#include <DataSetTreeModel.h>

Inheritance diagram for te::qt::widgets::DataSetTreeModel:

Public Member Functions

bool canFetchMore (const QModelIndex &parent) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
 DataSetTreeModel (const te::da::DataSourceInfoPtr &datasource, QWidget *parent=0)
 
void fetchMore (const QModelIndex &parent)
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
bool forceCatalogCache () const
 
bool hasChildren (const QModelIndex &parent=QModelIndex()) const
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
bool isCheckable () const
 
QModelIndex parent (const QModelIndex &index) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
void setCheckable (const bool checkable)
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
void setForceCatalogCache (const bool force)
 
 ~DataSetTreeModel ()
 

Protected Member Functions

void emitDataChangedForAncestors (const QModelIndex &index)
 It emits the dataChanged signal for the indexes that are ancestors of the given index. More...
 
void emitDataChangedForDescendants (const QModelIndex &parent)
 It emits the dataChanged signal for the descendants indexes of the given index. More...
 

Private Attributes

bool m_checkable
 If true the model allows for checkable items. More...
 
DataSetGroupItemm_datasets
 A container for the datasets of the input data source. More...
 
bool m_forceCatalogCache
 If true every information looked in the data source catalog is also cahed in the data source catalog. More...
 

Detailed Description

Definition at line 48 of file DataSetTreeModel.h.

Constructor & Destructor Documentation

te::qt::widgets::DataSetTreeModel::DataSetTreeModel ( const te::da::DataSourceInfoPtr datasource,
QWidget *  parent = 0 
)
te::qt::widgets::DataSetTreeModel::~DataSetTreeModel ( )

Member Function Documentation

bool te::qt::widgets::DataSetTreeModel::canFetchMore ( const QModelIndex &  parent) const
int te::qt::widgets::DataSetTreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
QVariant te::qt::widgets::DataSetTreeModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
void te::qt::widgets::DataSetTreeModel::emitDataChangedForAncestors ( const QModelIndex &  index)
protected

It emits the dataChanged signal for the indexes that are ancestors of the given index.

Parameters
indexThe item index whose ancestors will have the dataChanged signal emitted.
void te::qt::widgets::DataSetTreeModel::emitDataChangedForDescendants ( const QModelIndex &  parent)
protected

It emits the dataChanged signal for the descendants indexes of the given index.

Parameters
parentThe item index whose descendants will have the dataChanged signal emitted.
void te::qt::widgets::DataSetTreeModel::fetchMore ( const QModelIndex &  parent)
Qt::ItemFlags te::qt::widgets::DataSetTreeModel::flags ( const QModelIndex &  index) const
bool te::qt::widgets::DataSetTreeModel::forceCatalogCache ( ) const
bool te::qt::widgets::DataSetTreeModel::hasChildren ( const QModelIndex &  parent = QModelIndex()) const
QModelIndex te::qt::widgets::DataSetTreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
bool te::qt::widgets::DataSetTreeModel::isCheckable ( ) const
QModelIndex te::qt::widgets::DataSetTreeModel::parent ( const QModelIndex &  index) const
int te::qt::widgets::DataSetTreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
void te::qt::widgets::DataSetTreeModel::setCheckable ( const bool  checkable)
bool te::qt::widgets::DataSetTreeModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
void te::qt::widgets::DataSetTreeModel::setForceCatalogCache ( const bool  force)

Member Data Documentation

bool te::qt::widgets::DataSetTreeModel::m_checkable
private

If true the model allows for checkable items.

Definition at line 106 of file DataSetTreeModel.h.

DataSetGroupItem* te::qt::widgets::DataSetTreeModel::m_datasets
private

A container for the datasets of the input data source.

Definition at line 105 of file DataSetTreeModel.h.

bool te::qt::widgets::DataSetTreeModel::m_forceCatalogCache
private

If true every information looked in the data source catalog is also cahed in the data source catalog.

Definition at line 107 of file DataSetTreeModel.h.


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