CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Types | Public Member Functions | Protected Attributes | Properties | List of all members
ctkFlatProxyModel Class Reference

#include <Libs/Widgets/ctkFlatProxyModel.h>

Inheritance diagram for ctkFlatProxyModel:
Inheritance graph
[legend]
Collaboration diagram for ctkFlatProxyModel:
Collaboration graph
[legend]

Public Types

typedef QAbstractProxyModel Superclass
 

Public Member Functions

virtual int columnCount (const QModelIndex &parent) const
 
 ctkFlatProxyModel (QObject *parentObject=0)
 
int endFlattenLevel () const
 
int hideLevel () const
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent) const
 
virtual QModelIndex mapFromSource (const QModelIndex &sourceIndex) const
 
virtual QModelIndex mapToSource (const QModelIndex &sourceIndex) const
 
virtual QModelIndex parent (const QModelIndex &child) const
 
virtual int rowCount (const QModelIndex &parent) const
 
void setEndFlattenLevel (int level)
 
void setHideLevel (int level)
 
void setStartFlattenLevel (int level)
 
int startFlattenLevel () const
 
virtual ~ctkFlatProxyModel ()
 

Protected Attributes

QScopedPointer< ctkFlatProxyModelPrivate > d_ptr
 

Properties

int endFlattenLevel
 level for which to stop flattening the rows. -1 by default More...
 
int hideLevel
 
int startFlattenLevel
 

Detailed Description

ctkFlatProxyModel intends to flatten contiguous hierarchies within a model. For now, it only supports the toplevel hierarchy flatten with the 1 degree children. The items in the levels being flatten don't appear in the model anymore, however their children will be visible.

Definition at line 39 of file ctkFlatProxyModel.h.

Member Typedef Documentation

typedef QAbstractProxyModel ctkFlatProxyModel::Superclass

Definition at line 52 of file ctkFlatProxyModel.h.

Constructor & Destructor Documentation

ctkFlatProxyModel::ctkFlatProxyModel ( QObject *  parentObject = 0)
virtual ctkFlatProxyModel::~ctkFlatProxyModel ( )
virtual

Member Function Documentation

virtual int ctkFlatProxyModel::columnCount ( const QModelIndex &  parent) const
virtual
int ctkFlatProxyModel::endFlattenLevel ( ) const
int ctkFlatProxyModel::hideLevel ( ) const
virtual QModelIndex ctkFlatProxyModel::index ( int  row,
int  column,
const QModelIndex &  parent 
) const
virtual
virtual QModelIndex ctkFlatProxyModel::mapFromSource ( const QModelIndex &  sourceIndex) const
virtual
virtual QModelIndex ctkFlatProxyModel::mapToSource ( const QModelIndex &  sourceIndex) const
virtual
virtual QModelIndex ctkFlatProxyModel::parent ( const QModelIndex &  child) const
virtual
virtual int ctkFlatProxyModel::rowCount ( const QModelIndex &  parent) const
virtual
void ctkFlatProxyModel::setEndFlattenLevel ( int  level)
void ctkFlatProxyModel::setHideLevel ( int  level)
void ctkFlatProxyModel::setStartFlattenLevel ( int  level)
int ctkFlatProxyModel::startFlattenLevel ( ) const

Member Data Documentation

QScopedPointer<ctkFlatProxyModelPrivate> ctkFlatProxyModel::d_ptr
protected

Definition at line 75 of file ctkFlatProxyModel.h.

Property Documentation

int ctkFlatProxyModel::endFlattenLevel
readwrite

level for which to stop flattening the rows. -1 by default

Definition at line 46 of file ctkFlatProxyModel.h.

int ctkFlatProxyModel::hideLevel
readwrite

level for which to stop flattening the rows. -1 by default Not supported yet.

Definition at line 49 of file ctkFlatProxyModel.h.

int ctkFlatProxyModel::startFlattenLevel
readwrite

level for which to start flattening the rows. -1 by default Not supported yet.

Definition at line 44 of file ctkFlatProxyModel.h.


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