diff options
author | YuSanka <yusanka@gmail.com> | 2019-09-18 16:10:36 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2019-09-18 16:10:36 +0300 |
commit | c9c407cc2b3982ba4883ed139b7ec30668626d53 (patch) | |
tree | b6af2989dc0bedecbf538141ddfc814921ba66d7 /src/slic3r/GUI/GUI_ObjectManipulation.hpp | |
parent | 0890c1417a50b24825bfb39d1ed824e8c2f544f4 (diff) |
Rewrote UI for ObjectManipulation without using of OptionsGrope
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectManipulation.hpp')
-rw-r--r-- | src/slic3r/GUI/GUI_ObjectManipulation.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectManipulation.hpp b/src/slic3r/GUI/GUI_ObjectManipulation.hpp index e4e190b5b..8ef6ca263 100644 --- a/src/slic3r/GUI/GUI_ObjectManipulation.hpp +++ b/src/slic3r/GUI/GUI_ObjectManipulation.hpp @@ -53,6 +53,9 @@ class ObjectManipulation : public OG_Settings wxStaticText* m_scale_Label = nullptr; wxStaticText* m_rotate_Label = nullptr; + wxStaticText* m_item_name = nullptr; + wxStaticText* m_empty_str = 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; @@ -81,7 +84,7 @@ class ObjectManipulation : public OG_Settings Vec3d m_new_rotation; Vec3d m_new_scale; Vec3d m_new_size; - bool m_new_enabled; + bool m_new_enabled {true}; bool m_uniform_scale {true}; // Does the object manipulation panel work in World or Local coordinates? bool m_world_coordinates = true; @@ -96,6 +99,10 @@ class ObjectManipulation : public OG_Settings std::string m_focused_option; #endif // __APPLE__ + wxFlexGridSizer* m_main_grid_sizer; + wxFlexGridSizer* m_labels_grid_sizer; + wxFlexGridSizer* m_editors_grid_sizer; + public: ObjectManipulation(wxWindow* parent); ~ObjectManipulation() {} @@ -122,6 +129,7 @@ public: void emulate_kill_focus(); #endif // __APPLE__ + void update_item_name(const wxString &item_name); void update_warning_icon_state(const wxString& tooltip); void msw_rescale(); |