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

#include <infotableproxymodel.hpp>

Inheritance diagram for CSMWorld::InfoTableProxyModel:
Collaboration diagram for CSMWorld::InfoTableProxyModel:

Public Member Functions

 InfoTableProxyModel (UniversalId::Type type, QObject *parent=0)
 
virtual void setSourceModel (QAbstractItemModel *sourceModel)
 
- Public Member Functions inherited from CSMWorld::IdTableProxyModel
 IdTableProxyModel (QObject *parent=0)
 
virtual QModelIndex getModelIndex (const std::string &id, int column) const
 
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 Slots inherited from CSMWorld::IdTableProxyModel
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
 
- Protected Member Functions inherited from CSMWorld::IdTableProxyModel
virtual bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const
 
QString getRecordId (int sourceRow) const
 

Private Member Functions

int getFirstInfoRow (int currentRow) const
 

Private Attributes

UniversalId::Type mType
 
Columns::ColumnId mInfoColumnId
 Contains ID for Topic or Journal ID. More...
 
int mInfoColumnIndex
 
int mLastAddedSourceRow
 
QHash< QString, intmFirstRowCache
 

Additional Inherited Members

- Signals inherited from CSMWorld::IdTableProxyModel
void rowAdded (const std::string &id)
 
- Protected Attributes inherited from CSMWorld::IdTableProxyModel
IdTableBasemSourceModel
 

Constructor & Destructor Documentation

CSMWorld::InfoTableProxyModel::InfoTableProxyModel ( UniversalId::Type  type,
QObject parent = 0 
)

Member Function Documentation

int CSMWorld::InfoTableProxyModel::getFirstInfoRow ( int  currentRow) const
private

Finds the first row with the same topic (journal entry) as in currentRow currentRow is a row of the source model.

Here is the call graph for this function:

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

Reimplemented from CSMWorld::IdTableProxyModel.

Here is the call graph for this function:

void CSMWorld::InfoTableProxyModel::setSourceModel ( QAbstractItemModel sourceModel)
virtual

Reimplemented from CSMWorld::IdTableProxyModel.

Here is the call graph for this function:

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

Member Data Documentation

QHash<QString, int> CSMWorld::InfoTableProxyModel::mFirstRowCache
mutableprivate
Columns::ColumnId CSMWorld::InfoTableProxyModel::mInfoColumnId
private

Contains ID for Topic or Journal ID.

int CSMWorld::InfoTableProxyModel::mInfoColumnIndex
private
int CSMWorld::InfoTableProxyModel::mLastAddedSourceRow
private
UniversalId::Type CSMWorld::InfoTableProxyModel::mType
private

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