1 #ifndef CSM_WOLRD_IDTABLEPROXYMODEL_H
2 #define CSM_WOLRD_IDTABLEPROXYMODEL_H
6 #include <boost/shared_ptr.hpp>
10 #include <QSortFilterProxyModel>
12 #include "../filter/node.hpp"
22 boost::shared_ptr<CSMFilter::Node>
mFilter;
42 virtual QModelIndex
getModelIndex (
const std::string&
id,
int column)
const;
46 void setFilter (
const boost::shared_ptr<CSMFilter::Node>& filter);
52 virtual bool lessThan(
const QModelIndex &left,
const QModelIndex &right)
const;
54 virtual bool filterAcceptsRow (
int sourceRow,
const QModelIndex& sourceParent)
const;
64 virtual void sourceDataChanged(
const QModelIndex &topLeft,
const QModelIndex &bottomRight);
68 void rowAdded(
const std::string &
id);
static const struct @2 signals[]
std::map< int, int > mColumnMap
Definition: idtableproxymodel.hpp:23
QString getRecordId(int sourceRow) const
Definition: idtableproxymodel.cpp:114
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
Definition: idtableproxymodel.cpp:33
virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const
Definition: idtableproxymodel.cpp:93
IdTableBase * mSourceModel
Definition: idtableproxymodel.hpp:32
void updateColumnMap()
Definition: idtableproxymodel.cpp:19
boost::shared_ptr< CSMFilter::Node > mFilter
Definition: idtableproxymodel.hpp:22
EnumColumnCache mEnumColumnCache
Definition: idtableproxymodel.hpp:28
virtual QModelIndex getModelIndex(const std::string &id, int column) const
Definition: idtableproxymodel.cpp:59
std::map< Columns::ColumnId, std::vector< std::string > > EnumColumnCache
Definition: idtableproxymodel.hpp:27
virtual void setSourceModel(QAbstractItemModel *model)
Definition: idtableproxymodel.cpp:66
Definition: idtableproxymodel.hpp:18
virtual void sourceRowsRemoved(const QModelIndex &parent, int start, int end)
Definition: idtableproxymodel.cpp:137
void setFilter(const boost::shared_ptr< CSMFilter::Node > &filter)
Definition: idtableproxymodel.cpp:85
IdTableProxyModel(QObject *parent=0)
Definition: idtableproxymodel.cpp:52
Definition: idtablebase.hpp:12
virtual void sourceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: idtableproxymodel.cpp:142
void refreshFilter()
Definition: idtableproxymodel.cpp:122
void rowAdded(const std::string &id)
virtual void sourceRowsInserted(const QModelIndex &parent, int start, int end)
Definition: idtableproxymodel.cpp:128