diff -r e34d6a30b96d -r 75efc3ba5a56 src/layers/edittools.h --- a/src/layers/edittools.h Mon Apr 10 14:46:36 2023 +0300 +++ b/src/layers/edittools.h Tue Apr 11 11:11:28 2023 +0300 @@ -25,14 +25,14 @@ #include "src/gl/common.h" #include "src/inputvertices.h" -enum EditingMode +enum class editing_mode_e { - SelectMode, - DrawMode, - CircleMode + select, + draw, + circle }; -Q_DECLARE_METATYPE(EditingMode) +Q_DECLARE_METATYPE(editing_mode_e) Q_DECLARE_METATYPE(ModelAction) @@ -40,7 +40,7 @@ { Q_OBJECT InputVertices inputPolygon; - EditingMode mode = SelectMode; + editing_mode_e mode = editing_mode_e::select; glm::mat4 mvpMatrix; glm::mat4 gridMatrix{1}; Plane gridPlane; @@ -55,8 +55,8 @@ ~EditTools() override; void applyToVertices(VertexMap::ApplyFunction fn) const; [[nodiscard]] const QSet selectedObjects() const; - [[nodiscard]] EditingMode currentEditingMode() const; - Q_SLOT void setEditMode(EditingMode mode); + [[nodiscard]] editing_mode_e currentEditingMode() const; + Q_SLOT void setEditMode(editing_mode_e mode); Q_SLOT void setGridMatrix(const glm::mat4& gridMatrix); Q_SLOT void setCircleToolOptions(const CircleToolOptions& options); Q_SIGNALS: