OpenMW
apps/opencs/view/world/referencecreator.hpp
Go to the documentation of this file.
00001 #ifndef CSV_WORLD_REFERENCECREATOR_H
00002 #define CSV_WORLD_REFERENCECREATOR_H
00003 
00004 #include "genericcreator.hpp"
00005 
00006 class QLineEdit;
00007 
00008 namespace CSVWorld
00009 {
00010     class ReferenceCreator : public GenericCreator
00011     {
00012             Q_OBJECT
00013 
00014             QLineEdit *mCell;
00015             std::string mId;
00016 
00017         private:
00018 
00019             virtual std::string getId() const;
00020 
00021             virtual void configureCreateCommand (CSMWorld::CreateCommand& command) const;
00022 
00023         public:
00024 
00025             ReferenceCreator (CSMWorld::Data& data, QUndoStack& undoStack,
00026                 const CSMWorld::UniversalId& id);
00027 
00028             virtual void reset();
00029 
00030             virtual std::string getErrors() const;
00033 
00034         private slots:
00035 
00036             void cellChanged();
00037     };
00038 }
00039 
00040 #endif