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

◆ Superclass

typedef QAbstractProxyModel ctkFlatProxyModel::Superclass

Definition at line 52 of file ctkFlatProxyModel.h.

Constructor & Destructor Documentation

◆ ctkFlatProxyModel()

ctkFlatProxyModel::ctkFlatProxyModel ( QObject *  parentObject = 0)

◆ ~ctkFlatProxyModel()

virtual ctkFlatProxyModel::~ctkFlatProxyModel ( )
virtual

Member Function Documentation

◆ columnCount()

virtual int ctkFlatProxyModel::columnCount ( const QModelIndex &  parent) const
virtual

◆ endFlattenLevel()

int ctkFlatProxyModel::endFlattenLevel ( ) const

◆ hideLevel()

int ctkFlatProxyModel::hideLevel ( ) const

◆ index()

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

◆ mapFromSource()

virtual QModelIndex ctkFlatProxyModel::mapFromSource ( const QModelIndex &  sourceIndex) const
virtual

◆ mapToSource()

virtual QModelIndex ctkFlatProxyModel::mapToSource ( const QModelIndex &  sourceIndex) const
virtual

◆ parent()

virtual QModelIndex ctkFlatProxyModel::parent ( const QModelIndex &  child) const
virtual

◆ rowCount()

virtual int ctkFlatProxyModel::rowCount ( const QModelIndex &  parent) const
virtual

◆ setEndFlattenLevel()

void ctkFlatProxyModel::setEndFlattenLevel ( int  level)

◆ setHideLevel()

void ctkFlatProxyModel::setHideLevel ( int  level)

◆ setStartFlattenLevel()

void ctkFlatProxyModel::setStartFlattenLevel ( int  level)

◆ startFlattenLevel()

int ctkFlatProxyModel::startFlattenLevel ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkFlatProxyModelPrivate> ctkFlatProxyModel::d_ptr
protected

Definition at line 75 of file ctkFlatProxyModel.h.

Property Documentation

◆ endFlattenLevel

int ctkFlatProxyModel::endFlattenLevel
readwrite

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

Definition at line 1 of file ctkFlatProxyModel.h.

◆ hideLevel

int ctkFlatProxyModel::hideLevel
readwrite

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

Definition at line 1 of file ctkFlatProxyModel.h.

◆ startFlattenLevel

int ctkFlatProxyModel::startFlattenLevel
readwrite

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

Definition at line 1 of file ctkFlatProxyModel.h.


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