@@ -63,6 +63,7 @@ class SettingsWidget(QWidget):
63
63
"pressure_advance_on" ,
64
64
"pressure_advance_rate" ,
65
65
"random_layer_start" ,
66
+ "is_wall_outside_in" ,
66
67
# TODO: add separate dummy setting to mark the beginning of supports settings
67
68
"supports_on" ,
68
69
"support_density" ,
@@ -131,6 +132,7 @@ def __init__(self, parent=None, settings_provider: callable = None):
131
132
"retraction_compensation" : self .locale .RetractCompensationAmount ,
132
133
"material_shrinkage" : self .locale .MaterialShrinkage ,
133
134
"random_layer_start" : self .locale .RandomLayerStart ,
135
+ "is_wall_outside_in" : self .locale .IsWallsOutsideIn ,
134
136
# TODO: add separate dummy setting to mark the beginning of supports settings
135
137
"supports_on" : self .locale .SupportsOn ,
136
138
"support_density" : self .locale .SupportDensity ,
@@ -1031,6 +1033,27 @@ def on_change():
1031
1033
"label" : rls_on_label ,
1032
1034
"checkbox" : rls_on_box ,
1033
1035
}
1036
+ elif name == "is_wall_outside_in" :
1037
+ self .ensure_sett ("slicing.is_wall_outside_in" )
1038
+
1039
+ wall_outside_in_label = QLabel (self .locale .IsWallsOutsideIn )
1040
+ wall_outside_in_box = QCheckBox ()
1041
+ if self .sett ().slicing .is_wall_outside_in :
1042
+ wall_outside_in_box .setCheckState (QtCore .Qt .Checked )
1043
+ self .panel .addWidget (wall_outside_in_label , self .next_row , 1 )
1044
+ self .panel .addWidget (
1045
+ wall_outside_in_box , self .cur_row , 2 , 1 , self .col2_cells
1046
+ )
1047
+
1048
+ def on_change ():
1049
+ self .sett ().slicing .is_wall_outside_in = wall_outside_in_box .isChecked ()
1050
+
1051
+ wall_outside_in_box .stateChanged .connect (on_change )
1052
+
1053
+ self .__elements [name ] = {
1054
+ "label" : wall_outside_in_label ,
1055
+ "checkbox" : wall_outside_in_box ,
1056
+ }
1034
1057
elif name == "flow_rate" :
1035
1058
self .ensure_sett ("slicing.flow_rate" )
1036
1059
0 commit comments