2013-07-30 08:27:17 +00:00
|
|
|
#ifndef CSV_WORLD_REFERENCEABLECREATOR_H
|
|
|
|
#define CSV_WORLD_REFERENCEABLECREATOR_H
|
|
|
|
|
2022-10-19 17:02:00 +00:00
|
|
|
#include "genericcreator.hpp"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <apps/opencs/model/world/universalid.hpp>
|
|
|
|
|
2013-07-30 08:27:17 +00:00
|
|
|
class QComboBox;
|
2022-10-19 17:02:00 +00:00
|
|
|
class QObject;
|
|
|
|
class QUndoStack;
|
2013-07-30 08:27:17 +00:00
|
|
|
|
2022-10-19 17:02:00 +00:00
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
class CreateCommand;
|
|
|
|
class Data;
|
|
|
|
}
|
2013-07-30 08:27:17 +00:00
|
|
|
|
|
|
|
namespace CSVWorld
|
|
|
|
{
|
|
|
|
class ReferenceableCreator : public GenericCreator
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
QComboBox* mType;
|
|
|
|
|
|
|
|
private:
|
2020-10-16 18:18:54 +00:00
|
|
|
void configureCreateCommand(CSMWorld::CreateCommand& command) const override;
|
2013-07-30 08:27:17 +00:00
|
|
|
|
2022-09-22 18:26:05 +00:00
|
|
|
public:
|
2020-10-16 18:18:54 +00:00
|
|
|
ReferenceableCreator(CSMWorld::Data& data, QUndoStack& undoStack, const CSMWorld::UniversalId& id);
|
2013-07-30 08:27:17 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void reset() override;
|
2013-07-30 08:27:17 +00:00
|
|
|
|
|
|
|
void cloneMode(const std::string& originId, const CSMWorld::UniversalId::Type type) override;
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void toggleWidgets(bool active = true) override;
|
2014-09-20 10:48:51 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
private slots:
|
2014-09-20 10:48:51 +00:00
|
|
|
|
2021-08-03 23:06:04 +00:00
|
|
|
void setType(int index);
|
2013-07-30 08:27:17 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|