File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Cura.RoundedRectangle
1919
2020 width: UM .Theme .getSize (" print_setup_widget" ).width
2121
22+ property bool preSlicedData: PrintInformation !== null && PrintInformation .preSliced
23+
2224 Column
2325 {
2426 id: settingsHeader
@@ -27,6 +29,8 @@ Cura.RoundedRectangle
2729 anchors .top : parent .top
2830 anchors .topMargin : UM .Theme .getSize (" default_margin" ).height
2931
32+ visible: ! preSlicedData
33+
3034 Loader
3135 {
3236 width: parent .width
@@ -148,6 +152,7 @@ Cura.RoundedRectangle
148152 Item
149153 {
150154 id: settingsViewContainer
155+ visible: ! preSlicedData
151156 children: [ printSetupSelector .contentItem ]
152157 anchors
153158 {
@@ -163,4 +168,19 @@ Cura.RoundedRectangle
163168 printSetupSelector .contentItem .parent = printSetupSelector;
164169 }
165170 }
171+
172+ Label
173+ {
174+ visible: preSlicedData
175+ anchors .top : parent .top
176+ anchors .topMargin : UM .Theme .getSize (" thick_margin" ).height
177+ anchors .left : parent .left
178+ anchors .leftMargin : UM .Theme .getSize (" thick_margin" ).height
179+ width: parent .width
180+ font: UM .Theme .getFont (" medium_bold" )
181+ color: UM .Theme .getColor (" text" )
182+ renderType: Text .NativeRendering
183+
184+ text: catalog .i18nc (" @label shown when we load a Gcode file" , " Print setup disabled. G-code file can not be modified." )
185+ }
166186}
You can’t perform that action at this time.
0 commit comments