2013-07-28 16:08:57 +00:00
|
|
|
#ifndef CSV_WORLD_CELLCREATOR_H
|
|
|
|
#define CSV_WORLD_CELLCREATOR_H
|
|
|
|
|
|
|
|
class QLabel;
|
|
|
|
class QSpinBox;
|
|
|
|
class QComboBox;
|
|
|
|
|
|
|
|
#include "genericcreator.hpp"
|
|
|
|
|
|
|
|
namespace CSVWorld
|
|
|
|
{
|
|
|
|
class CellCreator : public GenericCreator
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
QComboBox *mType;
|
|
|
|
QLabel *mXLabel;
|
|
|
|
QSpinBox *mX;
|
|
|
|
QLabel *mYLabel;
|
|
|
|
QSpinBox *mY;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
virtual std::string getId() const;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
CellCreator (CSMWorld::Data& data, QUndoStack& undoStack, const CSMWorld::UniversalId& id);
|
|
|
|
|
|
|
|
virtual void reset();
|
2014-01-27 18:40:05 +00:00
|
|
|
|
2014-01-23 15:24:03 +00:00
|
|
|
virtual void toggleWidgets(bool active = true);
|
2014-01-27 18:40:05 +00:00
|
|
|
|
2014-01-27 12:13:39 +00:00
|
|
|
virtual void cloneMode(const std::string& originId,
|
2014-01-27 12:08:14 +00:00
|
|
|
const CSMWorld::UniversalId::Type type);
|
2013-07-28 16:08:57 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void setType (int index);
|
|
|
|
|
|
|
|
void valueChanged (int index);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|