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
path: root/lib
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2016-11-01 15:41:24 +0300
committerbubnikv <bubnikv@gmail.com>2016-11-01 15:41:24 +0300
commit3d3654707b97f679037cb66c2143338cf8baf917 (patch)
treee13ed4e8725d1f4d4c1b713f518ac5167e72e16a /lib
parent4e66ed81d26774a6196259dee35a5da0c678d081 (diff)
Added "Notes" page to the filament configuration.
Added "filament_max_volumetric_speed", a cap on the maximum volumetric extrusion role, filament specific. This is very useful when mixing rigid filament with a soft filament. Extended the import / export of multi-string values into configuration values, including the test cases. Multi-line strings will be enclosed into quotes, quotes escaped using a C-style escape sequences. Single word strings could still be stored without quotes.
Diffstat (limited to 'lib')
-rw-r--r--lib/Slic3r/GUI/Tab.pm26
1 files changed, 25 insertions, 1 deletions
diff --git a/lib/Slic3r/GUI/Tab.pm b/lib/Slic3r/GUI/Tab.pm
index d30e31abc..5bf40f5d4 100644
--- a/lib/Slic3r/GUI/Tab.pm
+++ b/lib/Slic3r/GUI/Tab.pm
@@ -138,7 +138,10 @@ sub new {
$self->_on_presets_changed;
});
+ # C++ instance DynamicPrintConfig
$self->{config} = Slic3r::Config->new;
+ # Initialize the DynamicPrintConfig by default keys/values.
+ # Possible %params keys: no_controller
$self->build(%params);
$self->update_tree;
$self->_update;
@@ -910,7 +913,7 @@ sub build {
my $self = shift;
$self->init_config_options(qw(
- filament_colour filament_diameter extrusion_multiplier
+ filament_colour filament_diameter filament_notes filament_max_volumetric_speed extrusion_multiplier
temperature first_layer_temperature bed_temperature first_layer_bed_temperature
fan_always_on cooling
min_fan_speed max_fan_speed bridge_fan_speed disable_fan_first_layers
@@ -991,6 +994,27 @@ sub build {
$optgroup->append_single_option_line('min_print_speed');
}
}
+
+ {
+ my $page = $self->add_options_page('Advanced', 'wrench.png');
+ {
+ my $optgroup = $page->new_optgroup('Print speed override');
+ $optgroup->append_single_option_line('filament_max_volumetric_speed', 0);
+ }
+ }
+
+ {
+ my $page = $self->add_options_page('Notes', 'note.png');
+ {
+ my $optgroup = $page->new_optgroup('Notes',
+ label_width => 0,
+ );
+ my $option = $optgroup->get_option('filament_notes', 0);
+ $option->full_width(1);
+ $option->height(250);
+ $optgroup->append_single_option_line($option);
+ }
+ }
}
sub _update {