diff -r 6988973515d2 -r ca23936b455b src/ui/objecteditor.h --- a/src/ui/objecteditor.h Wed May 25 20:36:34 2022 +0300 +++ b/src/ui/objecteditor.h Mon Jun 06 22:01:22 2022 +0300 @@ -2,25 +2,3 @@ #include #include "../main.h" #include "../model.h" - -class Document; - -class ObjectEditor : public QWidget -{ - Q_OBJECT -public: - explicit ObjectEditor(Document* document, ldraw::id_t id = ldraw::NULL_ID); - ~ObjectEditor(); - void setObjectId(ldraw::id_t id); -private: - Q_SLOT void handleColorChange(ldraw::Color value); - Q_SLOT void handleVec3Change(const glm::vec3& value); - Q_SLOT void handleBoolChange(bool value); - Q_SLOT void handleStringChange(const QString& value); - class Ui_ObjectEditor& ui; - Document* const document; - ldraw::id_t objectId = ldraw::NULL_ID; - QMap> propertyWidgets; - QWidget* makeEditorWidgetForProperty(ldraw::Property property); - void handlePropertyChange(QObject* caller, const QVariant& value); -};