Compare commits

...

6 Commits

Author SHA1 Message Date
SoftFever
f16521adf6 update build script 2022-07-17 19:30:48 +08:00
SoftFever
fc9d18faff Add Voron process settings 2022-07-17 19:24:44 +08:00
Jack Li
ff768a6f68 WIP: add voron process setting 2022-07-17 12:53:41 +08:00
Jack Li
9c0f6f1c72 Add Voron machine support 2022-07-17 12:53:06 +08:00
Jack Li
7a7369c9ce Allow users to export .gcode files 2022-07-17 10:33:57 +08:00
Jack Li
687593f8d2 add build scripts 2022-07-17 10:27:18 +08:00
42 changed files with 439 additions and 16 deletions

14
build_release.bat Normal file
View File

@@ -0,0 +1,14 @@
set WP=%CD%
cd deps
mkdir build
cd build
set DEPS=%CD%/BambuStudio_dep
cmake ../ -G "Visual Studio 16 2019" -DDESTDIR="%CD%/BambuStudio_dep" -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release --target ALL_BUILD -- -m
cd %WP%
mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -DBBL_RELEASE_TO_PUBLIC=0 -DCMAKE_PREFIX_PATH="%DEPS%/usr/local" -DCMAKE_INSTALL_PREFIX="./BambuStudio-SoftFever" -DCMAKE_BUILD_TYPE=Release -DWIN10SDK_PATH="C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0"
cmake --build . --config Release --target ALL_BUILD -- -m
cmake --build . --target install --config Release

View File

@@ -12,6 +12,18 @@
{
"name": "Bambu Lab X1",
"sub_path": "machine/Bambu Lab X1.json"
},
{
"name": "Voron 2.4 250",
"sub_path": "machine/Voron 2.4 250.json"
},
{
"name": "Voron 2.4 300",
"sub_path": "machine/Voron 2.4 300.json"
},
{
"name": "Voron 2.4 350",
"sub_path": "machine/Voron 2.4 350.json"
}
],
"process_list": [
@@ -94,6 +106,30 @@
{
"name": "0.40mm Standard @BBL X1C 0.8 nozzle",
"sub_path": "process/0.40mm Standard @BBL X1C 0.8 nozzle.json"
},
{
"name": "0.08mm Extra Fine @Voron",
"sub_path": "process/0.08mm Extra Fine @Voron.json"
},
{
"name": "0.12mm Fine @Voron",
"sub_path": "process/0.12mm Fine @Voron.json"
},
{
"name": "0.16mm Optimal @Voron",
"sub_path": "process/0.16mm Optimal @Voron.json"
},
{
"name": "0.20mm Standard @Voron",
"sub_path": "process/0.20mm Standard @Voron.json"
},
{
"name": "0.24mm Draft @Voron",
"sub_path": "process/0.24mm Draft @Voron.json"
},
{
"name": "0.28mm Extra Draft @Voron",
"sub_path": "process/0.28mm Extra Draft @Voron.json"
}
],
"filament_list": [
@@ -331,6 +367,18 @@
"name": "Bambu Lab X1 0.4 nozzle",
"sub_path": "machine/Bambu Lab X1 0.4 nozzle.json"
},
{
"name": "Voron 2.4 250 0.4 nozzle",
"sub_path": "machine/Voron 2.4 250 0.4 nozzle.json"
},
{
"name": "Voron 2.4 300 0.4 nozzle",
"sub_path": "machine/Voron 2.4 300 0.4 nozzle.json"
},
{
"name": "Voron 2.4 350 0.4 nozzle",
"sub_path": "machine/Voron 2.4 350 0.4 nozzle.json"
},
{
"name": "Bambu Lab X1 Carbon 0.2 nozzle",
"sub_path": "machine/Bambu Lab X1 Carbon 0.2 nozzle.json"

View File

@@ -10,6 +10,9 @@
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 0.4 nozzle",
"Bambu Lab X1 Carbon 0.6 nozzle"
]

View File

@@ -9,6 +9,9 @@
"8"
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle"
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -7,6 +7,9 @@
"inherits": "Bambu PC @base",
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 0.4 nozzle"
]
}

View File

@@ -22,6 +22,9 @@
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 0.4 nozzle"
]
}

View File

@@ -10,6 +10,9 @@
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 Carbon 0.6 nozzle"
]
}

View File

@@ -10,6 +10,9 @@
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 0.4 nozzle"
]
}

View File

@@ -10,6 +10,9 @@
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 Carbon 0.6 nozzle"
]
}

