Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-06-13 12:37:03 +0300
committerYuSanka <yusanka@gmail.com>2019-06-13 12:37:03 +0300
commitc9dd5f878699e79d64ccb4059f37b8967e872270 (patch)
tree1fe8c14c19421db25ebb3b7a73e0ce700b3b612b /src/slic3r/GUI/GUI_ObjectLayers.hpp
parent1694204687ca93e7bd831cf5a5598bc1acfce658 (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.hpp5
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: