diff options
author | YuSanka <yusanka@gmail.com> | 2019-06-13 12:37:03 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2019-06-13 12:37:03 +0300 |
commit | c9dd5f878699e79d64ccb4059f37b8967e872270 (patch) | |
tree | 1fe8c14c19421db25ebb3b7a73e0ce700b3b612b /src/slic3r/GUI/GUI_ObjectLayers.hpp | |
parent | 1694204687ca93e7bd831cf5a5598bc1acfce658 (diff) |
Fixed updating of data for LayerEditors selection
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectLayers.hpp')
-rw-r--r-- | src/slic3r/GUI/GUI_ObjectLayers.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectLayers.hpp b/src/slic3r/GUI/GUI_ObjectLayers.hpp index 9c2af20e5..e3366e03e 100644 --- a/src/slic3r/GUI/GUI_ObjectLayers.hpp +++ b/src/slic3r/GUI/GUI_ObjectLayers.hpp @@ -34,6 +34,8 @@ class LayerRangeEditor : public wxTextCtrl wxString m_valid_value; EditorType m_type; + std::function<void(EditorType)> m_set_focus; + public: LayerRangeEditor( wxWindow* parent, const wxString& value = wxEmptyString, @@ -44,6 +46,7 @@ public: ~LayerRangeEditor() {} EditorType type() const {return m_type;} + void set_focus() const { m_set_focus(m_type);} private: coordf_t get_value(); @@ -56,7 +59,7 @@ class ObjectLayers : public OG_Settings ModelObject* m_object {nullptr}; wxFlexGridSizer* m_grid_sizer; - t_layer_height_range m_last_edited_range; + t_layer_height_range m_selectable_range; EditorType m_selection_type {etUndef}; public: |