OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cellcreator.hpp
Go to the documentation of this file.
1 #ifndef CSV_WORLD_CELLCREATOR_H
2 #define CSV_WORLD_CELLCREATOR_H
3 
4 class QLabel;
5 class QSpinBox;
6 class QComboBox;
7 
8 #include "genericcreator.hpp"
9 
10 namespace CSVWorld
11 {
12  class CellCreator : public GenericCreator
13  {
14  Q_OBJECT
15 
16  QComboBox *mType;
17  QLabel *mXLabel;
19  QLabel *mYLabel;
21 
22  protected:
23 
24  virtual std::string getId() const;
25 
27  virtual void configureCreateCommand(CSMWorld::CreateCommand& command) const;
28 
29  public:
30 
31  CellCreator (CSMWorld::Data& data, QUndoStack& undoStack, const CSMWorld::UniversalId& id);
32 
33  virtual void reset();
34 
35  virtual void cloneMode(const std::string& originId,
36  const CSMWorld::UniversalId::Type type);
37 
38  virtual std::string getErrors() const;
41 
42  private slots:
43 
44  void setType (int index);
45 
46  void valueChanged (int index);
47  };
48 }
49 
50 #endif
virtual void cloneMode(const std::string &originId, const CSMWorld::UniversalId::Type type)
Definition: cellcreator.cpp:95
Definition: commands.hpp:48
virtual void configureCreateCommand(CSMWorld::CreateCommand &command) const
Allow subclasses to add additional data to command.
Definition: cellcreator.cpp:25
virtual std::string getErrors() const
Definition: cellcreator.cpp:109
QSpinBox * mY
Definition: cellcreator.hpp:20
CellCreator(CSMWorld::Data &data, QUndoStack &undoStack, const CSMWorld::UniversalId &id)
Definition: cellcreator.cpp:34
QSpinBox * mX
Definition: cellcreator.hpp:18
Type
Definition: universalid.hpp:40
void setType(int index)
Definition: cellcreator.cpp:79
Definition: cellcreator.hpp:12
QLabel * mYLabel
Definition: cellcreator.hpp:19
void valueChanged(int index)
Definition: cellcreator.cpp:90
QComboBox * mType
Definition: cellcreator.hpp:16
Definition: data.hpp:77
Definition: genericcreator.hpp:28
virtual std::string getId() const
Definition: cellcreator.cpp:13
QLabel * mXLabel
Definition: cellcreator.hpp:17
virtual void reset()
Definition: cellcreator.cpp:70
Definition: universalid.hpp:12