|
|
|
@ -206,6 +206,18 @@ CSMWorld::Data::Data (ToUTF8::FromType encoding)
|
|
|
|
|
mEnchantments.addColumn (new ChargesColumn2<ESM::Enchantment>);
|
|
|
|
|
mEnchantments.addColumn (new AutoCalcColumn<ESM::Enchantment>);
|
|
|
|
|
|
|
|
|
|
mBodyParts.addColumn (new StringIdColumn<ESM::BodyPart>);
|
|
|
|
|
mBodyParts.addColumn (new RecordStateColumn<ESM::BodyPart>);
|
|
|
|
|
mBodyParts.addColumn (new FixedRecordTypeColumn<ESM::BodyPart> (UniversalId::Type_BodyPart));
|
|
|
|
|
|
|
|
|
|
mBodyParts.addColumn (new VampireColumn<ESM::BodyPart>);
|
|
|
|
|
mBodyParts.addColumn (new FlagColumn<ESM::BodyPart> (Columns::ColumnId_Female, ESM::BodyPart::BPF_Female));
|
|
|
|
|
mBodyParts.addColumn (new FlagColumn<ESM::BodyPart> (Columns::ColumnId_Playable, ESM::BodyPart::BPF_NotPlayable, true));
|
|
|
|
|
|
|
|
|
|
mBodyParts.addColumn (new ModelColumn<ESM::BodyPart>);
|
|
|
|
|
mBodyParts.addColumn (new RaceColumn<ESM::BodyPart>);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mRefs.addColumn (new StringIdColumn<CellRef> (true));
|
|
|
|
|
mRefs.addColumn (new RecordStateColumn<CellRef>);
|
|
|
|
|
mRefs.addColumn (new FixedRecordTypeColumn<CellRef> (UniversalId::Type_Reference));
|
|
|
|
@ -261,6 +273,7 @@ CSMWorld::Data::Data (ToUTF8::FromType encoding)
|
|
|
|
|
addModel (new IdTable (&mJournalInfos, IdTable::Feature_ReorderWithinTopic), UniversalId::Type_JournalInfo);
|
|
|
|
|
addModel (new IdTable (&mCells, IdTable::Feature_ViewId), UniversalId::Type_Cell);
|
|
|
|
|
addModel (new IdTable (&mEnchantments), UniversalId::Type_Enchantment);
|
|
|
|
|
addModel (new IdTable (&mBodyParts), UniversalId::Type_BodyPart);
|
|
|
|
|
addModel (new IdTable (&mReferenceables, IdTable::Feature_Preview),
|
|
|
|
|
UniversalId::Type_Referenceable);
|
|
|
|
|
addModel (new IdTable (&mRefs, IdTable::Feature_ViewCell | IdTable::Feature_Preview), UniversalId::Type_Reference);
|
|
|
|
@ -476,6 +489,16 @@ CSMWorld::IdCollection<ESM::Enchantment>& CSMWorld::Data::getEnchantments()
|
|
|
|
|
return mEnchantments;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const CSMWorld::IdCollection<ESM::BodyPart>& CSMWorld::Data::getBodyParts() const
|
|
|
|
|
{
|
|
|
|
|
return mBodyParts;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CSMWorld::IdCollection<ESM::BodyPart>& CSMWorld::Data::getBodyParts()
|
|
|
|
|
{
|
|
|
|
|
return mBodyParts;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QAbstractItemModel *CSMWorld::Data::getTableModel (const CSMWorld::UniversalId& id)
|
|
|
|
|
{
|
|
|
|
|
std::map<UniversalId::Type, QAbstractItemModel *>::iterator iter = mModelIndex.find (id.getType());
|
|
|
|
@ -554,6 +577,7 @@ bool CSMWorld::Data::continueLoading (CSMDoc::Stage::Messages& messages)
|
|
|
|
|
case ESM::REC_BSGN: mBirthsigns.load (*mReader, mBase); break;
|
|
|
|
|
case ESM::REC_SPEL: mSpells.load (*mReader, mBase); break;
|
|
|
|
|
case ESM::REC_ENCH: mEnchantments.load (*mReader, mBase); break;
|
|
|
|
|
case ESM::REC_BODY: mBodyParts.load (*mReader, mBase); break;
|
|
|
|
|
|
|
|
|
|
case ESM::REC_CELL:
|
|
|
|
|
{
|
|
|
|
|