OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
CSMWorld::IdTableProxyModel Class Reference

#include <idtableproxymodel.hpp>

Inheritance diagram for CSMWorld::IdTableProxyModel:
Collaboration diagram for CSMWorld::IdTableProxyModel:

Signals

void rowAdded (const std::string &id)
 

Public Member Functions

 IdTableProxyModel (QObject *parent=0)
 
virtual QModelIndex getModelIndex (const std::string &id, int column) const
 
virtual void setSourceModel (QAbstractItemModel *model)
 
void setFilter (const boost::shared_ptr< CSMFilter::Node > &filter)
 
void refreshFilter ()
 

Protected Slots

virtual void sourceRowsInserted (const QModelIndex &parent, int start, int end)
 
virtual void sourceRowsRemoved (const QModelIndex &parent, int start, int end)
 
virtual void sourceDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 

Protected Member Functions

virtual bool lessThan (const QModelIndex &left, const QModelIndex &right) const
 
virtual bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const
 
QString getRecordId (int sourceRow) const
 

Protected Attributes

IdTableBasemSourceModel
 

Private Types

typedef std::map
< Columns::ColumnId,
std::vector< std::string > > 
EnumColumnCache
 

Private Member Functions

void updateColumnMap ()
 

Private Attributes

boost::shared_ptr
< CSMFilter::Node
mFilter
 
std::map< int, intmColumnMap
 
EnumColumnCache mEnumColumnCache
 

Member Typedef Documentation

typedef std::map<Columns::ColumnId, std::vector<std::string> > CSMWorld::IdTableProxyModel::EnumColumnCache
private

Constructor & Destructor Documentation

CSMWorld::IdTableProxyModel::IdTableProxyModel ( QObject parent = 0)

Member Function Documentation

bool CSMWorld::IdTableProxyModel::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const
protectedvirtual
QModelIndex CSMWorld::IdTableProxyModel::getModelIndex ( const std::string &  id,
int  column 
) const
virtual
QString CSMWorld::IdTableProxyModel::getRecordId ( int  sourceRow) const
protected

Here is the call graph for this function:

bool CSMWorld::IdTableProxyModel::lessThan ( const QModelIndex &  left,
const QModelIndex &  right 
) const
protectedvirtual

Reimplemented in CSMWorld::InfoTableProxyModel.

Here is the call graph for this function:

Here is the caller graph for this function:

void CSMWorld::IdTableProxyModel::refreshFilter ( )
void CSMWorld::IdTableProxyModel::rowAdded ( const std::string &  id)
signal
void CSMWorld::IdTableProxyModel::setFilter ( const boost::shared_ptr< CSMFilter::Node > &  filter)
void CSMWorld::IdTableProxyModel::setSourceModel ( QAbstractItemModel model)
virtual

Reimplemented in CSMWorld::InfoTableProxyModel.

Here is the caller graph for this function:

void CSMWorld::IdTableProxyModel::sourceDataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
)
protectedvirtualslot
void CSMWorld::IdTableProxyModel::sourceRowsInserted ( const QModelIndex &  parent,
int  start,
int  end 
)
protectedvirtualslot
void CSMWorld::IdTableProxyModel::sourceRowsRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
protectedvirtualslot
void CSMWorld::IdTableProxyModel::updateColumnMap ( )
private

Here is the call graph for this function:

Member Data Documentation

std::map<int, int> CSMWorld::IdTableProxyModel::mColumnMap
private
EnumColumnCache CSMWorld::IdTableProxyModel::mEnumColumnCache
mutableprivate
boost::shared_ptr<CSMFilter::Node> CSMWorld::IdTableProxyModel::mFilter
private
IdTableBase* CSMWorld::IdTableProxyModel::mSourceModel
protected

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