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-05 12:50:59 +0300
committerYuSanka <yusanka@gmail.com>2019-06-05 12:50:59 +0300
commit1090105b6879b0f0212abd4259bd54e86471e60f (patch)
treedbc5c32e51e97ec00ce19602f62b77aed0482dbe /src/slic3r/GUI/GUI_ObjectList.hpp
parent4b3df010ab86d66e57aa3c83bfddb389e4b81789 (diff)
Experiments with updating layer_config_ranges from UI
+ Fixed OSX build
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectList.hpp')
-rw-r--r--src/slic3r/GUI/GUI_ObjectList.hpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectList.hpp b/src/slic3r/GUI/GUI_ObjectList.hpp
index c970a23a0..24c9f65b2 100644
--- a/src/slic3r/GUI/GUI_ObjectList.hpp
+++ b/src/slic3r/GUI/GUI_ObjectList.hpp
@@ -33,6 +33,9 @@ typedef std::map< std::string, std::vector< std::pair<std::string, std::string>
typedef std::vector<ModelVolume*> ModelVolumePtrs;
+typedef double coordf_t;
+typedef std::pair<coordf_t, coordf_t> t_layer_height_range;
+
namespace GUI {
wxDECLARE_EVENT(EVT_OBJ_LIST_OBJECT_SELECT, SimpleEvent);
@@ -271,14 +274,14 @@ public:
// Remove objects/sub-object from the list
void remove();
- void del_layer_range(const std::pair<coordf_t, coordf_t>& range);
- void add_layer_range(const std::pair<coordf_t, coordf_t>& range);
- void add_layer_item (const std::pair<coordf_t, coordf_t>& range,
+ void del_layer_range(const t_layer_height_range& range);
+ void add_layer_range(const t_layer_height_range& range);
+ void add_layer_item (const t_layer_height_range& range,
const wxDataViewItem layers_item,
const int layer_idx = -1);
- void edit_layer_range(const std::pair<coordf_t, coordf_t>& range, coordf_t layer_height);
- void edit_layer_range(const std::pair<coordf_t, coordf_t>& range,
- const std::pair<coordf_t, coordf_t>& new_range);
+ void edit_layer_range(const t_layer_height_range& range, coordf_t layer_height);
+ void edit_layer_range(const t_layer_height_range& range,
+ const t_layer_height_range& new_range);
void init_objects();
bool multiple_selection() const ;