#include <documentmanager.hpp>
CSMDoc::DocumentManager::~DocumentManager |
( |
| ) |
|
void CSMDoc::DocumentManager::addDocument |
( |
const std::vector< boost::filesystem::path > & |
files, |
|
|
const boost::filesystem::path & |
savePath, |
|
|
bool |
new_ |
|
) |
| |
- Parameters
-
new_ | Do not load the last content file in files and instead create in an appropriate way. |
void CSMDoc::DocumentManager::documentAboutToBeRemoved |
( |
CSMDoc::Document * |
document | ) |
|
|
signal |
void CSMDoc::DocumentManager::documentLoaded |
( |
Document * |
document | ) |
|
|
privateslot |
The ownership of document is not transferred.
void CSMDoc::DocumentManager::documentNotLoaded |
( |
Document * |
document, |
|
|
const std::string & |
error |
|
) |
| |
|
privateslot |
Document load has been interrupted either because of a call to abortLoading or a problem during loading). In the former case error will be an empty string.
Hand over document to *this. The ownership is transferred. The DocumentManager will initiate the load procedure, if necessary
bool CSMDoc::DocumentManager::isEmpty |
( |
| ) |
|
void CSMDoc::DocumentManager::lastDocumentDeleted |
( |
| ) |
|
|
signal |
void CSMDoc::DocumentManager::loadingStopped |
( |
CSMDoc::Document * |
document, |
|
|
bool |
completed, |
|
|
const std::string & |
error |
|
) |
| |
|
signal |
void CSMDoc::DocumentManager::loadMessage |
( |
CSMDoc::Document * |
document, |
|
|
const std::string & |
message |
|
) |
| |
|
signal |
CSMDoc::Document * CSMDoc::DocumentManager::makeDocument |
( |
const std::vector< boost::filesystem::path > & |
files, |
|
|
const boost::filesystem::path & |
savePath, |
|
|
bool |
new_ |
|
) |
| |
Create a new document. The ownership of the created document is transferred to the calling function. The DocumentManager does not manage it. Loading has not taken place at the point when the document is returned.
- Parameters
-
new_ | Do not load the last content file in files and instead create in an appropriate way. |
void CSMDoc::DocumentManager::nextStage |
( |
CSMDoc::Document * |
document, |
|
|
const std::string & |
name, |
|
|
int |
totalRecords |
|
) |
| |
|
signal |
Emits the lastDocumentDeleted signal, if applicable.
void CSMDoc::DocumentManager::setBlacklistedScripts |
( |
const std::vector< std::string > & |
scriptIds | ) |
|
void CSMDoc::DocumentManager::setFallbackMap |
( |
const std::map< std::string, std::string > & |
fallbackMap | ) |
|
void CSMDoc::DocumentManager::setResourceDir |
( |
const boost::filesystem::path & |
parResDir | ) |
|
void CSMDoc::DocumentManager::setVFS |
( |
const VFS::Manager * |
vfs | ) |
|
std::vector<std::string> CSMDoc::DocumentManager::mBlacklistedScripts |
|
private |
std::vector<Document *> CSMDoc::DocumentManager::mDocuments |
|
private |
Loader CSMDoc::DocumentManager::mLoader |
|
private |
QThread CSMDoc::DocumentManager::mLoaderThread |
|
private |
boost::filesystem::path CSMDoc::DocumentManager::mResDir |
|
private |
The documentation for this class was generated from the following files: