1 #ifndef CSM_DOC_DOCUMENT_H
2 #define CSM_DOC_DOCUMENT_H
6 #include <boost/shared_ptr.hpp>
7 #include <boost/filesystem/path.hpp>
15 #include "../world/data.hpp"
16 #include "../world/idcompletionmanager.hpp"
18 #include "../tools/tools.hpp"
47 struct ConfigurationManager;
107 const std::vector< boost::filesystem::path >& files,
bool new_,
108 const boost::filesystem::path& savePath,
const boost::filesystem::path& resDir,
111 const std::vector<std::string>& blacklistedScripts);
121 const boost::filesystem::path&
getSavePath()
const;
140 void runMerge (std::auto_ptr<CSMDoc::Document> target);
154 const std::string& startupInstruction =
"");
186 void progress (
int current,
int max,
int type);
const std::vector< boost::filesystem::path > & getContentFiles() const
Definition: document.cpp:378
void message(CodeContainer &code, Literals &literals, const std::string &message, int buttons)
Definition: generator.cpp:537
const VFS::Manager * mVFS
Definition: document.hpp:63
CSMWorld::Data mData
Definition: document.hpp:67
static const struct @2 signals[]
ID blacklist sorted by UniversalId type.
Definition: blacklist.hpp:13
CSMWorld::UniversalId verify(const CSMWorld::UniversalId &reportId=CSMWorld::UniversalId())
Definition: document.cpp:399
void mergeDone(CSMDoc::Document *document)
QUndoStack mUndoStack
Definition: document.hpp:82
std::vector< boost::filesystem::path > mContentFiles
Definition: document.hpp:65
void abortOperation(int type)
Definition: document.cpp:424
bool mDirty
Definition: document.hpp:76
Creates and stores all ID completers.
Definition: idcompletionmanager.hpp:19
contains settings imported from the Morrowind INI file.
Definition: fallback.hpp:12
Definition: resourcesmanager.hpp:16
const boost::filesystem::path & getProjectPath() const
Definition: document.cpp:373
Definition: saving.hpp:15
Definition: messages.hpp:13
Definition: configurationmanager.hpp:20
boost::filesystem::path mResDir
Definition: document.hpp:72
Definition: loadgmst.hpp:19
void addOptionalGlobals()
Definition: document.cpp:76
Definition: loadglob.hpp:18
void addOptionalGmst(const ESM::GameSetting &gmst)
Definition: document.cpp:113
~Document()
Definition: document.cpp:335
void addOptionalGmsts()
Definition: document.cpp:45
MWWorld::Ptr searchId(MWWorld::CellRefList< T > &list, const std::string &id, MWWorld::ContainerStore *store)
Definition: containerstore.cpp:42
void operationDone(int type, bool failed)
Definition: document.cpp:443
Blacklist mBlacklist
Definition: document.hpp:74
void flagAsDirty()
Definition: document.cpp:525
CSMWorld::UniversalId newSearch()
Definition: document.cpp:407
Saving mSavingOperation
Definition: document.hpp:70
CSMTools::ReportModel * getReport(const CSMWorld::UniversalId &id)
The ownership of the returned report is not transferred.
Definition: document.cpp:461
void progress(int current, int max, int type, int threads, CSMDoc::Document *document)
Document & operator=(const Document &)
boost::filesystem::path mSavePath
Definition: document.hpp:64
bool mNew
Definition: document.hpp:66
Document(const Document &)
void startRunning(const std::string &profile, const std::string &startupInstruction="")
Definition: document.cpp:472
void createBase()
Definition: document.cpp:146
FromType
Definition: to_utf8.hpp:11
bool isNew() const
Is this a newly created content file?
Definition: document.cpp:383
Definition: loadmgef.hpp:13
int getState() const
Definition: document.cpp:349
void addGmsts()
Definition: document.cpp:15
void reportMessage(const CSMDoc::Message &message, int type)
Definition: document.cpp:437
void runMerge(std::auto_ptr< CSMDoc::Document > target)
Definition: document.cpp:418
Definition: document.hpp:57
QTextDocument * getRunLog()
Definition: document.cpp:505
void addOptionalGlobal(const ESM::Global &global)
Definition: document.cpp:124
CSMWorld::IdCompletionManager & getIdCompletionManager()
Definition: document.cpp:520
const CSMWorld::Data & getData() const
Definition: document.cpp:451
CSMTools::Tools mTools
Definition: document.hpp:68
void stateChanged(int state, CSMDoc::Document *document)
void runSearch(const CSMWorld::UniversalId &searchId, const CSMTools::Search &search)
Definition: document.cpp:412
const Fallback::Map * mFallbackMap
Definition: document.hpp:73
Runner mRunner
Definition: document.hpp:75
CSMWorld::IdCompletionManager mIdCompletionManager
Definition: document.hpp:78
QUndoStack & getUndoStack()
Definition: document.cpp:344
Definition: runner.hpp:21
OperationHolder mSaving
Definition: document.hpp:71
The main class responsible for loading files from a virtual file system.
Definition: manager.hpp:20
bool isBlacklisted(const CSMWorld::UniversalId &id) const
Definition: document.cpp:466
void stopRunning()
Definition: document.cpp:500
void modificationStateChanged(bool clean)
Definition: document.cpp:432
void runStateChanged()
Definition: document.cpp:510
const VFS::Manager * getVFS() const
Definition: document.cpp:339
Definition: operationholder.hpp:18
const boost::filesystem::path & getSavePath() const
Definition: document.cpp:368
void addOptionalMagicEffect(const ESM::MagicEffect &effect)
Definition: document.cpp:135
void addOptionalMagicEffects()
Definition: document.cpp:100
boost::filesystem::path mProjectPath
Definition: document.hpp:69
void save()
Definition: document.cpp:388
Definition: universalid.hpp:12