mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
Added mirroring buttons into object manipulation panel
This commit is contained in:
parent
9f236bc603
commit
a3c1644ead
2 changed files with 77 additions and 3 deletions
|
@ -56,6 +56,9 @@ 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;
|
||||
ScalableBitmap m_mirror_bitmap_on;
|
||||
ScalableBitmap m_mirror_bitmap_off;
|
||||
|
||||
// Needs to be updated from OnIdle?
|
||||
bool m_dirty = false;
|
||||
|
@ -117,6 +120,8 @@ private:
|
|||
|
||||
// Show or hide scale/rotation reset buttons if needed
|
||||
void update_reset_buttons_visibility();
|
||||
//Show or hide mirror buttons
|
||||
void update_mirror_buttons_visibility();
|
||||
|
||||
// change values
|
||||
void change_position_value(int axis, double value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue