mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:19:55 +00:00
26 lines
612 B
C++
26 lines
612 B
C++
|
|
#include "mergeoperation.hpp"
|
|
|
|
#include "../doc/state.hpp"
|
|
#include "../doc/document.hpp"
|
|
|
|
#include "mergestages.hpp"
|
|
|
|
CSMTools::MergeOperation::MergeOperation (CSMDoc::Document& document)
|
|
: CSMDoc::Operation (CSMDoc::State_Merging, true), mState (document)
|
|
{
|
|
appendStage (new FinishMergedDocumentStage (mState));
|
|
}
|
|
|
|
void CSMTools::MergeOperation::setTarget (std::auto_ptr<CSMDoc::Document> document)
|
|
{
|
|
mState.mTarget = document;
|
|
}
|
|
|
|
void CSMTools::MergeOperation::operationDone()
|
|
{
|
|
CSMDoc::Operation::operationDone();
|
|
|
|
if (mState.mCompleted)
|
|
emit mergeDone (mState.mTarget.release());
|
|
}
|