1 #ifndef CSM_WOLRD_IDTREE_H
2 #define CSM_WOLRD_IDTREE_H
21 class NestedCollection;
23 struct NestedTableWrapperBase;
47 virtual int rowCount (
const QModelIndex &
parent = QModelIndex())
const;
51 virtual QVariant
data (
const QModelIndex &
index,
int role = Qt::DisplayRole)
const;
53 virtual bool setData (
const QModelIndex &
index,
const QVariant &value,
int role = Qt::EditRole);
55 virtual Qt::ItemFlags
flags (
const QModelIndex &
index)
const;
57 virtual bool removeRows (
int row,
int count,
const QModelIndex&
parent = QModelIndex());
59 virtual QModelIndex
index (
int row,
int column,
const QModelIndex&
parent = QModelIndex())
62 virtual QModelIndex
parent (
const QModelIndex&
index)
const;
66 QVariant
nestedHeaderData(
int section,
int subSection, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
Definition: nestedtablewrapper.hpp:6
virtual QModelIndex parent(const QModelIndex &index) const
Definition: idtree.cpp:195
static const struct @2 signals[]
virtual bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Definition: idtree.cpp:136
Definition: idtable.hpp:15
NestedTableWrapperBase * nestedTable(const QModelIndex &index) const
Definition: idtree.cpp:264
NestedCollection * mNestedCollection
Definition: idtree.hpp:31
std::pair< int, int > unfoldIndexAddress(unsigned int id) const
Definition: idtree.cpp:216
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Definition: idtree.cpp:116
virtual int searchNestedColumnIndex(int parentColumn, Columns::ColumnId id)
Definition: idtree.cpp:272
virtual int findNestedColumnIndex(int parentColumn, Columns::ColumnId id)
Definition: idtree.cpp:277
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: idtree.cpp:25
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: idtree.cpp:173
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: idtree.cpp:33
QVariant nestedHeaderData(int section, int subSection, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: idtree.cpp:64
void setNestedTable(const QModelIndex &index, const NestedTableWrapperBase &nestedTable)
Definition: idtree.cpp:241
virtual ~IdTree()
Definition: idtree.cpp:14
IdTree & operator=(const IdTree &)
Base class for record collections.
Definition: collectionbase.hpp:23
void addNestedRow(const QModelIndex &parent, int position)
Definition: idtree.cpp:158
ColumnId
Definition: columns.hpp:13
virtual CollectionBase * idCollection() const
Definition: idtable.cpp:280
virtual bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: idtree.cpp:89
Definition: idtree.hpp:25
void resetStart(const QString &id)
QModelIndex getNestedModelIndex(const std::string &id, int column) const
Definition: idtree.cpp:190
Definition: nestedcollection.hpp:13
void resetEnd(const QString &id)
virtual bool hasChildren(const QModelIndex &index) const
Definition: idtree.cpp:233
unsigned int foldIndexAddress(const QModelIndex &index) const
Definition: idtree.cpp:209
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: idtree.cpp:17