You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
C++
48 lines
1.0 KiB
C++
#ifndef CSV_WORLD_LANDCREATOR_H
|
|
#define CSV_WORLD_LANDCREATOR_H
|
|
|
|
#include "genericcreator.hpp"
|
|
|
|
class QLabel;
|
|
class QSpinBox;
|
|
|
|
namespace CSVWorld
|
|
{
|
|
class LandCreator : public GenericCreator
|
|
{
|
|
Q_OBJECT
|
|
|
|
QLabel* mXLabel;
|
|
QLabel* mYLabel;
|
|
QSpinBox* mX;
|
|
QSpinBox* mY;
|
|
|
|
public:
|
|
|
|
LandCreator(CSMWorld::Data& data, QUndoStack& undoStack, const CSMWorld::UniversalId& id);
|
|
|
|
void cloneMode(const std::string& originId, const CSMWorld::UniversalId::Type type) override;
|
|
|
|
void touch(const std::vector<CSMWorld::UniversalId>& ids) override;
|
|
|
|
void focus() override;
|
|
|
|
void reset() override;
|
|
|
|
std::string getErrors() const override;
|
|
|
|
protected:
|
|
|
|
std::string getId() const override;
|
|
|
|
void pushCommand(std::unique_ptr<CSMWorld::CreateCommand> command,
|
|
const std::string& id) override;
|
|
|
|
private slots:
|
|
|
|
void coordChanged(int value);
|
|
};
|
|
}
|
|
|
|
#endif
|