mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-25 11:51:41 -07:00
Merge branch 'master' into CURA-6435_new_style_add_machine
This commit is contained in:
commit
969b5f7081
11 changed files with 42 additions and 34 deletions
|
|
@ -205,7 +205,7 @@ Item
|
|||
|
||||
Row
|
||||
{
|
||||
height: visible ? childrenRect.height : 0
|
||||
height: visible ? UM.Theme.getSize("setting_control").height : 0
|
||||
visible: extrudersModel.count > 1 // If there is only one extruder, there is no point to enable/disable that.
|
||||
|
||||
Label
|
||||
|
|
@ -223,7 +223,7 @@ Item
|
|||
{
|
||||
checked: Cura.MachineManager.activeStack != null ? Cura.MachineManager.activeStack.isEnabled : false
|
||||
enabled: !checked || Cura.MachineManager.numberExtrudersEnabled > 1 //Disable if it's the last enabled extruder.
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
height: parent.height
|
||||
style: UM.Theme.styles.checkbox
|
||||
|
||||
/* Use a MouseArea to process the click on this checkbox.
|
||||
|
|
@ -242,7 +242,7 @@ Item
|
|||
|
||||
Row
|
||||
{
|
||||
height: visible ? childrenRect.height: 0
|
||||
height: visible ? UM.Theme.getSize("print_setup_big_item").height : 0
|
||||
visible: Cura.MachineManager.hasMaterials
|
||||
|
||||
Label
|
||||
|
|
@ -267,7 +267,7 @@ Item
|
|||
tooltip: text
|
||||
|
||||
width: selectors.controlWidth
|
||||
height: UM.Theme.getSize("print_setup_big_item").height
|
||||
height: parent.height
|
||||
|
||||
style: UM.Theme.styles.print_setup_header_button
|
||||
activeFocusOnPress: true
|
||||
|
|
@ -302,7 +302,7 @@ Item
|
|||
|
||||
Row
|
||||
{
|
||||
height: visible ? childrenRect.height: 0
|
||||
height: visible ? UM.Theme.getSize("print_setup_big_item").height : 0
|
||||
visible: Cura.MachineManager.hasVariants
|
||||
|
||||
Label
|
||||
|
|
@ -321,7 +321,7 @@ Item
|
|||
id: variantSelection
|
||||
text: Cura.MachineManager.activeVariantName
|
||||
tooltip: Cura.MachineManager.activeVariantName
|
||||
height: UM.Theme.getSize("print_setup_big_item").height
|
||||
height: parent.height
|
||||
width: selectors.controlWidth
|
||||
style: UM.Theme.styles.print_setup_header_button
|
||||
activeFocusOnPress: true;
|
||||
|
|
|
|||
|
|
@ -133,7 +133,14 @@ Item
|
|||
supportExtruderCombobox.color = supportExtruderCombobox.model.getItem(supportExtruderCombobox.currentIndex).color
|
||||
}
|
||||
}
|
||||
onCurrentIndexChanged: supportExtruderCombobox.color = supportExtruderCombobox.model.getItem(supportExtruderCombobox.currentIndex).color
|
||||
onCurrentIndexChanged:
|
||||
{
|
||||
var maybeColor = supportExtruderCombobox.model.getItem(supportExtruderCombobox.currentIndex).color
|
||||
if(maybeColor)
|
||||
{
|
||||
supportExtruderCombobox.color = maybeColor
|
||||
}
|
||||
}
|
||||
|
||||
Binding
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,9 +7,6 @@ import QtQuick.Controls 2.3
|
|||
import UM 1.3 as UM
|
||||
import Cura 1.1 as Cura
|
||||
|
||||
import "../PrinterSelector"
|
||||
|
||||
|
||||
//
|
||||
// This is the widget for adding a network printer. There are 2 parts in this widget. One is a scroll view of a list
|
||||
// of discovered network printers. Beneath the scroll view is a container with 3 buttons: "Refresh", "Add by IP", and
|
||||
|
|
@ -84,13 +81,11 @@ Item
|
|||
}
|
||||
}
|
||||
|
||||
delegate: MachineSelectorButton
|
||||
delegate: Cura.MachineSelectorButton
|
||||
{
|
||||
text: modelData.device.name
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||
width: networkPrinterListView.width
|
||||
outputDevice: modelData.device
|
||||
|
||||
enabled: !modelData.isUnknownMachineType
|
||||
|
|
@ -119,22 +114,23 @@ Item
|
|||
}
|
||||
}
|
||||
|
||||
// Horizontal line separating the buttons (below) and the discovered network printers (above)
|
||||
Rectangle
|
||||
{
|
||||
id: separator
|
||||
anchors.left: parent.left
|
||||
anchors.top: networkPrinterInfo.bottom
|
||||
anchors.right: parent.right
|
||||
height: UM.Theme.getSize("default_lining").height
|
||||
color: UM.Theme.getColor("lining")
|
||||
}
|
||||
|
||||
Item
|
||||
{
|
||||
id: controlsRectangle
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: networkPrinterInfo.bottom
|
||||
|
||||
// Horizontal line separating the buttons (below) and the discovered network printers (above)
|
||||
Rectangle
|
||||
{
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
height: UM.Theme.getSize("default_lining").width
|
||||
color: UM.Theme.getColor("lining")
|
||||
}
|
||||
anchors.top: separator.bottom
|
||||
|
||||
height: UM.Theme.getSize("message_action_button").height + UM.Theme.getSize("default_margin").height
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
module Cura
|
||||
|
||||
MachineSelector 1.0 MachineSelector.qml
|
||||
MachineSelectorButton 1.0 MachineSelectorButton.qml
|
||||
CustomConfigurationSelector 1.0 CustomConfigurationSelector.qml
|
||||
PrintSetupSelector 1.0 PrintSetupSelector.qml
|
||||
ActionButton 1.0 ActionButton.qml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue