mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
Merge remote-tracking branch 'origin/5.1' into CURA-9365_fix_building_cura_main
This commit is contained in:
commit
f6aa409701
7 changed files with 22 additions and 73 deletions
|
@ -36,6 +36,8 @@ class ActiveIntentQualitiesModel(ListModel):
|
|||
IntentManager.intentCategoryChangedSignal.connect(self._update)
|
||||
machine_manager = cura.CuraApplication.CuraApplication.getInstance().getMachineManager()
|
||||
machine_manager.activeQualityGroupChanged.connect(self._update)
|
||||
machine_manager.globalContainerChanged.connect(self._updateDelayed)
|
||||
machine_manager.extruderChanged.connect(self._updateDelayed) # We also need to update if an extruder gets disabled
|
||||
|
||||
self._update_timer = QTimer()
|
||||
self._update_timer.setInterval(100)
|
||||
|
|
|
@ -3,13 +3,10 @@ import QtQuick 2.10
|
|||
import UM 1.6 as UM
|
||||
import Cura 1.6 as Cura
|
||||
|
||||
Rectangle
|
||||
Item
|
||||
{
|
||||
height: visible ? UM.Theme.getSize("action_button_icon").height : 0
|
||||
visible: Cura.SimpleModeSettingsManager.isProfileCustomized || Cura.MachineManager.hasCustomQuality
|
||||
anchors.topMargin: UM.Theme.getSize("default_margin")
|
||||
anchors.bottomMargin: UM.Theme.getSize("default_margin")
|
||||
|
||||
|
||||
Rectangle
|
||||
{
|
||||
|
@ -34,6 +31,7 @@ Rectangle
|
|||
UM.Label
|
||||
{
|
||||
id: warning
|
||||
width: parent.width - warningIcon.width - resetToDefaultQualityButton.width
|
||||
anchors
|
||||
{
|
||||
left: warningIcon.right
|
||||
|
@ -41,7 +39,7 @@ Rectangle
|
|||
leftMargin: UM.Theme.getSize("thin_margin").width
|
||||
}
|
||||
|
||||
text: ""
|
||||
wrapMode: Text.WordWrap
|
||||
|
||||
states: [
|
||||
State
|
||||
|
|
|
@ -40,7 +40,7 @@ Item
|
|||
RecommendedQualityProfileSelector
|
||||
{
|
||||
width: parent.width
|
||||
visible: recommendedResolutionSelector.visible
|
||||
hasQualityOptions: recommendedResolutionSelector.visible
|
||||
}
|
||||
|
||||
RecommendedResolutionSelector
|
||||
|
@ -54,6 +54,7 @@ Item
|
|||
{
|
||||
width: parent.width
|
||||
visible: !recommendedResolutionSelector.visible
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
|
||||
|
@ -61,6 +62,8 @@ Item
|
|||
{
|
||||
width: parent.width
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: UM.Theme.getSize("thin_margin").height
|
||||
Layout.bottomMargin: UM.Theme.getSize("thin_margin").height
|
||||
}
|
||||
|
||||
//Line between the sections.
|
||||
|
@ -83,27 +86,23 @@ Item
|
|||
RecommendedInfillDensitySelector
|
||||
{
|
||||
width: parent.width
|
||||
// TODO Create a reusable component with these properties to not define them separately for each component
|
||||
labelColumnWidth: parent.firstColumnWidth
|
||||
Layout.fillWidth: true
|
||||
Layout.leftMargin: UM.Theme.getSize("default_margin").width
|
||||
Layout.rightMargin: UM.Theme.getSize("default_margin").width
|
||||
}
|
||||
|
||||
RecommendedSupportSelector
|
||||
{
|
||||
width: parent.width
|
||||
// TODO Create a reusable component with these properties to not define them separately for each component
|
||||
labelColumnWidth: parent.firstColumnWidth
|
||||
Layout.leftMargin: UM.Theme.getSize("default_margin").width
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
RecommendedAdhesionSelector
|
||||
{
|
||||
width: parent.width
|
||||
// TODO Create a reusable component with these properties to not define them separately for each component
|
||||
labelColumnWidth: parent.firstColumnWidth
|
||||
Layout.leftMargin: UM.Theme.getSize("default_margin").width
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -12,8 +12,11 @@ import ".."
|
|||
Item
|
||||
{
|
||||
id: qualityRow
|
||||
|
||||
property bool hasQualityOptions: true
|
||||
|
||||
height: childrenRect.height
|
||||
visible: intentSelectionRepeater.count > 1 //Only show selector if there's more options than just "default".
|
||||
visible: intentSelectionRepeater.count > 1 && hasQualityOptions //Only show selector if there's more options than just "default".
|
||||
|
||||
RowLayout
|
||||
{
|
||||
|
|
|
@ -66,6 +66,11 @@ Item
|
|||
{
|
||||
var selected_item = model.getItem(currentIndex)
|
||||
Cura.IntentManager.selectIntent(selected_item.intent_category, selected_item.quality_type)
|
||||
|
||||
if (Cura.IntentManager.currentIntentCategory == selected_item.intent_category)
|
||||
{
|
||||
recommendedResolutionSelector._previousResolution = selected_item.quality_type;
|
||||
}
|
||||
}
|
||||
|
||||
Connections
|
||||
|
|
|
@ -9,37 +9,8 @@ type = variant
|
|||
hardware_type = nozzle
|
||||
|
||||
[values]
|
||||
brim_width = 7
|
||||
machine_nozzle_cool_down_speed = 0.9
|
||||
machine_nozzle_id = DD 0.4
|
||||
machine_nozzle_size = 0.4
|
||||
raft_acceleration = =acceleration_print
|
||||
raft_airgap = 0.3
|
||||
raft_base_thickness = =resolveOrValue('layer_height_0') * 1.2
|
||||
raft_interface_line_spacing = =raft_interface_line_width + 0.2
|
||||
raft_interface_line_width = =line_width * 2
|
||||
raft_interface_thickness = =layer_height * 1.5
|
||||
raft_jerk = =jerk_print
|
||||
raft_margin = 15
|
||||
raft_surface_layers = 2
|
||||
retraction_count_max = 25
|
||||
retraction_min_travel = =line_width * 2
|
||||
machine_nozzle_tip_outer_diameter = 1.2
|
||||
retraction_prime_speed = =retraction_speed
|
||||
speed_infill = =speed_print
|
||||
speed_layer_0 = 20
|
||||
speed_print = 45
|
||||
speed_support = =speed_topbottom
|
||||
speed_topbottom = =math.ceil(speed_print * 25 / 45)
|
||||
speed_travel_layer_0 = 50
|
||||
speed_wall = =math.ceil(speed_print * 30 / 45)
|
||||
speed_wall_0 = =math.ceil(speed_wall * 25 / 30)
|
||||
speed_wall_x = =speed_wall
|
||||
support_angle = 60
|
||||
support_bottom_distance = =support_z_distance / 2
|
||||
support_pattern = zigzag
|
||||
support_top_distance = =support_z_distance
|
||||
support_use_towers = True
|
||||
support_z_distance = =layer_height * 2
|
||||
switch_extruder_prime_speed = =switch_extruder_retraction_speeds
|
||||
switch_extruder_retraction_amount = =machine_heat_zone_length
|
||||
top_bottom_thickness = =layer_height * 6
|
||||
|
|
|
@ -9,37 +9,8 @@ type = variant
|
|||
hardware_type = nozzle
|
||||
|
||||
[values]
|
||||
brim_width = 7
|
||||
machine_nozzle_cool_down_speed = 0.9
|
||||
machine_nozzle_id = DD 0.4
|
||||
machine_nozzle_size = 0.4
|
||||
raft_acceleration = =acceleration_print
|
||||
raft_airgap = 0.3
|
||||
raft_base_thickness = =resolveOrValue('layer_height_0') * 1.2
|
||||
raft_interface_line_spacing = =raft_interface_line_width + 0.2
|
||||
raft_interface_line_width = =line_width * 2
|
||||
raft_interface_thickness = =layer_height * 1.5
|
||||
raft_jerk = =jerk_print
|
||||
raft_margin = 15
|
||||
raft_surface_layers = 2
|
||||
retraction_count_max = 25
|
||||
retraction_min_travel = =line_width * 2
|
||||
machine_nozzle_tip_outer_diameter = 1.2
|
||||
retraction_prime_speed = =retraction_speed
|
||||
speed_infill = =speed_print
|
||||
speed_layer_0 = 20
|
||||
speed_print = 45
|
||||
speed_support = =speed_topbottom
|
||||
speed_topbottom = =math.ceil(speed_print * 25 / 45)
|
||||
speed_travel_layer_0 = 50
|
||||
speed_wall = =math.ceil(speed_print * 30 / 45)
|
||||
speed_wall_0 = =math.ceil(speed_wall * 25 / 30)
|
||||
speed_wall_x = =speed_wall
|
||||
support_angle = 60
|
||||
support_bottom_distance = =support_z_distance / 2
|
||||
support_pattern = zigzag
|
||||
support_top_distance = =support_z_distance
|
||||
support_use_towers = True
|
||||
support_z_distance = =layer_height * 2
|
||||
switch_extruder_prime_speed = =switch_extruder_retraction_speeds
|
||||
switch_extruder_retraction_amount = =machine_heat_zone_length
|
||||
top_bottom_thickness = =layer_height * 6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue