1 #ifndef CSM_WOLRD_DATA_H
2 #define CSM_WOLRD_DATA_H
7 #include <boost/filesystem/path.hpp>
10 #include <QModelIndex>
36 #include "../doc/stage.hpp"
74 class ResourcesManager;
124 std::vector<boost::shared_ptr<ESM::ESMReader> >
mReaders;
283 int startLoading (
const boost::filesystem::path& path,
bool base,
bool project);
293 bool hasId (
const std::string&
id)
const;
295 std::vector<std::string>
getIds (
bool listDeleted =
true)
const;
309 void dataChanged (
const QModelIndex& topLeft,
const QModelIndex& bottomRight);
311 void rowsChanged (
const QModelIndex& parent,
int start,
int end);
NestedIdCollection< ESM::Spell > mSpells
Definition: data.hpp:92
IdCollection< ESM::MagicEffect > mMagicEffects
Definition: data.hpp:97
static void appendIds(std::vector< std::string > &ids, const CollectionBase &collection, bool listDeleted)
Append all IDs from collection to ids.
Definition: data.cpp:45
const IdCollection< ESM::MagicEffect > & getMagicEffects() const
Definition: data.cpp:818
const IdCollection< ESM::Sound > & getSounds() const
Definition: data.cpp:627
const IdCollection< ESM::SoundGenerator > & getSoundGens() const
Definition: data.cpp:808
static const struct @2 signals[]
boost::shared_ptr< Resource::ResourceSystem > mResourceSystem
Definition: data.hpp:122
std::vector< std::string > getIds(bool listDeleted=true) const
Definition: data.cpp:1190
IdCollection< ESM::BodyPart > mBodyParts
Definition: data.hpp:96
const ESM::Dialogue * mDialogue
Definition: data.hpp:116
Definition: esmreader.hpp:21
const IdCollection< ESM::Class > & getClasses() const
Definition: data.cpp:597
const IdCollection< ESM::Faction > & getFactions() const
Definition: data.cpp:607
IdCollection< ESM::GameSetting > mGmsts
Definition: data.hpp:83
const RefCollection & getReferences() const
Definition: data.cpp:738
NestedIdCollection< ESM::Faction > mFactions
Definition: data.hpp:86
const IdCollection< ESM::Script > & getScripts() const
Definition: data.cpp:637
const Resources & getResources(const UniversalId &id) const
Throws an exception, if id does not match a resources list.
Definition: data.cpp:848
IdCollection< ESM::Skill > mSkills
Definition: data.hpp:84
void addModel(QAbstractItemModel *model, UniversalId::Type type, bool update=true)
Definition: data.cpp:24
InfoCollection mJournalInfos
Definition: data.hpp:103
contains settings imported from the Morrowind INI file.
Definition: fallback.hpp:12
IdCollection< ESM::Sound > mSounds
Definition: data.hpp:88
Type
Definition: universalid.hpp:40
bool mBase
Definition: data.hpp:117
const IdCollection< ESM::Global > & getGlobals() const
Definition: data.cpp:567
const IdCollection< ESM::Filter > & getFilters() const
Definition: data.cpp:748
int mReaderIndex
Definition: data.hpp:120
IdCollection< ESM::DebugProfile > mDebugProfiles
Definition: data.hpp:99
Definition: resourcesmanager.hpp:16
const IdCollection< ESM::StartScript > & getStartScripts() const
Definition: data.cpp:838
boost::shared_ptr< Resource::ResourceSystem > getResourceSystem()
Definition: data.cpp:557
IdCollection< ESM::Filter > mFilters
Definition: data.hpp:109
const ResourcesManager & mResourcesManager
Definition: data.hpp:111
Single-type record collection.
Definition: collection.hpp:44
Definition: infocollection.hpp:14
const SubCellCollection< Pathgrid > & getPathgrids() const
Definition: data.cpp:828
Definition: messages.hpp:38
const Fallback::Map * mFallbackMap
Definition: data.hpp:112
NestedIdCollection< ESM::Race > mRaces
Definition: data.hpp:87
Definition: loaddial.hpp:21
std::vector< QAbstractItemModel * > mModels
Definition: data.hpp:113
NestedIdCollection< ESM::BirthSign > mBirthsigns
Definition: data.hpp:91
const IdCollection< ESM::Enchantment > & getEnchantments() const
Definition: data.cpp:758
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: data.cpp:1218
State
Definition: record.hpp:10
NestedIdCollection< ESM::Enchantment > mEnchantments
Definition: data.hpp:95
const IdCollection< ESM::BodyPart > & getBodyParts() const
Definition: data.cpp:768
IdCollection< LandTexture > mLandTextures
Definition: data.hpp:105
IdCollection< ESM::Global > mGlobals
Definition: data.hpp:82
IdCollection< ESM::StartScript > mStartScripts
Definition: data.hpp:101
const InfoCollection & getTopicInfos() const
Definition: data.cpp:698
NestedIdCollection< ESM::Region > mRegions
Definition: data.hpp:90
RefCollection mRefs
Definition: data.hpp:108
ESM::ESMReader * mReader
Definition: data.hpp:115
const VFS::Manager * getVFS() const
Definition: data.cpp:1229
QAbstractItemModel * getTableModel(const UniversalId &id)
Definition: data.cpp:864
const IdCollection< ESM::Race > & getRaces() const
Definition: data.cpp:617
Data & operator=(const Data &)
Definition: resources.hpp:17
const IdCollection< ESM::Spell > & getSpells() const
Definition: data.cpp:667
int startLoading(const boost::filesystem::path &path, bool base, bool project)
Definition: data.cpp:891
const IdCollection< ESM::Dialogue > & getJournals() const
Definition: data.cpp:688
Definition: nestedinfocollection.hpp:16
RefIdCollection mReferenceables
Definition: data.hpp:107
const IdCollection< Cell > & getCells() const
Definition: data.cpp:718
IdCollection< ESM::SoundGenerator > mSoundGens
Definition: data.hpp:100
void setMetaData(const MetaData &metaData)
Definition: data.cpp:858
Definition: refidcollection.hpp:40
bool hasId(const std::string &id) const
Definition: data.cpp:1141
FromType
Definition: to_utf8.hpp:11
IdCollection< Land > mLand
Definition: data.hpp:106
std::vector< boost::shared_ptr< ESM::ESMReader > > mReaders
Definition: data.hpp:124
SubCellCollection< Pathgrid > mPathgrids
Definition: data.hpp:98
const IdCollection< ESM::Skill > & getSkills() const
Definition: data.cpp:587
static int count(RecordBase::State state, const CollectionBase &collection)
Definition: data.cpp:53
const IdCollection< ESM::BirthSign > & getBirthsigns() const
Definition: data.cpp:657
NestedIdCollection< Cell > mCells
Definition: data.hpp:104
const IdCollection< ESM::Region > & getRegions() const
Definition: data.cpp:647
IdCollection< ESM::Class > mClasses
Definition: data.hpp:85
const InfoCollection & getJournalInfos() const
Definition: data.cpp:708
std::map< std::string, int > mContentFileNames
Definition: data.hpp:126
void rowsChanged(const QModelIndex &parent, int start, int end)
Definition: data.cpp:1224
const Fallback::Map * getFallbackMap() const
Definition: data.cpp:1234
std::map< std::string, std::map< ESM::RefNum, std::string > > mRefLoadCache
Definition: data.hpp:119
Base class for record collections.
Definition: collectionbase.hpp:23
bool mProject
Definition: data.hpp:118
Single type collection of top level records that are associated with cells.
Definition: pathgridcheck.hpp:12
IdCollection< ESM::Dialogue > mJournals
Definition: data.hpp:94
const MetaData & getMetaData() const
Definition: data.cpp:853
const IdCollection< ESM::GameSetting > & getGmsts() const
Definition: data.cpp:577
std::map< UniversalId::Type, QAbstractItemModel * > mModelIndex
Definition: data.hpp:114
const IdCollection< CSMWorld::LandTexture > & getLandTextures() const
Definition: data.cpp:798
void merge()
Merge modified into base.
Definition: data.cpp:886
const IdCollection< ESM::DebugProfile > & getDebugProfiles() const
Definition: data.cpp:778
The main class responsible for loading files from a virtual file system.
Definition: manager.hpp:20
ToUTF8::Utf8Encoder mEncoder
Definition: data.hpp:81
IdCollection< ESM::Dialogue > mTopics
Definition: data.hpp:93
Definition: to_utf8.hpp:25
IdCollection< ESM::Script > mScripts
Definition: data.hpp:89
NestedInfoCollection mTopicInfos
Definition: data.hpp:102
const IdCollection< CSMWorld::Land > & getLand() const
Definition: data.cpp:788
Collection< MetaData > mMetaData
Definition: data.hpp:110
const IdCollection< ESM::Dialogue > & getTopics() const
Definition: data.cpp:678
const RefIdCollection & getReferenceables() const
Definition: data.cpp:728
bool continueLoading(CSMDoc::Messages &messages)
Definition: data.cpp:936
References in cells.
Definition: refcollection.hpp:18
virtual ~Data()
Definition: data.cpp:549
Definition: universalid.hpp:12