OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
infocreator.hpp
Go to the documentation of this file.
1 #ifndef CSV_WORLD_INFOCREATOR_H
2 #define CSV_WORLD_INFOCREATOR_H
3 
4 #include "genericcreator.hpp"
5 
6 namespace CSMWorld
7 {
8  class InfoCollection;
9  class IdCompletionManager;
10 }
11 
12 namespace CSVWidget
13 {
14  class DropLineEdit;
15 }
16 
17 namespace CSVWorld
18 {
19  class InfoCreator : public GenericCreator
20  {
21  Q_OBJECT
22 
24 
25  virtual std::string getId() const;
26 
27  virtual void configureCreateCommand (CSMWorld::CreateCommand& command) const;
28 
29  public:
30 
31  InfoCreator (CSMWorld::Data& data, QUndoStack& undoStack,
32  const CSMWorld::UniversalId& id, CSMWorld::IdCompletionManager& completionManager);
33 
34  virtual void cloneMode (const std::string& originId,
35  const CSMWorld::UniversalId::Type type);
36 
37  virtual void reset();
38 
39  virtual std::string getErrors() const;
42 
44  virtual void focus();
45 
46  private slots:
47 
48  void topicChanged();
49  };
50 
52  {
53  public:
54 
55  virtual Creator *makeCreator (CSMDoc::Document& document, const CSMWorld::UniversalId& id) const;
57  };
58 }
59 
60 #endif
virtual Creator * makeCreator(CSMDoc::Document &document, const CSMWorld::UniversalId &id) const
The ownership of the returned Creator is transferred to the caller.
Definition: infocreator.cpp:114
Record creator UI base class.
Definition: creator.hpp:21
virtual void reset()
Definition: infocreator.cpp:82
void topicChanged()
Definition: infocreator.cpp:109
virtual void focus()
Focus main input widget.
Definition: infocreator.cpp:104
Definition: commands.hpp:48
virtual void configureCreateCommand(CSMWorld::CreateCommand &command) const
Allow subclasses to add additional data to command.
Definition: infocreator.cpp:33
InfoCreator(CSMWorld::Data &data, QUndoStack &undoStack, const CSMWorld::UniversalId &id, CSMWorld::IdCompletionManager &completionManager)
Definition: infocreator.cpp:44
Creates and stores all ID completers.
Definition: idcompletionmanager.hpp:19
Type
Definition: universalid.hpp:40
Definition: infocreator.hpp:19
Definition: infocreator.hpp:51
CSVWidget::DropLineEdit * mTopic
Definition: infocreator.hpp:23
Definition: droplineedit.hpp:21
Definition: data.hpp:77
virtual std::string getErrors() const
Definition: infocreator.cpp:88
Base class for Creator factory.
Definition: creator.hpp:54
Definition: genericcreator.hpp:28
Definition: document.hpp:57
virtual std::string getId() const
Definition: infocreator.cpp:20
virtual void cloneMode(const std::string &originId, const CSMWorld::UniversalId::Type type)
Definition: infocreator.cpp:66
Definition: universalid.hpp:12