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