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>2020-03-13 13:49:51 +0300
committerYuSanka <yusanka@gmail.com>2020-03-13 13:49:51 +0300
commit56c6193ff424e66230a68006c1a8b7bef83a66b0 (patch)
treeffd4d65c031fe540d8e4f3153e1cb84f6a997caf /src/slic3r/GUI/Tab.cpp
parent6a6790b8e76848a1cebf6fcb4db250948b448b7a (diff)
parent7fd9c736b339a46f3a94e80c017ea05288524c5a (diff)
Merge remote-tracking branch 'origin/ys_add_new_options' into ys_improvements
Diffstat (limited to 'src/slic3r/GUI/Tab.cpp')
-rw-r--r--src/slic3r/GUI/Tab.cpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp
index 9e49dc5bd..7a8a4579e 100644
--- a/src/slic3r/GUI/Tab.cpp
+++ b/src/slic3r/GUI/Tab.cpp
@@ -1100,6 +1100,12 @@ void Tab::update_frequently_changed_parameters()
}
}
+void Tab::update_sliced_info_on_plater()
+{
+ wxGetApp().sidebar().update_sliced_info_sizer();
+ wxGetApp().sidebar().Layout();
+}
+
void TabPrint::build()
{
m_presets = &m_preset_bundle->prints;
@@ -1172,6 +1178,7 @@ void TabPrint::build()
optgroup->append_single_option_line("skirts");
optgroup->append_single_option_line("skirt_distance");
optgroup->append_single_option_line("skirt_height");
+ optgroup->append_single_option_line("infinit_skirt");
optgroup->append_single_option_line("min_skirt_length");
optgroup = page->new_optgroup(_(L("Brim")));
@@ -1484,6 +1491,19 @@ void TabFilament::build()
optgroup->append_single_option_line("extrusion_multiplier");
optgroup->append_single_option_line("filament_density");
optgroup->append_single_option_line("filament_cost");
+ optgroup->append_single_option_line("filament_spool_weight");
+
+ optgroup->m_on_change = [this, optgroup](t_config_option_key opt_key, boost::any value)
+ {
+ update_dirty();
+
+ if (opt_key== "filament_spool_weight")
+ // Change of this option only has an influence to an update of "Sliced Info"
+ update_sliced_info_on_plater();
+ else
+ // update configuration for its check and to schedule a background process, if needed
+ update();
+ };
optgroup = page->new_optgroup(_(L("Temperature")) + wxString(" °C", wxConvUTF8));
Line line = { _(L("Extruder")), "" };
@@ -3567,8 +3587,7 @@ void TabSLAMaterial::build()
update_dirty();
// Change of any from those options influences for an update of "Sliced Info"
- wxGetApp().sidebar().update_sliced_info_sizer();
- wxGetApp().sidebar().Layout();
+ update_sliced_info_on_plater();
};
optgroup = page->new_optgroup(_(L("Layers")));