1 #ifndef CSV_WORLD_CREATOR_H
2 #define CSV_WORLD_CREATOR_H
8 #include "../../model/doc/document.hpp"
10 #include "../../model/world/scope.hpp"
11 #include "../../model/world/universalid.hpp"
29 virtual void reset() = 0;
31 virtual void cloneMode(
const std::string& originId,
39 virtual void setScope (
unsigned int scope);
42 virtual void focus() = 0;
78 template<
class CreatorT,
unsigned int scope = CSMWorld::Scope_Content>
90 template<
class CreatorT,
unsigned int scope>
94 std::auto_ptr<CreatorT> creator (
new CreatorT (document.
getData(), document.
getUndoStack(), id));
96 creator->setScope (scope);
98 return creator.release();
Record creator UI base class.
Definition: creator.hpp:21
virtual Creator * makeCreator(CSMDoc::Document &document, const CSMWorld::UniversalId &id) const =0
static const struct @2 signals[]
virtual Creator * makeCreator(CSMDoc::Document &document, const CSMWorld::UniversalId &id) const
Definition: creator.cpp:17
Type
Definition: universalid.hpp:40
virtual ~Creator()
Definition: creator.cpp:5
void requestFocus(const std::string &id)
virtual ~CreatorFactoryBase()
Definition: creator.cpp:14
virtual void cloneMode(const std::string &originId, const CSMWorld::UniversalId::Type type)=0
Base class for Creator factory.
Definition: creator.hpp:54
virtual void setScope(unsigned int scope)
Default implementation: Throw an exception if scope!=Scope_Content.
Definition: creator.cpp:7
Definition: creator.hpp:79
Definition: document.hpp:57
const CSMWorld::Data & getData() const
Definition: document.cpp:451
QUndoStack & getUndoStack()
Definition: document.cpp:344
virtual Creator * makeCreator(CSMDoc::Document &document, const CSMWorld::UniversalId &id) const
Definition: creator.hpp:91
virtual void focus()=0
Focus main input widget.
virtual void toggleWidgets(bool active=true)=0
virtual void setEditLock(bool locked)=0
Creator factory that does not produces any creator.
Definition: creator.hpp:68
Definition: universalid.hpp:12