|
|
|
@ -102,53 +102,61 @@ namespace CSMWorld
|
|
|
|
|
template<typename ESXRecordT, typename IdAccessorT>
|
|
|
|
|
void SubCellCollection<ESXRecordT, IdAccessorT>::addNestedRow(int row, int column, int position)
|
|
|
|
|
{
|
|
|
|
|
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->addNestedRow(getRecord(row), position);
|
|
|
|
|
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->addNestedRow(
|
|
|
|
|
Collection<ESXRecordT, IdAccessorT>::getRecord(row), position);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename ESXRecordT, typename IdAccessorT>
|
|
|
|
|
void SubCellCollection<ESXRecordT, IdAccessorT>::removeNestedRows(int row, int column, int subRow)
|
|
|
|
|
{
|
|
|
|
|
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->removeNestedRow(getRecord(row), subRow);
|
|
|
|
|
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->removeNestedRow(
|
|
|
|
|
Collection<ESXRecordT, IdAccessorT>::getRecord(row), subRow);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename ESXRecordT, typename IdAccessorT>
|
|
|
|
|
QVariant SubCellCollection<ESXRecordT, IdAccessorT>::getNestedData (int row,
|
|
|
|
|
int column, int subRow, int subColumn) const
|
|
|
|
|
{
|
|
|
|
|
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->getNestedData(getRecord(row), subRow, subColumn);
|
|
|
|
|
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->getNestedData(
|
|
|
|
|
Collection<ESXRecordT, IdAccessorT>::getRecord(row), subRow, subColumn);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename ESXRecordT, typename IdAccessorT>
|
|
|
|
|
void SubCellCollection<ESXRecordT, IdAccessorT>::setNestedData(int row,
|
|
|
|
|
int column, const QVariant& data, int subRow, int subColumn)
|
|
|
|
|
{
|
|
|
|
|
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->setNestedData(getRecord(row), data, subRow, subColumn);
|
|
|
|
|
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->setNestedData(
|
|
|
|
|
Collection<ESXRecordT, IdAccessorT>::getRecord(row), data, subRow, subColumn);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename ESXRecordT, typename IdAccessorT>
|
|
|
|
|
CSMWorld::NestedTableWrapperBase* SubCellCollection<ESXRecordT, IdAccessorT>::nestedTable(int row,
|
|
|
|
|
int column) const
|
|
|
|
|
{
|
|
|
|
|
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->nestedTable(getRecord(row));
|
|
|
|
|
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->nestedTable(
|
|
|
|
|
Collection<ESXRecordT, IdAccessorT>::getRecord(row));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename ESXRecordT, typename IdAccessorT>
|
|
|
|
|
void SubCellCollection<ESXRecordT, IdAccessorT>::setNestedTable(int row,
|
|
|
|
|
int column, const CSMWorld::NestedTableWrapperBase& nestedTable)
|
|
|
|
|
{
|
|
|
|
|
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->setNestedTable(getRecord(row), nestedTable);
|
|
|
|
|
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->setNestedTable(
|
|
|
|
|
Collection<ESXRecordT, IdAccessorT>::getRecord(row), nestedTable);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename ESXRecordT, typename IdAccessorT>
|
|
|
|
|
int SubCellCollection<ESXRecordT, IdAccessorT>::getNestedRowsCount(int row, int column) const
|
|
|
|
|
{
|
|
|
|
|
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->getNestedRowsCount(getRecord(row));
|
|
|
|
|
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->getNestedRowsCount(
|
|
|
|
|
Collection<ESXRecordT, IdAccessorT>::getRecord(row));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename ESXRecordT, typename IdAccessorT>
|
|
|
|
|
int SubCellCollection<ESXRecordT, IdAccessorT>::getNestedColumnsCount(int row, int column) const
|
|
|
|
|
{
|
|
|
|
|
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->getNestedColumnsCount(getRecord(row));
|
|
|
|
|
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->getNestedColumnsCount(
|
|
|
|
|
Collection<ESXRecordT, IdAccessorT>::getRecord(row));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename ESXRecordT, typename IdAccessorT>
|
|
|
|
|