diff options
author | Lukas Matena <lukasmatena@seznam.cz> | 2019-06-05 12:23:30 +0300 |
---|---|---|
committer | Lukas Matena <lukasmatena@seznam.cz> | 2019-06-14 16:28:09 +0300 |
commit | 980c6673d42e561d7bf53937e8213e2ce1f0e943 (patch) | |
tree | f2277efb4c30601d3363b1d4f5d23d470d8c4da6 /src/slic3r/GUI/GUI_ObjectManipulation.hpp | |
parent | a3c1644ead545bfac6aab46d5761c8521fc8d48c (diff) |
Reset buttons - fixed rotation of instances with multiple volumes
Mirroring buttons now hide where appropriate
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectManipulation.hpp')
-rw-r--r-- | src/slic3r/GUI/GUI_ObjectManipulation.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectManipulation.hpp b/src/slic3r/GUI/GUI_ObjectManipulation.hpp index 11b07cda6..cc2154514 100644 --- a/src/slic3r/GUI/GUI_ObjectManipulation.hpp +++ b/src/slic3r/GUI/GUI_ObjectManipulation.hpp @@ -56,9 +56,19 @@ class ObjectManipulation : public OG_Settings // 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; - std::map<std::string, ScalableButton*> m_mirror_buttons; + + // Mirroring buttons and their current state + enum MirrorButtonState { + mbHidden, + mbShown, + mbActive + }; + std::array<std::pair<ScalableButton*, MirrorButtonState>, 3> m_mirror_buttons; + + // Bitmaps for the mirroring buttons. ScalableBitmap m_mirror_bitmap_on; ScalableBitmap m_mirror_bitmap_off; + ScalableBitmap m_mirror_bitmap_hidden; // Needs to be updated from OnIdle? bool m_dirty = false; |