View File

@@ -10,6 +10,9 @@
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 0.4 nozzle"
]
}

View File

@@ -6,6 +6,9 @@
"instantiation": "true",
"inherits": "Bambu Support G @base",
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle"
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -6,6 +6,9 @@
"instantiation": "true",
"inherits": "Bambu Support W @base",
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle"
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -9,6 +9,9 @@
"6.4"
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle"
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -14,6 +14,9 @@
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 0.4 nozzle"
]
}

View File

@@ -14,6 +14,9 @@
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 0.4 nozzle"
]
}

View File

@@ -16,6 +16,9 @@
"8"
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle"
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -16,6 +16,9 @@
"16"
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle"
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -13,6 +13,9 @@
"0.94"
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle"
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -44,6 +44,9 @@
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 0.4 nozzle"
]
}

View File

@@ -16,6 +16,9 @@
"7"
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle"
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -17,6 +17,9 @@
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 0.4 nozzle"
]
}

View File

@@ -20,6 +20,9 @@
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 0.4 nozzle"
]
}

View File

@@ -14,6 +14,9 @@
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle",
"Bambu Lab X1 0.4 nozzle"
]
}

View File

@@ -9,6 +9,9 @@
"15"
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle"
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -9,6 +9,9 @@
"22"
],
"compatible_printers": [
"Bambu Lab X1 Carbon 0.4 nozzle"
"Bambu Lab X1 Carbon 0.4 nozzle",
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -0,0 +1,33 @@
{
"type": "machine",
"setting_id": "GM003",
"name": "Voron 2.4 250 0.4 nozzle",
"from": "system",
"instantiation": "true",
"inherits": "fdm_bbl_3dp_001_common",
"printer_model": "Voron 2.4 250",
"default_filament_profile": [
"Bambu PLA Basic @BBL X1"
],
"default_print_profile": "0.20mm Standard @Voron",
"nozzle_diameter": [
"0.4"
],
"bed_exclude_area": [
"0x0"
],
"printable_area": [
"0x0",
"250x0",
"250x250",
"0x250"
],
"printable_height": "225",
"machine_start_gcode": "PRINT_START EXTRUDER=[nozzle_temperature_initial_layer] BED=[bed_temperature_initial_layer_single]",
"machine_end_gcode": "PRINT_END",
"scan_first_layer": "0",
"machine_load_filament_time": "17",
"machine_unload_filament_time": "16",
"nozzle_type": "hardened_steel",
"auxiliary_fan": "0"
}

View File

@@ -0,0 +1,13 @@
{
"type": "machine_model",
"name": "Voron 2.4 250",
"model_id": "BL-P002",
"url": "http://www.bambulab.com/Parameters/printer_model/Bambu Lab X1.json",
"nozzle_diameter": "0.4",
"machine_tech": "FFF",
"family": "BBL-3DP",
"bed_model": "",
"bed_texture": "voron_textured.png",
"hotend_model": "bbl-3dp-hotend.stl",
"default_materials": "Generic PLA;Bambu PLA Matte @BBL X1;Bambu PLA Basic @BBL X1;Bambu ABS @BBL X1C;Bambu PC @BBL X1C;Bambu Support W @BBL X1;Bambu TPU 95A @BBL X1;PolyTerra PLA @BBL X1;PolyLite PLA @BBL X1;"
}

View File

@@ -0,0 +1,33 @@
{
"type": "machine",
"setting_id": "GM003",
"name": "Voron 2.4 300 0.4 nozzle",
"from": "system",
"instantiation": "true",
"inherits": "fdm_bbl_3dp_001_common",
"printer_model": "Voron 2.4 300",
"default_filament_profile": [
"Bambu PLA Basic @BBL X1"
],
"default_print_profile": "0.20mm Standard @Voron",
"nozzle_diameter": [
"0.4"
],
"bed_exclude_area": [
"0x0"
],
"printable_area": [
"0x0",
"300x0",
"300x300",
"0x300"
],
"printable_height": "275",
"machine_start_gcode": "PRINT_START EXTRUDER=[nozzle_temperature_initial_layer] BED=[bed_temperature_initial_layer_single]",
"machine_end_gcode": "PRINT_END",
"scan_first_layer": "0",
"machine_load_filament_time": "17",
"machine_unload_filament_time": "16",
"nozzle_type": "hardened_steel",
"auxiliary_fan": "0"
}

View File

@@ -0,0 +1,13 @@
{
"type": "machine_model",
"name": "Voron 2.4 300",
"model_id": "BL-P002",
"url": "http://www.bambulab.com/Parameters/printer_model/Bambu Lab X1.json",
"nozzle_diameter": "0.4",
"machine_tech": "FFF",
"family": "BBL-3DP",
"bed_model": "",
"bed_texture": "voron_textured.png",
"hotend_model": "bbl-3dp-hotend.stl",
"default_materials": "Generic PLA;Bambu PLA Matte @BBL X1;Bambu PLA Basic @BBL X1;Bambu ABS @BBL X1C;Bambu PC @BBL X1C;Bambu Support W @BBL X1;Bambu TPU 95A @BBL X1;PolyTerra PLA @BBL X1;PolyLite PLA @BBL X1;"
}

View File

@@ -0,0 +1,33 @@
{
"type": "machine",
"setting_id": "GM003",
"name": "Voron 2.4 350 0.4 nozzle",
"from": "system",
"instantiation": "true",
"inherits": "fdm_bbl_3dp_001_common",
"printer_model": "Voron 2.4 350",
"default_filament_profile": [
"Bambu PLA Basic @BBL X1"
],
"default_print_profile": "0.20mm Standard @Voron",
"nozzle_diameter": [
"0.4"
],
"bed_exclude_area": [
"0x0"
],
"printable_area": [
"0x0",
"350x0",
"350x350",
"0x350"
],
"printable_height": "325",
"machine_start_gcode": "PRINT_START EXTRUDER=[nozzle_temperature_initial_layer] BED=[bed_temperature_initial_layer_single]",
"machine_end_gcode": "PRINT_END",
"scan_first_layer": "0",
"machine_load_filament_time": "17",
"machine_unload_filament_time": "16",
"nozzle_type": "hardened_steel",
"auxiliary_fan": "0"
}

View File

@@ -0,0 +1,13 @@
{
"type": "machine_model",
"name": "Voron 2.4 350",
"model_id": "BL-P002",
"url": "http://www.bambulab.com/Parameters/printer_model/Bambu Lab X1.json",
"nozzle_diameter": "0.4",
"machine_tech": "FFF",
"family": "BBL-3DP",
"bed_model": "",
"bed_texture": "voron_textured.png",
"hotend_model": "bbl-3dp-hotend.stl",
"default_materials": "Generic PLA;Bambu PLA Matte @BBL X1;Bambu PLA Basic @BBL X1;Bambu ABS @BBL X1C;Bambu PC @BBL X1C;Bambu Support W @BBL X1;Bambu TPU 95A @BBL X1;PolyTerra PLA @BBL X1;PolyLite PLA @BBL X1;"
}

View File

@@ -0,0 +1,22 @@
{
"type": "process",
"setting_id": "GP001",
"name": "0.08mm Extra Fine @Voron",
"from": "system",
"instantiation": "true",
"inherits": "fdm_process_bbl_0.08",
"initial_layer_speed": "50",
"initial_layer_infill_speed": "105",
"outer_wall_speed": "120",
"inner_wall_speed": "200",
"sparse_infill_speed": "300",
"internal_solid_infill_speed": "200",
"top_surface_speed": "100",
"gap_infill_speed": "100",
"travel_speed": "350",
"compatible_printers": [
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -0,0 +1,22 @@
{
"type": "process",
"setting_id": "GP002",
"name": "0.12mm Fine @Voron",
"from": "system",
"instantiation": "true",
"inherits": "fdm_process_bbl_0.12",
"initial_layer_speed": "50",
"initial_layer_infill_speed": "105",
"outer_wall_speed": "120",
"inner_wall_speed": "200",
"sparse_infill_speed": "300",
"internal_solid_infill_speed": "200",
"top_surface_speed": "100",
"gap_infill_speed": "100",
"travel_speed": "350",
"compatible_printers": [
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -0,0 +1,22 @@
{
"type": "process",
"setting_id": "GP003",
"name": "0.16mm Optimal @Voron",
"from": "system",
"instantiation": "true",
"inherits": "fdm_process_bbl_0.16",
"initial_layer_speed": "50",
"initial_layer_infill_speed": "105",
"outer_wall_speed": "120",
"inner_wall_speed": "200",
"sparse_infill_speed": "300",
"internal_solid_infill_speed": "200",
"top_surface_speed": "100",
"gap_infill_speed": "100",
"travel_speed": "350",
"compatible_printers": [
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -0,0 +1,31 @@
{
"type": "process",
"setting_id": "GP008",
"name": "0.20mm Bambu Support W @Voron",
"from": "system",
"instantiation": "true",
"inherits": "fdm_process_bbl_0.20",
"enable_support": "1",
"support_interface_top_layers": "3",
"support_top_z_distance": "0.2",
"support_interface_loop_pattern": "1",
"support_interface_spacing": "0",
"support_interface_speed": "80",
"support_filament": "0",
"support_interface_filament": "0",
"enable_prime_tower": "1",
"initial_layer_speed": "50",
"initial_layer_infill_speed": "105",
"outer_wall_speed": "120",
"inner_wall_speed": "200",
"sparse_infill_speed": "300",
"internal_solid_infill_speed": "200",
"top_surface_speed": "100",
"gap_infill_speed": "100",
"travel_speed": "350",
"compatible_printers": [
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -0,0 +1,22 @@
{
"type": "process",
"setting_id": "GP004",
"name": "0.20mm Standard @Voron",
"from": "system",
"instantiation": "true",
"inherits": "fdm_process_bbl_0.20",
"initial_layer_speed": "50",
"initial_layer_infill_speed": "105",
"outer_wall_speed": "120",
"inner_wall_speed": "200",
"sparse_infill_speed": "300",
"internal_solid_infill_speed": "200",
"top_surface_speed": "100",
"gap_infill_speed": "100",
"travel_speed": "350",
"compatible_printers": [
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

View File

@@ -0,0 +1,22 @@
{
"type": "process",
"setting_id": "GP006",
"name": "0.28mm Extra Draft @Voron",
"from": "system",
"instantiation": "true",
"inherits": "fdm_process_bbl_0.28",
"initial_layer_speed": "50",
"initial_layer_infill_speed": "105",
"outer_wall_speed": "120",
"inner_wall_speed": "200",
"sparse_infill_speed": "300",
"internal_solid_infill_speed": "200",
"top_surface_speed": "100",
"gap_infill_speed": "100",
"travel_speed": "350",
"compatible_printers": [
"Voron 2.4 250 0.4 nozzle",
"Voron 2.4 300 0.4 nozzle",
"Voron 2.4 350 0.4 nozzle"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@@ -1219,9 +1219,6 @@ wxBoxSizer* MainFrame::create_side_tools()
#endif
SideButton* print_plate_btn = new SideButton(p, _L("Print"), "");
print_plate_btn->SetCornerRadius(0);
SideButton* export_sliced_file_btn = new SideButton(p, _L("Export sliced file"), "");
export_sliced_file_btn->SetCornerRadius(0);
print_plate_btn->Bind(wxEVT_BUTTON, [this, p](wxCommandEvent&) {
m_print_btn->SetLabel(_L("Print"));
m_print_select = ePrintPlate;
@@ -1231,8 +1228,10 @@ wxBoxSizer* MainFrame::create_side_tools()
p->Dismiss();
});
export_sliced_file_btn->Bind(wxEVT_BUTTON, [this, p](wxCommandEvent&) {
m_print_btn->SetLabel(_L("Export Sliced File"));
SideButton* export_sliced_file_3mf_btn = new SideButton(p, _L("Export sliced file (.3mf)"), "");
export_sliced_file_3mf_btn->SetCornerRadius(0);
export_sliced_file_3mf_btn->Bind(wxEVT_BUTTON, [this, p](wxCommandEvent&) {
m_print_btn->SetLabel(_L("Export Sliced File (.3mf)"));
m_print_select = eExportSlicedFile;
if (m_print_enable)
m_print_enable = get_enable_print_status();
@@ -1240,11 +1239,25 @@ wxBoxSizer* MainFrame::create_side_tools()
this->Layout();
p->Dismiss();
});
SideButton* export_sliced_file_gcode_btn = new SideButton(p, _L("Export sliced file (.gcode)"), "");
export_sliced_file_gcode_btn->SetCornerRadius(0);
export_sliced_file_gcode_btn->Bind(wxEVT_BUTTON, [this, p](wxCommandEvent&) {
m_print_btn->SetLabel(_L("Export Sliced File (.gcode)"));
m_print_select = eExportGcode;
if (m_print_enable)
m_print_enable = get_enable_print_status();
m_print_btn->Enable(m_print_enable);
this->Layout();
p->Dismiss();
});
#if ENABEL_PRINT_ALL
p->append_button(print_all_btn);
#endif
p->append_button(print_plate_btn);
p->append_button(export_sliced_file_btn);
p->append_button(export_sliced_file_3mf_btn);
p->append_button(export_sliced_file_gcode_btn);
p->Popup(m_print_btn);
}
);