Merge branch 'refactoring_machine_manager' of github.com:Ultimaker/Cura into refactoring_machine_manager

This commit is contained in:
Jack Ha 2018-02-21 11:13:44 +01:00
commit 0649f177b4
13 changed files with 61 additions and 73 deletions

View File

@ -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 = []

View File

@ -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([])

View File

@ -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": {

View File

@ -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": {

View 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

View 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

View 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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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