1 #ifndef CSM_DOC_DOCUMENTMGR_H
2 #define CSM_DOC_DOCUMENTMGR_H
7 #include <boost/filesystem/path.hpp>
15 #include "../world/resourcesmanager.hpp"
26 struct ConfigurationManager;
55 void addDocument (
const std::vector< boost::filesystem::path >& files,
56 const boost::filesystem::path& savePath,
bool new_);
67 const boost::filesystem::path& savePath,
bool new_);
71 void setFallbackMap (
const std::map<std::string, std::string>& fallbackMap);
115 const std::string& error);
void setEncoding(ToUTF8::FromType encoding)
Definition: documentmanager.cpp:109
void message(CodeContainer &code, Literals &literals, const std::string &message, int buttons)
Definition: generator.cpp:537
static const struct @2 signals[]
void documentLoaded(Document *document)
The ownership of document is not transferred.
Definition: documentmanager.cpp:119
contains settings imported from the Morrowind INI file.
Definition: fallback.hpp:12
Definition: resourcesmanager.hpp:16
Definition: configurationmanager.hpp:20
Definition: loader.hpp:15
Definition: documentmanager.hpp:33
Fallback::Map mFallbackMap
Definition: documentmanager.hpp:84
DocumentManager(const DocumentManager &)
void loadingStopped(CSMDoc::Document *document, bool completed, const std::string &error)
bool isEmpty()
Definition: documentmanager.cpp:52
void setBlacklistedScripts(const std::vector< std::string > &scriptIds)
Definition: documentmanager.cpp:114
std::vector< Document * > mDocuments
Definition: documentmanager.hpp:37
void nextStage(CSMDoc::Document *document, const std::string &name, int totalRecords)
~DocumentManager()
Definition: documentmanager.cpp:41
const Files::ConfigurationManager & mConfiguration
Definition: documentmanager.hpp:38
void documentAboutToBeRemoved(CSMDoc::Document *document)
void insertDocument(CSMDoc::Document *document)
Definition: documentmanager.cpp:71
CSMWorld::ResourcesManager mResourcesManager
Definition: documentmanager.hpp:42
void loadMessage(CSMDoc::Document *document, const std::string &message)
boost::filesystem::path mResDir
Definition: documentmanager.hpp:83
DocumentManager & operator=(const DocumentManager &)
FromType
Definition: to_utf8.hpp:11
void setVFS(const VFS::Manager *vfs)
Definition: documentmanager.cpp:133
Definition: document.hpp:57
void removeDocument(CSMDoc::Document *document)
Emits the lastDocumentDeleted signal, if applicable.
Definition: documentmanager.cpp:83
void documentNotLoaded(Document *document, const std::string &error)
Definition: documentmanager.cpp:125
Loader mLoader
Definition: documentmanager.hpp:40
QThread mLoaderThread
Definition: documentmanager.hpp:39
Document * makeDocument(const std::vector< boost::filesystem::path > &files, const boost::filesystem::path &savePath, bool new_)
Definition: documentmanager.cpp:64
std::vector< std::string > mBlacklistedScripts
Definition: documentmanager.hpp:43
void documentAdded(CSMDoc::Document *document)
The main class responsible for loading files from a virtual file system.
Definition: manager.hpp:20
void setResourceDir(const boost::filesystem::path &parResDir)
Definition: documentmanager.cpp:99
void loadRequest(CSMDoc::Document *document)
void cancelLoading(CSMDoc::Document *document)
void nextRecord(CSMDoc::Document *document, int records)
void lastDocumentDeleted()
void setFallbackMap(const std::map< std::string, std::string > &fallbackMap)
Definition: documentmanager.cpp:104
void addDocument(const std::vector< boost::filesystem::path > &files, const boost::filesystem::path &savePath, bool new_)
Definition: documentmanager.cpp:57
const VFS::Manager * mVFS
Definition: documentmanager.hpp:44
const char * name
Definition: crashcatcher.cpp:59
ToUTF8::FromType mEncoding
Definition: documentmanager.hpp:41