2013-07-30 08:27:17 +00:00
|
|
|
#ifndef CSV_WORLD_REFERENCEABLECREATOR_H
|
|
|
|
#define CSV_WORLD_REFERENCEABLECREATOR_H
|
|
|
|
|
|
|
|
class QComboBox;
|
|
|
|
|
|
|
|
#include "genericcreator.hpp"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
ReferenceableCreator (CSMWorld::Data& data, QUndoStack& undoStack,
|
|
|
|
const CSMWorld::UniversalId& id);
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void reset() override;
|
2014-09-20 10:48:51 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void cloneMode (const std::string& originId,
|
|
|
|
const CSMWorld::UniversalId::Type type) override;
|
2014-09-20 10:48:51 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void toggleWidgets(bool active = true) override;
|
2013-07-30 08:27:17 +00:00
|
|
|
|
2021-08-03 23:06:04 +00:00
|
|
|
private slots:
|
|
|
|
|
|
|
|
void setType (int index);
|
2013-07-30 08:27:17 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|