diff options
author | Lukas Matena <lukasmatena@seznam.cz> | 2019-05-17 15:17:49 +0300 |
---|---|---|
committer | Lukas Matena <lukasmatena@seznam.cz> | 2019-06-14 16:03:42 +0300 |
commit | 9f236bc6030a2a59db714e41d366e63d8855683e (patch) | |
tree | 74a0d943d9970bb0c303ed610c5b671894527c05 /src/slic3r/GUI/GUI_ObjectManipulation.hpp | |
parent | ed4b71eb1535c5773fb789d41c874b13875ee3f2 (diff) |
Added transformation reset buttons in object manipulation panel
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectManipulation.hpp')
-rw-r--r-- | src/slic3r/GUI/GUI_ObjectManipulation.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectManipulation.hpp b/src/slic3r/GUI/GUI_ObjectManipulation.hpp index 7c359f3d7..6a13a3c09 100644 --- a/src/slic3r/GUI/GUI_ObjectManipulation.hpp +++ b/src/slic3r/GUI/GUI_ObjectManipulation.hpp @@ -53,6 +53,10 @@ class ObjectManipulation : public OG_Settings wxStaticText* m_scale_Label = nullptr; wxStaticText* m_rotate_Label = nullptr; + // Non-owning pointers to the reset buttons, so we can hide and show them. + ScalableButton* m_reset_scale_button = nullptr; + ScalableButton* m_reset_rotation_button = nullptr; + // Needs to be updated from OnIdle? bool m_dirty = false; // Cached labels for the delayed update, not localized! @@ -111,10 +115,8 @@ private: void reset_settings_value(); void update_settings_value(const Selection& selection); - // update size values after scale unit changing or "gizmos" - void update_size_value(const Vec3d& size); - // update rotation value after "gizmos" - void update_rotation_value(const Vec3d& rotation); + // Show or hide scale/rotation reset buttons if needed + void update_reset_buttons_visibility(); // change values void change_position_value(int axis, double value); |