1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 21:53:52 +00:00
openmw/apps/opencs/view/world/cellcreator.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.3 KiB
C++
Raw Normal View History

2013-07-28 16:08:57 +00:00
#ifndef CSV_WORLD_CELLCREATOR_H
#define CSV_WORLD_CELLCREATOR_H
2022-10-19 17:02:00 +00:00
#include <string>
#include <apps/opencs/model/world/universalid.hpp>
#include "genericcreator.hpp"
class QComboBox;
2013-07-28 16:08:57 +00:00
class QLabel;
2022-10-19 17:02:00 +00:00
class QObject;
2013-07-28 16:08:57 +00:00
class QSpinBox;
2022-10-19 17:02:00 +00:00
class QUndoStack;
2013-07-28 16:08:57 +00:00
2022-10-19 17:02:00 +00:00
namespace CSMWorld
{
class CreateCommand;
class Data;
}
2013-07-28 16:08:57 +00:00
namespace CSVWorld
{
class CellCreator : public GenericCreator
{
Q_OBJECT
QComboBox* mType;
QLabel* mXLabel;
QSpinBox* mX;
QLabel* mYLabel;
QSpinBox* mY;
protected:
std::string getId() const override;
2013-07-28 16:08:57 +00:00
/// Allow subclasses to add additional data to \a command.
void configureCreateCommand(CSMWorld::CreateCommand& command) const override;
2013-07-28 16:08:57 +00:00
public:
CellCreator(CSMWorld::Data& data, QUndoStack& undoStack, const CSMWorld::UniversalId& id);
void reset() override;
2013-07-28 16:08:57 +00:00
void cloneMode(const std::string& originId, const CSMWorld::UniversalId::Type type) override;
std::string getErrors() const override;
///< Return formatted error descriptions for the current state of the creator. if an empty
/// string is returned, there is no error.
2014-01-27 18:40:05 +00:00
private slots:
2013-07-28 16:08:57 +00:00
void setType(int index);
2013-07-28 16:08:57 +00:00
void valueChanged(int index);
};
}
#endif