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-07-23 19:17:57 +0300
committerYuSanka <yusanka@gmail.com>2019-07-24 12:25:04 +0300
commit0592ae65eeff51038aac647c68b009b1314c765c (patch)
treeec16d4f3a6aa673eb065d93848d3fa04ed6a62d8 /src/slic3r/GUI/GUI_ObjectList.hpp
parent804e1b19397b5a1d05e4aa99171911277b649c8f (diff)
Completed setting of the item focus in ObjectList after undo/redo
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectList.hpp')
-rw-r--r--src/slic3r/GUI/GUI_ObjectList.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectList.hpp b/src/slic3r/GUI/GUI_ObjectList.hpp
index c3fb5ba80..1c30a4d97 100644
--- a/src/slic3r/GUI/GUI_ObjectList.hpp
+++ b/src/slic3r/GUI/GUI_ObjectList.hpp
@@ -73,10 +73,14 @@ public:
smVolume = 1,
smInstance = 2,
smLayer = 4,
- smSettings = 8, // used for undo/redo
- } m_selection_mode {smUndef};
+ smSettings = 8, // used for undo/redo
+ smLayerRoot = 16, // used for undo/redo
+ };
private:
+ SELECTION_MODE m_selection_mode {smUndef};
+ t_layer_height_range m_selected_layers_range;
+
struct dragged_item_data
{
void init(const int obj_idx, const int subobj_idx, const ItemType type) {
@@ -305,6 +309,8 @@ public:
void init_objects();
bool multiple_selection() const ;
bool is_selected(const ItemType type) const;
+ t_layer_height_range get_selected_layers_range() const;
+ void set_selected_layers_range(const t_layer_height_range range) { m_selected_layers_range = range; }
void set_selection_mode(SELECTION_MODE mode) { m_selection_mode = mode; }
void update_selections();
void update_selections_on_canvas();