mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
43 lines
887 B
C++
43 lines
887 B
C++
#ifndef CSV_WORLD_INFOCREATOR_H
|
|
#define CSV_WORLD_INFOCREATOR_H
|
|
|
|
#include "genericcreator.hpp"
|
|
|
|
class QLineEdit;
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class InfoCollection;
|
|
}
|
|
|
|
namespace CSVWorld
|
|
{
|
|
class InfoCreator : public GenericCreator
|
|
{
|
|
Q_OBJECT
|
|
|
|
QLineEdit *mTopic;
|
|
|
|
virtual std::string getId() const;
|
|
|
|
virtual void configureCreateCommand (CSMWorld::CreateCommand& command) const;
|
|
|
|
public:
|
|
|
|
InfoCreator (CSMWorld::Data& data, QUndoStack& undoStack,
|
|
const CSMWorld::UniversalId& id);
|
|
|
|
virtual void reset();
|
|
|
|
virtual std::string getErrors() const;
|
|
///< Return formatted error descriptions for the current state of the creator. if an empty
|
|
/// string is returned, there is no error.
|
|
|
|
private slots:
|
|
|
|
void topicChanged();
|
|
};
|
|
}
|
|
|
|
#endif
|