mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 04:10:06 +00:00
8aee84c46e
It is possible to allow longer strings but that will require an extension in the omwaddon format as well as changes to the reader to handle that extension. Such changes should be a separate MR. (applied the patch in https://gitlab.com/OpenMW/openmw/-/issues/3066)
39 lines
825 B
C++
39 lines
825 B
C++
#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:
|
|
|
|
void configureCreateCommand (CSMWorld::CreateCommand& command) const override;
|
|
|
|
public:
|
|
|
|
ReferenceableCreator (CSMWorld::Data& data, QUndoStack& undoStack,
|
|
const CSMWorld::UniversalId& id);
|
|
|
|
void reset() override;
|
|
|
|
void cloneMode (const std::string& originId,
|
|
const CSMWorld::UniversalId::Type type) override;
|
|
|
|
void toggleWidgets(bool active = true) override;
|
|
|
|
private slots:
|
|
|
|
void setType (int index);
|
|
};
|
|
}
|
|
|
|
#endif
|