2013-10-21 11:39:13 +00:00
|
|
|
#ifndef CSV_WORLD_DIALOGUECREATOR_H
|
|
|
|
#define CSV_WORLD_DIALOGUECREATOR_H
|
|
|
|
|
|
|
|
#include "genericcreator.hpp"
|
|
|
|
|
2022-10-19 17:02:00 +00:00
|
|
|
#include <apps/opencs/model/world/universalid.hpp>
|
|
|
|
#include <apps/opencs/view/world/creator.hpp>
|
|
|
|
|
|
|
|
class QUndoStack;
|
|
|
|
|
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Document;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
class CreateCommand;
|
|
|
|
class Data;
|
|
|
|
}
|
|
|
|
|
2013-10-21 11:39:13 +00:00
|
|
|
namespace CSVWorld
|
|
|
|
{
|
|
|
|
class DialogueCreator : public GenericCreator
|
|
|
|
{
|
|
|
|
int mType;
|
|
|
|
|
|
|
|
protected:
|
2020-10-16 18:18:54 +00:00
|
|
|
void configureCreateCommand(CSMWorld::CreateCommand& command) const override;
|
2013-10-21 11:39:13 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
DialogueCreator(CSMWorld::Data& data, QUndoStack& undoStack, const CSMWorld::UniversalId& id, int type);
|
|
|
|
};
|
|
|
|
|
|
|
|
class TopicCreatorFactory : public CreatorFactoryBase
|
|
|
|
{
|
|
|
|
public:
|
2020-10-16 18:18:54 +00:00
|
|
|
Creator* makeCreator(CSMDoc::Document& document, const CSMWorld::UniversalId& id) const override;
|
2013-10-21 11:39:13 +00:00
|
|
|
///< The ownership of the returned Creator is transferred to the caller.
|
|
|
|
};
|
|
|
|
|
|
|
|
class JournalCreatorFactory : public CreatorFactoryBase
|
|
|
|
{
|
|
|
|
public:
|
2020-10-16 18:18:54 +00:00
|
|
|
Creator* makeCreator(CSMDoc::Document& document, const CSMWorld::UniversalId& id) const override;
|
2013-10-21 11:39:13 +00:00
|
|
|
///< The ownership of the returned Creator is transferred to the caller.
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|