1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-19 03:39:58 +00:00
OpenMW/apps/opencs/view/world/bodypartcreator.hpp

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

43 lines
849 B
C++
Raw Normal View History

#ifndef BODYPARTCREATOR_HPP
#define BODYPARTCREATOR_HPP
class QCheckBox;
#include "genericcreator.hpp"
namespace CSMWorld
{
class Data;
class UniversalId;
}
namespace CSVWorld
{
/// \brief Record creator for body parts.
class BodyPartCreator : public GenericCreator
{
Q_OBJECT
2022-09-22 21:26:05 +03:00
QCheckBox* mFirstPerson;
2022-09-22 21:26:05 +03:00
private:
/// \return ID entered by user.
std::string getId() const override;
2022-09-22 21:26:05 +03:00
public:
BodyPartCreator(CSMWorld::Data& data, QUndoStack& undoStack, const CSMWorld::UniversalId& id);
2022-09-22 21:26:05 +03:00
/// \return Error description for current user input.
std::string getErrors() const override;
2022-09-22 21:26:05 +03:00
/// \brief Clear ID and checkbox input widgets.
void reset() override;
2022-09-22 21:26:05 +03:00
private slots:
2022-09-22 21:26:05 +03:00
void checkboxClicked();
};
}
#endif // BODYPARTCREATOR_HPP