mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-30 04:05:25 +08:00
Merge branch 'refactoring_machine_manager' of github.com:Ultimaker/Cura into refactoring_machine_manager
This commit is contained in:
commit
0649f177b4
@ -2,6 +2,7 @@ from PyQt5.QtCore import Qt
|
||||
|
||||
from UM.Application import Application
|
||||
from UM.Qt.ListModel import ListModel
|
||||
from UM.Util import parseBool
|
||||
|
||||
from cura.Machines.VariantManager import VariantType
|
||||
|
||||
@ -30,6 +31,11 @@ class BuildPlateModel(ListModel):
|
||||
self.setItems([])
|
||||
return
|
||||
|
||||
has_variants = parseBool(global_stack.getMetaDataEntry("has_variant_buildplates", False))
|
||||
if not has_variants:
|
||||
self.setItems([])
|
||||
return
|
||||
|
||||
variant_dict = self._variant_manager.getVariantNodes(global_stack, variant_type = VariantType.BUILD_PLATE)
|
||||
|
||||
item_list = []
|
||||
|
@ -5,6 +5,7 @@ from PyQt5.QtCore import Qt
|
||||
|
||||
from UM.Application import Application
|
||||
from UM.Qt.ListModel import ListModel
|
||||
from UM.Util import parseBool
|
||||
|
||||
|
||||
class NozzleModel(ListModel):
|
||||
@ -33,6 +34,11 @@ class NozzleModel(ListModel):
|
||||
self.setItems([])
|
||||
return
|
||||
|
||||
has_variants = parseBool(active_global_stack.getMetaDataEntry("has_variants", False))
|
||||
if not has_variants:
|
||||
self.setItems([])
|
||||
return
|
||||
|
||||
variant_node_dict = variant_manager.getVariantNodes(active_global_stack)
|
||||
if not variant_node_dict:
|
||||
self.setItems([])
|
||||
|
@ -6,7 +6,8 @@
|
||||
"visible": true,
|
||||
"author": "ABAX 3d Technologies",
|
||||
"manufacturer": "ABAX 3d Technologies",
|
||||
"file_formats": "text/x-gcode"
|
||||
"file_formats": "text/x-gcode",
|
||||
"has_machine_quality": true
|
||||
},
|
||||
"overrides": {
|
||||
"machine_start_gcode": {
|
||||
|
@ -6,7 +6,9 @@
|
||||
"visible": true,
|
||||
"author": "ABAX 3d Technologies",
|
||||
"manufacturer": "ABAX 3d Technologies",
|
||||
"file_formats": "text/x-gcode"
|
||||
"file_formats": "text/x-gcode",
|
||||
"quality_definition": "abax_pri3",
|
||||
"has_machine_quality": true
|
||||
},
|
||||
"overrides": {
|
||||
"machine_start_gcode": {
|
||||
|
14
resources/quality/abax_pri3/apri3_fast.inst.cfg
Normal file
14
resources/quality/abax_pri3/apri3_fast.inst.cfg
Normal file
@ -0,0 +1,14 @@
|
||||
[general]
|
||||
version = 2
|
||||
name = Fast
|
||||
definition = abax_pri3
|
||||
|
||||
[metadata]
|
||||
setting_version = 4
|
||||
type = quality
|
||||
quality_type = fast
|
||||
weight = -1
|
||||
global_quality = True
|
||||
|
||||
[values]
|
||||
layer_height = 0.2
|
14
resources/quality/abax_pri3/apri3_high.inst.cfg
Normal file
14
resources/quality/abax_pri3/apri3_high.inst.cfg
Normal file
@ -0,0 +1,14 @@
|
||||
[general]
|
||||
version = 2
|
||||
name = Extra Fine
|
||||
definition = abax_pri3
|
||||
|
||||
[metadata]
|
||||
setting_version = 4
|
||||
type = quality
|
||||
quality_type = high
|
||||
weight = 1
|
||||
global_quality = True
|
||||
|
||||
[values]
|
||||
layer_height = 0.1
|
14
resources/quality/abax_pri3/apri3_normal.inst.cfg
Normal file
14
resources/quality/abax_pri3/apri3_normal.inst.cfg
Normal file
@ -0,0 +1,14 @@
|
||||
[general]
|
||||
version = 2
|
||||
name = Fine
|
||||
definition = abax_pri3
|
||||
|
||||
[metadata]
|
||||
setting_version = 4
|
||||
type = quality
|
||||
quality_type = normal
|
||||
weight = 0
|
||||
global_quality = True
|
||||
|
||||
[values]
|
||||
layer_height = 0.2
|
@ -1,17 +1,16 @@
|
||||
[general]
|
||||
version = 2
|
||||
name = Fine
|
||||
name = Fast
|
||||
definition = abax_pri3
|
||||
|
||||
[metadata]
|
||||
setting_version = 4
|
||||
type = quality
|
||||
quality_type = normal
|
||||
quality_type = fast
|
||||
weight = -1
|
||||
material = generic_pla
|
||||
|
||||
[values]
|
||||
layer_height = 0.2
|
||||
wall_thickness = 1.05
|
||||
top_bottom_thickness = 0.8
|
||||
infill_sparse_density = 20
|
||||
|
@ -11,7 +11,6 @@ weight = 1
|
||||
material = generic_pla
|
||||
|
||||
[values]
|
||||
layer_height = 0.1
|
||||
wall_thickness = 1.05
|
||||
top_bottom_thickness = 0.8
|
||||
infill_sparse_density = 20
|
||||
|
@ -11,7 +11,6 @@ weight = 0
|
||||
material = generic_pla
|
||||
|
||||
[values]
|
||||
layer_height = 0.2
|
||||
wall_thickness = 1.05
|
||||
top_bottom_thickness = 0.8
|
||||
infill_sparse_density = 20
|
||||
|
@ -1,22 +0,0 @@
|
||||
[general]
|
||||
version = 2
|
||||
name = Fine
|
||||
definition = abax_pri5
|
||||
|
||||
[metadata]
|
||||
setting_version = 4
|
||||
type = quality
|
||||
quality_type = normal
|
||||
weight = -1
|
||||
material = generic_pla
|
||||
|
||||
[values]
|
||||
layer_height = 0.2
|
||||
wall_thickness = 1.05
|
||||
top_bottom_thickness = 0.8
|
||||
infill_sparse_density = 20
|
||||
speed_print = 80
|
||||
speed_layer_0 = =round(speed_print * 30 / 50)
|
||||
speed_topbottom = 20
|
||||
cool_min_layer_time = 5
|
||||
cool_min_speed = 10
|
@ -1,22 +0,0 @@
|
||||
[general]
|
||||
version = 2
|
||||
name = Extra Fine
|
||||
definition = abax_pri5
|
||||
|
||||
[metadata]
|
||||
setting_version = 4
|
||||
type = quality
|
||||
quality_type = high
|
||||
weight = 1
|
||||
material = generic_pla
|
||||
|
||||
[values]
|
||||
layer_height = 0.1
|
||||
wall_thickness = 1.05
|
||||
top_bottom_thickness = 0.8
|
||||
infill_sparse_density = 20
|
||||
speed_print = 50
|
||||
speed_layer_0 = =round(speed_print * 30 / 50)
|
||||
speed_topbottom = 20
|
||||
cool_min_layer_time = 5
|
||||
cool_min_speed = 10
|
@ -1,22 +0,0 @@
|
||||
[general]
|
||||
version = 2
|
||||
name = Fine
|
||||
definition = abax_pri5
|
||||
|
||||
[metadata]
|
||||
setting_version = 4
|
||||
type = quality
|
||||
quality_type = normal
|
||||
weight = 0
|
||||
material = generic_pla
|
||||
|
||||
[values]
|
||||
layer_height = 0.2
|
||||
wall_thickness = 1.05
|
||||
top_bottom_thickness = 0.8
|
||||
infill_sparse_density = 20
|
||||
speed_print = 50
|
||||
speed_layer_0 = =round(speed_print * 30 / 50)
|
||||
speed_topbottom = 20
|
||||
cool_min_layer_time = 5
|
||||
cool_min_speed = 10
|
Loading…
x
Reference in New Issue
Block a user