mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:55:54 +08:00
Merge branch 'replace_controls_1_for_controls_2' into CURA-8688_qt6_cleanup
This commit is contained in:
commit
ab17df15b5
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2018 Ultimaker B.V.
|
// Copyright (c) 2022 Ultimaker B.V.
|
||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
@ -7,13 +7,13 @@ import QtQuick.Layouts 1.1
|
|||||||
import QtQuick.Window 2.1
|
import QtQuick.Window 2.1
|
||||||
import QtQuick.Dialogs 1.2 // For filedialog
|
import QtQuick.Dialogs 1.2 // For filedialog
|
||||||
|
|
||||||
import UM 1.2 as UM
|
import UM 1.5 as UM
|
||||||
import Cura 1.0 as Cura
|
import Cura 1.0 as Cura
|
||||||
|
|
||||||
|
|
||||||
Cura.MachineAction
|
Cura.MachineAction
|
||||||
{
|
{
|
||||||
anchors.fill: parent;
|
anchors.fill: parent
|
||||||
property bool printerConnected: Cura.MachineManager.printerConnected
|
property bool printerConnected: Cura.MachineManager.printerConnected
|
||||||
property var activeOutputDevice: printerConnected ? Cura.MachineManager.printerOutputDevices[0] : null
|
property var activeOutputDevice: printerConnected ? Cura.MachineManager.printerOutputDevices[0] : null
|
||||||
property bool canUpdateFirmware: activeOutputDevice ? activeOutputDevice.activePrinter.canUpdateFirmware : false
|
property bool canUpdateFirmware: activeOutputDevice ? activeOutputDevice.activePrinter.canUpdateFirmware : false
|
||||||
@ -25,25 +25,22 @@ Cura.MachineAction
|
|||||||
UM.I18nCatalog { id: catalog; name: "cura"}
|
UM.I18nCatalog { id: catalog; name: "cura"}
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
text: catalog.i18nc("@title", "Update Firmware")
|
text: catalog.i18nc("@title", "Update Firmware")
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
font.pointSize: 18
|
font.pointSize: 18
|
||||||
}
|
}
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
text: catalog.i18nc("@label", "Firmware is the piece of software running directly on your 3D printer. This firmware controls the step motors, regulates the temperature and ultimately makes your printer work.")
|
text: catalog.i18nc("@label", "Firmware is the piece of software running directly on your 3D printer. This firmware controls the step motors, regulates the temperature and ultimately makes your printer work.")
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
wrapMode: Text.WordWrap
|
text: catalog.i18nc("@label", "The firmware shipping with new printers works, but new versions tend to have more features and improvements.")
|
||||||
text: catalog.i18nc("@label", "The firmware shipping with new printers works, but new versions tend to have more features and improvements.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Row
|
Row
|
||||||
@ -55,7 +52,7 @@ Cura.MachineAction
|
|||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: autoUpgradeButton
|
id: autoUpgradeButton
|
||||||
text: catalog.i18nc("@action:button", "Automatically upgrade Firmware");
|
text: catalog.i18nc("@action:button", "Automatically upgrade Firmware")
|
||||||
enabled: parent.firmwareName != "" && canUpdateFirmware
|
enabled: parent.firmwareName != "" && canUpdateFirmware
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
@ -66,7 +63,7 @@ Cura.MachineAction
|
|||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: manualUpgradeButton
|
id: manualUpgradeButton
|
||||||
text: catalog.i18nc("@action:button", "Upload custom Firmware");
|
text: catalog.i18nc("@action:button", "Upload custom Firmware")
|
||||||
enabled: canUpdateFirmware
|
enabled: canUpdateFirmware
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
@ -75,20 +72,18 @@ Cura.MachineAction
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
visible: !printerConnected && !updateProgressDialog.visible
|
visible: !printerConnected && !updateProgressDialog.visible
|
||||||
text: catalog.i18nc("@label", "Firmware can not be updated because there is no connection with the printer.");
|
text: catalog.i18nc("@label", "Firmware can not be updated because there is no connection with the printer.")
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
visible: printerConnected && !canUpdateFirmware
|
visible: printerConnected && !canUpdateFirmware
|
||||||
text: catalog.i18nc("@label", "Firmware can not be updated because the connection with the printer does not support upgrading firmware.");
|
text: catalog.i18nc("@label", "Firmware can not be updated because the connection with the printer does not support upgrading firmware.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,7 +117,7 @@ Cura.MachineAction
|
|||||||
{
|
{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
@ -157,7 +152,7 @@ Cura.MachineAction
|
|||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
}
|
}
|
||||||
|
|
||||||
ProgressBar
|
UM.ProgressBar
|
||||||
{
|
{
|
||||||
id: prog
|
id: prog
|
||||||
value: (manager.firmwareUpdater != null) ? manager.firmwareUpdater.firmwareProgress / 100 : 0
|
value: (manager.firmwareUpdater != null) ? manager.firmwareUpdater.firmwareProgress / 100 : 0
|
||||||
@ -171,8 +166,8 @@ Cura.MachineAction
|
|||||||
}
|
}
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
left: parent.left;
|
left: parent.left
|
||||||
right: parent.right;
|
right: parent.right
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -180,9 +175,9 @@ Cura.MachineAction
|
|||||||
rightButtons: [
|
rightButtons: [
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@action:button","Close");
|
text: catalog.i18nc("@action:button", "Close")
|
||||||
enabled: (manager.firmwareUpdater != null) ? manager.firmwareUpdater.firmwareUpdateState != 1 : true;
|
enabled: manager.firmwareUpdater != null ? manager.firmwareUpdater.firmwareUpdateState != 1 : true
|
||||||
onClicked: updateProgressDialog.visible = false;
|
onClicked: updateProgressDialog.visible = false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@ UM.Dialog
|
|||||||
width: minimumWidth
|
width: minimumWidth
|
||||||
height: minimumHeight
|
height: minimumHeight
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
GridLayout
|
GridLayout
|
||||||
{
|
{
|
||||||
UM.I18nCatalog { id: catalog; name: "cura" }
|
UM.I18nCatalog { id: catalog; name: "cura" }
|
||||||
@ -26,7 +28,7 @@ UM.Dialog
|
|||||||
rowSpacing: UM.Theme.getSize("thin_margin").height
|
rowSpacing: UM.Theme.getSize("thin_margin").height
|
||||||
columns: 2
|
columns: 2
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: catalog.i18nc("@action:label", "Height (mm)")
|
text: catalog.i18nc("@action:label", "Height (mm)")
|
||||||
@ -39,7 +41,7 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
id: peak_height
|
id: peak_height
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@ -57,7 +59,7 @@ UM.Dialog
|
|||||||
y: peak_height.y + peak_height.height + UM.Theme.getSize("default_margin").height
|
y: peak_height.y + peak_height.height + UM.Theme.getSize("default_margin").height
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: catalog.i18nc("@action:label", "Base (mm)")
|
text: catalog.i18nc("@action:label", "Base (mm)")
|
||||||
@ -71,7 +73,7 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
id: base_height
|
id: base_height
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
@ -89,7 +91,7 @@ UM.Dialog
|
|||||||
y: base_height.y + base_height.height + UM.Theme.getSize("default_margin").height
|
y: base_height.y + base_height.height + UM.Theme.getSize("default_margin").height
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: catalog.i18nc("@action:label", "Width (mm)")
|
text: catalog.i18nc("@action:label", "Width (mm)")
|
||||||
@ -102,7 +104,7 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
id: width
|
id: width
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
@ -121,7 +123,7 @@ UM.Dialog
|
|||||||
y: width.y + width.height + UM.Theme.getSize("default_margin").height
|
y: width.y + width.height + UM.Theme.getSize("default_margin").height
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: catalog.i18nc("@action:label", "Depth (mm)")
|
text: catalog.i18nc("@action:label", "Depth (mm)")
|
||||||
@ -134,7 +136,7 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
id: depth
|
id: depth
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@ -153,7 +155,7 @@ UM.Dialog
|
|||||||
y: depth.y + depth.height + UM.Theme.getSize("default_margin").height
|
y: depth.y + depth.height + UM.Theme.getSize("default_margin").height
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: ""
|
text: ""
|
||||||
@ -166,7 +168,7 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ComboBox
|
Cura.ComboBox
|
||||||
{
|
{
|
||||||
id: lighter_is_higher
|
id: lighter_is_higher
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@ -184,7 +186,7 @@ UM.Dialog
|
|||||||
y: lighter_is_higher.y + lighter_is_higher.height + UM.Theme.getSize("default_margin").height
|
y: lighter_is_higher.y + lighter_is_higher.height + UM.Theme.getSize("default_margin").height
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: catalog.i18nc("@action:label", "Color Model")
|
text: catalog.i18nc("@action:label", "Color Model")
|
||||||
@ -197,7 +199,7 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ComboBox
|
Cura.ComboBox
|
||||||
{
|
{
|
||||||
id: color_model
|
id: color_model
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@ -215,7 +217,7 @@ UM.Dialog
|
|||||||
y: color_model.y + color_model.height + UM.Theme.getSize("default_margin").height
|
y: color_model.y + color_model.height + UM.Theme.getSize("default_margin").height
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: catalog.i18nc("@action:label", "1mm Transmittance (%)")
|
text: catalog.i18nc("@action:label", "1mm Transmittance (%)")
|
||||||
@ -228,7 +230,7 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
id: transmittance
|
id: transmittance
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@ -246,7 +248,7 @@ UM.Dialog
|
|||||||
y: transmittance.y + transmittance.height + UM.Theme.getSize("default_margin").height
|
y: transmittance.y + transmittance.height + UM.Theme.getSize("default_margin").height
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: catalog.i18nc("@action:label", "Smoothing")
|
text: catalog.i18nc("@action:label", "Smoothing")
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 2.1
|
import QtQuick.Controls 2.1
|
||||||
|
|
||||||
import UM 1.1 as UM
|
import UM 1.5 as UM
|
||||||
|
import Cura 1.0 as Cura
|
||||||
import ".."
|
import ".."
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
@ -33,7 +33,7 @@ Button {
|
|||||||
source: UM.Theme.getIcon(definition.icon)
|
source: UM.Theme.getIcon(definition.icon)
|
||||||
color: base.hovered ? palette.highlight : palette.buttonText
|
color: base.hovered ? palette.highlight : palette.buttonText
|
||||||
}
|
}
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
id: label
|
id: label
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
@ -6,7 +6,6 @@ import QtQuick.Layouts 1.1
|
|||||||
import QtQuick.Controls 2.1
|
import QtQuick.Controls 2.1
|
||||||
|
|
||||||
import UM 1.5 as UM
|
import UM 1.5 as UM
|
||||||
|
|
||||||
import Cura 1.0 as Cura
|
import Cura 1.0 as Cura
|
||||||
|
|
||||||
UM.TooltipArea
|
UM.TooltipArea
|
||||||
|
@ -42,7 +42,7 @@ UM.Dialog
|
|||||||
listview.model.filter = new_filter
|
listview.model.filter = new_filter
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
id: filterInput
|
id: filterInput
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
|
@ -37,22 +37,17 @@ Cura.MachineAction
|
|||||||
|
|
||||||
SystemPalette { id: palette }
|
SystemPalette { id: palette }
|
||||||
UM.I18nCatalog { id: catalog; name:"cura" }
|
UM.I18nCatalog { id: catalog; name:"cura" }
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
id: pageTitle
|
id: pageTitle
|
||||||
width: parent.width
|
width: parent.width
|
||||||
text: catalog.i18nc("@title:window", "Connect to Networked Printer")
|
text: catalog.i18nc("@title:window", "Connect to Networked Printer")
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
font.pointSize: 18
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
id: pageDescription
|
id: pageDescription
|
||||||
width: parent.width
|
width: parent.width
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
text: catalog.i18nc("@label", "To print directly to your printer over the network, please make sure your printer is connected to the network using a network cable or by connecting your printer to your WIFI network. If you don't connect Cura with your printer, you can still use a USB drive to transfer g-code files to your printer.") + "\n\n" + catalog.i18nc("@label", "Select your printer from the list below:")
|
text: catalog.i18nc("@label", "To print directly to your printer over the network, please make sure your printer is connected to the network using a network cable or by connecting your printer to your WIFI network. If you don't connect Cura with your printer, you can still use a USB drive to transfer g-code files to your printer.") + "\n\n" + catalog.i18nc("@label", "Select your printer from the list below:")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,13 +153,11 @@ Cura.MachineAction
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
id: discoveryTip
|
id: discoveryTip
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
text: catalog.i18nc("@label", "If your printer is not listed, read the <a href='%1'>network printing troubleshooting guide</a>").arg("https://ultimaker.com/en/cura/troubleshooting/network?utm_source=cura&utm_medium=software&utm_campaign=manage-network-printer");
|
text: catalog.i18nc("@label", "If your printer is not listed, read the <a href='%1'>network printing troubleshooting guide</a>").arg("https://ultimaker.com/en/cura/troubleshooting/network?utm_source=cura&utm_medium=software&utm_campaign=manage-network-printer");
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
onLinkActivated: Qt.openUrlExternally(link)
|
||||||
}
|
}
|
||||||
@ -175,32 +168,27 @@ Cura.MachineAction
|
|||||||
width: Math.round(parent.width * 0.5)
|
width: Math.round(parent.width * 0.5)
|
||||||
visible: base.selectedDevice ? true : false
|
visible: base.selectedDevice ? true : false
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
text: base.selectedDevice ? base.selectedDevice.name : ""
|
text: base.selectedDevice ? base.selectedDevice.name : ""
|
||||||
font: UM.Theme.getFont("large_bold")
|
font: UM.Theme.getFont("large_bold")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
renderType: Text.NativeRendering
|
|
||||||
}
|
}
|
||||||
Grid
|
Grid
|
||||||
{
|
{
|
||||||
visible: base.completeProperties
|
visible: base.completeProperties
|
||||||
width: parent.width
|
width: parent.width
|
||||||
columns: 2
|
columns: 2
|
||||||
Label
|
property real labelWidth: Math.round(width * 0.5)
|
||||||
|
UM.Label
|
||||||
{
|
{
|
||||||
width: Math.round(parent.width * 0.5)
|
width: labelWidth
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
text: catalog.i18nc("@label", "Type")
|
text: catalog.i18nc("@label", "Type")
|
||||||
}
|
}
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
width: Math.round(parent.width * 0.5)
|
width: labelWidth
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
text:
|
text:
|
||||||
{
|
{
|
||||||
if (base.selectedDevice) {
|
if (base.selectedDevice) {
|
||||||
@ -209,41 +197,31 @@ Cura.MachineAction
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
width: Math.round(parent.width * 0.5)
|
width: labelWidth
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
text: catalog.i18nc("@label", "Firmware version")
|
text: catalog.i18nc("@label", "Firmware version")
|
||||||
}
|
}
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
width: Math.round(parent.width * 0.5)
|
width: labelWidth
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
text: base.selectedDevice ? base.selectedDevice.firmwareVersion : ""
|
text: base.selectedDevice ? base.selectedDevice.firmwareVersion : ""
|
||||||
}
|
}
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
width: Math.round(parent.width * 0.5)
|
width: labelWidth
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
text: catalog.i18nc("@label", "Address")
|
text: catalog.i18nc("@label", "Address")
|
||||||
}
|
}
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
width: Math.round(parent.width * 0.5)
|
width: labelWidth
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
text: base.selectedDevice ? base.selectedDevice.ipAddress : ""
|
text: base.selectedDevice ? base.selectedDevice.ipAddress : ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
text:{
|
text:{
|
||||||
// The property cluster size does not exist for older UM3 devices.
|
// The property cluster size does not exist for older UM3 devices.
|
||||||
if(!base.selectedDevice || base.selectedDevice.clusterSize == null || base.selectedDevice.clusterSize == 1)
|
if(!base.selectedDevice || base.selectedDevice.clusterSize == null || base.selectedDevice.clusterSize == 1)
|
||||||
@ -261,11 +239,9 @@ Cura.MachineAction
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
visible: base.selectedDevice != null && !base.completeProperties
|
visible: base.selectedDevice != null && !base.completeProperties
|
||||||
text: catalog.i18nc("@label", "The printer at this address has not yet responded." )
|
text: catalog.i18nc("@label", "The printer at this address has not yet responded." )
|
||||||
}
|
}
|
||||||
@ -316,15 +292,13 @@ Cura.MachineAction
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "Enter the IP address of your printer on the network.")
|
text: catalog.i18nc("@label", "Enter the IP address of your printer on the network.")
|
||||||
width: parent.width
|
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
id: addressField
|
id: addressField
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
// Copyright (c) 2021 Ultimaker B.V.
|
// Copyright (c) 2022 Ultimaker B.V.
|
||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.1
|
import QtQuick.Controls 2.1
|
||||||
import QtQuick.Controls.Styles 1.1
|
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
|
|
||||||
import UM 1.5 as UM
|
import UM 1.5 as UM
|
||||||
@ -29,7 +28,8 @@ Item
|
|||||||
{
|
{
|
||||||
if (!activity)
|
if (!activity)
|
||||||
{
|
{
|
||||||
//When there is no mesh in the buildplate; the printJobTextField is set to an empty string so it doesn't set an empty string as a jobName (which is later used for saving the file)
|
// When there is no mesh in the buildplate; the printJobTextField is set to an empty string so it doesn't
|
||||||
|
// set an empty string as a jobName (which is later used for saving the file)
|
||||||
PrintInformation.baseName = ""
|
PrintInformation.baseName = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -64,9 +64,9 @@ Item
|
|||||||
anchors.left: printJobPencilIcon.right
|
anchors.left: printJobPencilIcon.right
|
||||||
anchors.leftMargin: UM.Theme.getSize("narrow_margin").width
|
anchors.leftMargin: UM.Theme.getSize("narrow_margin").width
|
||||||
height: UM.Theme.getSize("jobspecs_line").height
|
height: UM.Theme.getSize("jobspecs_line").height
|
||||||
width: Math.max(__contentWidth + UM.Theme.getSize("default_margin").width, 50)
|
width: Math.max(contentWidth + UM.Theme.getSize("default_margin").width, 50)
|
||||||
maximumLength: 120
|
maximumLength: 120
|
||||||
text: (PrintInformation === null) ? "" : PrintInformation.jobName
|
text: PrintInformation === null ? "" : PrintInformation.jobName
|
||||||
horizontalAlignment: TextInput.AlignLeft
|
horizontalAlignment: TextInput.AlignLeft
|
||||||
|
|
||||||
property string textBeforeEdit: ""
|
property string textBeforeEdit: ""
|
||||||
@ -91,17 +91,10 @@ Item
|
|||||||
validator: RegExpValidator {
|
validator: RegExpValidator {
|
||||||
regExp: /^[^\\\/\*\?\|\[\]]*$/
|
regExp: /^[^\\\/\*\?\|\[\]]*$/
|
||||||
}
|
}
|
||||||
|
font: UM.Theme.getFont("default")
|
||||||
style: TextFieldStyle
|
color: UM.Theme.getColor("text_scene")
|
||||||
{
|
background: Item {}
|
||||||
textColor: UM.Theme.getColor("text_scene")
|
selectByMouse: true
|
||||||
font: UM.Theme.getFont("default")
|
|
||||||
background: Rectangle
|
|
||||||
{
|
|
||||||
opacity: 0
|
|
||||||
border.width: 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,10 +118,7 @@ Item
|
|||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted:
|
Component.onCompleted: base.addAdditionalComponents("jobSpecsButton")
|
||||||
{
|
|
||||||
base.addAdditionalComponents("jobSpecsButton")
|
|
||||||
}
|
|
||||||
|
|
||||||
Connections
|
Connections
|
||||||
{
|
{
|
||||||
|
@ -183,7 +183,7 @@ Item
|
|||||||
visible: showProgress
|
visible: showProgress
|
||||||
}
|
}
|
||||||
|
|
||||||
ProgressBar
|
UM.ProgressBar
|
||||||
{
|
{
|
||||||
id: progressBar;
|
id: progressBar;
|
||||||
minimumValue: 0;
|
minimumValue: 0;
|
||||||
@ -218,8 +218,6 @@ Item
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
style: UM.Theme.styles.progressbar;
|
|
||||||
|
|
||||||
property string backgroundColor: UM.Theme.getColor("progressbar_background");
|
property string backgroundColor: UM.Theme.getColor("progressbar_background");
|
||||||
property string controlColor: base.statusColor;
|
property string controlColor: base.statusColor;
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ UM.PreferencesPage
|
|||||||
UM.I18nCatalog{id: catalog; name: "cura"}
|
UM.I18nCatalog{id: catalog; name: "cura"}
|
||||||
width: preferencesScrollView.width - preferencesScrollBar.width
|
width: preferencesScrollView.width - preferencesScrollBar.width
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
font.bold: true
|
font.bold: true
|
||||||
text: catalog.i18nc("@label", "Interface")
|
text: catalog.i18nc("@label", "Interface")
|
||||||
@ -160,7 +160,7 @@ UM.PreferencesPage
|
|||||||
columns: 4
|
columns: 4
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
id: languageLabel
|
id: languageLabel
|
||||||
text: "Language:" //Don't translate this, to make it easier to find the language drop-down if you can't read the current language.
|
text: "Language:" //Don't translate this, to make it easier to find the language drop-down if you can't read the current language.
|
||||||
@ -202,7 +202,7 @@ UM.PreferencesPage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ComboBox
|
Cura.ComboBox
|
||||||
{
|
{
|
||||||
id: languageComboBox
|
id: languageComboBox
|
||||||
|
|
||||||
@ -233,13 +233,13 @@ UM.PreferencesPage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
id: currencyLabel
|
id: currencyLabel
|
||||||
text: catalog.i18nc("@label", "Currency:")
|
text: catalog.i18nc("@label", "Currency:")
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
id: currencyField
|
id: currencyField
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
@ -247,7 +247,7 @@ UM.PreferencesPage
|
|||||||
onTextChanged: UM.Preferences.setValue("cura/currency", text)
|
onTextChanged: UM.Preferences.setValue("cura/currency", text)
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
id: themeLabel
|
id: themeLabel
|
||||||
text: catalog.i18nc("@label","Theme:")
|
text: catalog.i18nc("@label","Theme:")
|
||||||
@ -266,7 +266,7 @@ UM.PreferencesPage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ComboBox
|
Cura.ComboBox
|
||||||
{
|
{
|
||||||
id: themeComboBox
|
id: themeComboBox
|
||||||
|
|
||||||
@ -290,7 +290,7 @@ UM.PreferencesPage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
id: languageCaption
|
id: languageCaption
|
||||||
|
|
||||||
@ -314,7 +314,7 @@ UM.PreferencesPage
|
|||||||
|
|
||||||
text: catalog.i18nc("@info:tooltip", "Slice automatically when changing settings.")
|
text: catalog.i18nc("@info:tooltip", "Slice automatically when changing settings.")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: autoSliceCheckbox
|
id: autoSliceCheckbox
|
||||||
checked: boolCheck(UM.Preferences.getValue("general/auto_slice"))
|
checked: boolCheck(UM.Preferences.getValue("general/auto_slice"))
|
||||||
@ -331,7 +331,7 @@ UM.PreferencesPage
|
|||||||
width: UM.Theme.getSize("default_margin").width
|
width: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
font.bold: true
|
font.bold: true
|
||||||
text: catalog.i18nc("@label", "Viewport behavior")
|
text: catalog.i18nc("@label", "Viewport behavior")
|
||||||
@ -344,7 +344,7 @@ UM.PreferencesPage
|
|||||||
|
|
||||||
text: catalog.i18nc("@info:tooltip", "Highlight unsupported areas of the model in red. Without support these areas will not print properly.")
|
text: catalog.i18nc("@info:tooltip", "Highlight unsupported areas of the model in red. Without support these areas will not print properly.")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: showOverhangCheckbox
|
id: showOverhangCheckbox
|
||||||
|
|
||||||
@ -363,7 +363,7 @@ UM.PreferencesPage
|
|||||||
|
|
||||||
text: catalog.i18nc("@info:tooltip", "Highlight missing or extraneous surfaces of the model using warning signs. The toolpaths will often be missing parts of the intended geometry.")
|
text: catalog.i18nc("@info:tooltip", "Highlight missing or extraneous surfaces of the model using warning signs. The toolpaths will often be missing parts of the intended geometry.")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: showXrayErrorCheckbox
|
id: showXrayErrorCheckbox
|
||||||
|
|
||||||
@ -380,7 +380,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height;
|
height: childrenRect.height;
|
||||||
text: catalog.i18nc("@info:tooltip", "Moves the camera so the model is in the center of the view when a model is selected")
|
text: catalog.i18nc("@info:tooltip", "Moves the camera so the model is in the center of the view when a model is selected")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: centerOnSelectCheckbox
|
id: centerOnSelectCheckbox
|
||||||
text: catalog.i18nc("@action:button","Center camera when item is selected");
|
text: catalog.i18nc("@action:button","Center camera when item is selected");
|
||||||
@ -395,7 +395,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height;
|
height: childrenRect.height;
|
||||||
text: catalog.i18nc("@info:tooltip", "Should the default zoom behavior of cura be inverted?")
|
text: catalog.i18nc("@info:tooltip", "Should the default zoom behavior of cura be inverted?")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: invertZoomCheckbox
|
id: invertZoomCheckbox
|
||||||
text: catalog.i18nc("@action:button", "Invert the direction of camera zoom.");
|
text: catalog.i18nc("@action:button", "Invert the direction of camera zoom.");
|
||||||
@ -416,7 +416,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height;
|
height: childrenRect.height;
|
||||||
text: zoomToMouseCheckbox.enabled ? catalog.i18nc("@info:tooltip", "Should zooming move in the direction of the mouse?") : catalog.i18nc("@info:tooltip", "Zooming towards the mouse is not supported in the orthographic perspective.")
|
text: zoomToMouseCheckbox.enabled ? catalog.i18nc("@info:tooltip", "Should zooming move in the direction of the mouse?") : catalog.i18nc("@info:tooltip", "Zooming towards the mouse is not supported in the orthographic perspective.")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: zoomToMouseCheckbox
|
id: zoomToMouseCheckbox
|
||||||
text: catalog.i18nc("@action:button", "Zoom toward mouse direction")
|
text: catalog.i18nc("@action:button", "Zoom toward mouse direction")
|
||||||
@ -447,7 +447,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
text: catalog.i18nc("@info:tooltip", "Should models on the platform be moved so that they no longer intersect?")
|
text: catalog.i18nc("@info:tooltip", "Should models on the platform be moved so that they no longer intersect?")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: pushFreeCheckbox
|
id: pushFreeCheckbox
|
||||||
text: catalog.i18nc("@option:check", "Ensure models are kept apart")
|
text: catalog.i18nc("@option:check", "Ensure models are kept apart")
|
||||||
@ -461,7 +461,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
text: catalog.i18nc("@info:tooltip", "Should models on the platform be moved down to touch the build plate?")
|
text: catalog.i18nc("@info:tooltip", "Should models on the platform be moved down to touch the build plate?")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: dropDownCheckbox
|
id: dropDownCheckbox
|
||||||
text: catalog.i18nc("@option:check", "Automatically drop models to the build plate")
|
text: catalog.i18nc("@option:check", "Automatically drop models to the build plate")
|
||||||
@ -478,7 +478,7 @@ UM.PreferencesPage
|
|||||||
|
|
||||||
text: catalog.i18nc("@info:tooltip","Show caution message in g-code reader.")
|
text: catalog.i18nc("@info:tooltip","Show caution message in g-code reader.")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: gcodeShowCautionCheckbox
|
id: gcodeShowCautionCheckbox
|
||||||
|
|
||||||
@ -495,7 +495,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
text: catalog.i18nc("@info:tooltip", "Should layer be forced into compatibility mode?")
|
text: catalog.i18nc("@info:tooltip", "Should layer be forced into compatibility mode?")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: forceLayerViewCompatibilityModeCheckbox
|
id: forceLayerViewCompatibilityModeCheckbox
|
||||||
text: catalog.i18nc("@option:check", "Force layer view compatibility mode (restart required)")
|
text: catalog.i18nc("@option:check", "Force layer view compatibility mode (restart required)")
|
||||||
@ -510,7 +510,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
text: catalog.i18nc("@info:tooltip", "Should Cura open at the location it was closed?")
|
text: catalog.i18nc("@info:tooltip", "Should Cura open at the location it was closed?")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: restoreWindowPositionCheckbox
|
id: restoreWindowPositionCheckbox
|
||||||
text: catalog.i18nc("@option:check", "Restore window position on start")
|
text: catalog.i18nc("@option:check", "Restore window position on start")
|
||||||
@ -528,7 +528,7 @@ UM.PreferencesPage
|
|||||||
{
|
{
|
||||||
spacing: 4 * screenScaleFactor
|
spacing: 4 * screenScaleFactor
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@window:text", "Camera rendering:")
|
text: catalog.i18nc("@window:text", "Camera rendering:")
|
||||||
}
|
}
|
||||||
@ -542,7 +542,7 @@ UM.PreferencesPage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ComboBox
|
Cura.ComboBox
|
||||||
{
|
{
|
||||||
id: cameraComboBox
|
id: cameraComboBox
|
||||||
|
|
||||||
@ -573,7 +573,7 @@ UM.PreferencesPage
|
|||||||
width: UM.Theme.getSize("default_margin").height
|
width: UM.Theme.getSize("default_margin").height
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
font.bold: true
|
font.bold: true
|
||||||
text: catalog.i18nc("@label","Opening and saving files")
|
text: catalog.i18nc("@label","Opening and saving files")
|
||||||
@ -585,7 +585,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
text: catalog.i18nc("@info:tooltip","Should opening files from the desktop or external applications open in the same instance of Cura?")
|
text: catalog.i18nc("@info:tooltip","Should opening files from the desktop or external applications open in the same instance of Cura?")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: singleInstanceCheckbox
|
id: singleInstanceCheckbox
|
||||||
text: catalog.i18nc("@option:check","Use a single instance of Cura")
|
text: catalog.i18nc("@option:check","Use a single instance of Cura")
|
||||||
@ -601,7 +601,7 @@ UM.PreferencesPage
|
|||||||
text: catalog.i18nc("@info:tooltip","Should the build plate be cleared before loading a new model in the single instance of Cura?")
|
text: catalog.i18nc("@info:tooltip","Should the build plate be cleared before loading a new model in the single instance of Cura?")
|
||||||
enabled: singleInstanceCheckbox.checked
|
enabled: singleInstanceCheckbox.checked
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: singleInstanceClearBeforeLoadCheckbox
|
id: singleInstanceClearBeforeLoadCheckbox
|
||||||
text: catalog.i18nc("@option:check","Clear buildplate before loading model into the single instance")
|
text: catalog.i18nc("@option:check","Clear buildplate before loading model into the single instance")
|
||||||
@ -616,7 +616,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
text: catalog.i18nc("@info:tooltip","Should models be scaled to the build volume if they are too large?")
|
text: catalog.i18nc("@info:tooltip","Should models be scaled to the build volume if they are too large?")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: scaleToFitCheckbox
|
id: scaleToFitCheckbox
|
||||||
text: catalog.i18nc("@option:check","Scale large models")
|
text: catalog.i18nc("@option:check","Scale large models")
|
||||||
@ -631,7 +631,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
text: catalog.i18nc("@info:tooltip","An model may appear extremely small if its unit is for example in meters rather than millimeters. Should these models be scaled up?")
|
text: catalog.i18nc("@info:tooltip","An model may appear extremely small if its unit is for example in meters rather than millimeters. Should these models be scaled up?")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: scaleTinyCheckbox
|
id: scaleTinyCheckbox
|
||||||
text: catalog.i18nc("@option:check","Scale extremely small models")
|
text: catalog.i18nc("@option:check","Scale extremely small models")
|
||||||
@ -646,7 +646,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
text: catalog.i18nc("@info:tooltip","Should models be selected after they are loaded?")
|
text: catalog.i18nc("@info:tooltip","Should models be selected after they are loaded?")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: selectModelsOnLoadCheckbox
|
id: selectModelsOnLoadCheckbox
|
||||||
text: catalog.i18nc("@option:check","Select models when loaded")
|
text: catalog.i18nc("@option:check","Select models when loaded")
|
||||||
@ -661,7 +661,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
text: catalog.i18nc("@info:tooltip", "Should a prefix based on the printer name be added to the print job name automatically?")
|
text: catalog.i18nc("@info:tooltip", "Should a prefix based on the printer name be added to the print job name automatically?")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: prefixJobNameCheckbox
|
id: prefixJobNameCheckbox
|
||||||
text: catalog.i18nc("@option:check", "Add machine prefix to job name")
|
text: catalog.i18nc("@option:check", "Add machine prefix to job name")
|
||||||
@ -676,7 +676,7 @@ UM.PreferencesPage
|
|||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
text: catalog.i18nc("@info:tooltip", "Should a summary be shown when saving a project file?")
|
text: catalog.i18nc("@info:tooltip", "Should a summary be shown when saving a project file?")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@option:check", "Show summary dialog when saving project")
|
text: catalog.i18nc("@option:check", "Show summary dialog when saving project")
|
||||||
checked: boolCheck(UM.Preferences.getValue("cura/dialog_on_project_save"))
|
checked: boolCheck(UM.Preferences.getValue("cura/dialog_on_project_save"))
|
||||||
@ -694,12 +694,12 @@ UM.PreferencesPage
|
|||||||
{
|
{
|
||||||
spacing: 4 * screenScaleFactor
|
spacing: 4 * screenScaleFactor
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@window:text", "Default behavior when opening a project file: ")
|
text: catalog.i18nc("@window:text", "Default behavior when opening a project file: ")
|
||||||
}
|
}
|
||||||
|
|
||||||
ComboBox
|
Cura.ComboBox
|
||||||
{
|
{
|
||||||
id: choiceOnOpenProjectDropDownButton
|
id: choiceOnOpenProjectDropDownButton
|
||||||
width: Math.round(250 * screenScaleFactor)
|
width: Math.round(250 * screenScaleFactor)
|
||||||
@ -755,18 +755,18 @@ UM.PreferencesPage
|
|||||||
{
|
{
|
||||||
spacing: 4 * screenScaleFactor
|
spacing: 4 * screenScaleFactor
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
font.bold: true
|
font.bold: true
|
||||||
text: catalog.i18nc("@label", "Profiles")
|
text: catalog.i18nc("@label", "Profiles")
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@window:text", "Default behavior for changed setting values when switching to a different profile: ")
|
text: catalog.i18nc("@window:text", "Default behavior for changed setting values when switching to a different profile: ")
|
||||||
}
|
}
|
||||||
|
|
||||||
ComboBox
|
Cura.ComboBox
|
||||||
{
|
{
|
||||||
id: choiceOnProfileOverrideDropDownButton
|
id: choiceOnProfileOverrideDropDownButton
|
||||||
width: Math.round(250 * screenScaleFactor)
|
width: Math.round(250 * screenScaleFactor)
|
||||||
@ -810,7 +810,7 @@ UM.PreferencesPage
|
|||||||
width: UM.Theme.getSize("default_margin").height
|
width: UM.Theme.getSize("default_margin").height
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
font.bold: true
|
font.bold: true
|
||||||
text: catalog.i18nc("@label", "Privacy")
|
text: catalog.i18nc("@label", "Privacy")
|
||||||
@ -821,7 +821,7 @@ UM.PreferencesPage
|
|||||||
height: visible ? childrenRect.height : 0
|
height: visible ? childrenRect.height : 0
|
||||||
text: catalog.i18nc("@info:tooltip", "Should anonymous data about your print be sent to Ultimaker? Note, no models, IP addresses or other personally identifiable information is sent or stored.")
|
text: catalog.i18nc("@info:tooltip", "Should anonymous data about your print be sent to Ultimaker? Note, no models, IP addresses or other personally identifiable information is sent or stored.")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: sendDataCheckbox
|
id: sendDataCheckbox
|
||||||
text: catalog.i18nc("@option:check","Send (anonymous) print information")
|
text: catalog.i18nc("@option:check","Send (anonymous) print information")
|
||||||
@ -848,7 +848,7 @@ UM.PreferencesPage
|
|||||||
width: UM.Theme.getSize("default_margin").height
|
width: UM.Theme.getSize("default_margin").height
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
UM.Label
|
||||||
{
|
{
|
||||||
font.bold: true
|
font.bold: true
|
||||||
text: catalog.i18nc("@label", "Updates")
|
text: catalog.i18nc("@label", "Updates")
|
||||||
@ -860,7 +860,7 @@ UM.PreferencesPage
|
|||||||
height: visible ? childrenRect.height : 0
|
height: visible ? childrenRect.height : 0
|
||||||
text: catalog.i18nc("@info:tooltip", "Should Cura check for updates when the program is started?")
|
text: catalog.i18nc("@info:tooltip", "Should Cura check for updates when the program is started?")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: checkUpdatesCheckbox
|
id: checkUpdatesCheckbox
|
||||||
text: catalog.i18nc("@option:check","Check for updates on start")
|
text: catalog.i18nc("@option:check","Check for updates on start")
|
||||||
@ -913,7 +913,7 @@ UM.PreferencesPage
|
|||||||
height: visible ? childrenRect.height : 0
|
height: visible ? childrenRect.height : 0
|
||||||
text: catalog.i18nc("@info:tooltip", "Should an automatic check for new plugins be done every time Cura is started? It is highly recommended that you do not disable this!")
|
text: catalog.i18nc("@info:tooltip", "Should an automatic check for new plugins be done every time Cura is started? It is highly recommended that you do not disable this!")
|
||||||
|
|
||||||
CheckBox
|
Cura.CheckBox
|
||||||
{
|
{
|
||||||
id: pluginNotificationsUpdateCheckbox
|
id: pluginNotificationsUpdateCheckbox
|
||||||
text: catalog.i18nc("@option:check", "Get notifications for plugin updates")
|
text: catalog.i18nc("@option:check", "Get notifications for plugin updates")
|
||||||
|
@ -335,16 +335,19 @@ Item
|
|||||||
folder: CuraApplication.getDefaultPath("dialog_material_path")
|
folder: CuraApplication.getDefaultPath("dialog_material_path")
|
||||||
onAccepted:
|
onAccepted:
|
||||||
{
|
{
|
||||||
var result = Cura.ContainerManager.importMaterialContainer(fileUrl);
|
const result = Cura.ContainerManager.importMaterialContainer(fileUrl);
|
||||||
|
|
||||||
|
const messageDialog = Qt.createQmlObject("import UM 1.5 as UM; UM.MessageDialog { onClosed: destroy() }", base);
|
||||||
|
messageDialog.standardButtons = Dialog.Ok;
|
||||||
messageDialog.title = catalog.i18nc("@title:window", "Import Material");
|
messageDialog.title = catalog.i18nc("@title:window", "Import Material");
|
||||||
if(result.status == "success")
|
switch (result.status)
|
||||||
{
|
{
|
||||||
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tag <filename>!", "Successfully imported material <filename>%1</filename>").arg(fileUrl);
|
case "success":
|
||||||
}
|
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tag <filename>!", "Successfully imported material <filename>%1</filename>").arg(fileUrl);
|
||||||
else
|
break;
|
||||||
{
|
default:
|
||||||
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tags <filename> or <message>!", "Could not import material <filename>%1</filename>: <message>%2</message>").arg(fileUrl).arg(result.message);
|
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tags <filename> or <message>!", "Could not import material <filename>%1</filename>: <message>%2</message>").arg(fileUrl).arg(result.message);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
messageDialog.open();
|
messageDialog.open();
|
||||||
CuraApplication.setDefaultPath("dialog_material_path", folder);
|
CuraApplication.setDefaultPath("dialog_material_path", folder);
|
||||||
@ -360,25 +363,23 @@ Item
|
|||||||
folder: CuraApplication.getDefaultPath("dialog_material_path")
|
folder: CuraApplication.getDefaultPath("dialog_material_path")
|
||||||
onAccepted:
|
onAccepted:
|
||||||
{
|
{
|
||||||
var result = Cura.ContainerManager.exportContainer(base.currentItem.root_material_id, selectedNameFilter, fileUrl);
|
const result = Cura.ContainerManager.exportContainer(base.currentItem.root_material_id, selectedNameFilter, fileUrl);
|
||||||
|
|
||||||
|
const messageDialog = Qt.createQmlObject("import UM 1.5 as UM; UM.MessageDialog { onClosed: destroy() }", base);
|
||||||
messageDialog.title = catalog.i18nc("@title:window", "Export Material");
|
messageDialog.title = catalog.i18nc("@title:window", "Export Material");
|
||||||
if(result.status == "error")
|
messageDialog.standardButtons = Dialog.Ok;
|
||||||
|
switch (result.status)
|
||||||
{
|
{
|
||||||
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tags <filename> and <message>!", "Failed to export material to <filename>%1</filename>: <message>%2</message>").arg(fileUrl).arg(result.message);
|
case "error":
|
||||||
messageDialog.open();
|
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tags <filename> and <message>!", "Failed to export material to <filename>%1</filename>: <message>%2</message>").arg(fileUrl).arg(result.message);
|
||||||
}
|
break;
|
||||||
else if(result.status == "success")
|
case "success":
|
||||||
{
|
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tag <filename>!", "Successfully exported material to <filename>%1</filename>").arg(result.path);
|
||||||
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tag <filename>!", "Successfully exported material to <filename>%1</filename>").arg(result.path);
|
break;
|
||||||
messageDialog.open();
|
|
||||||
}
|
}
|
||||||
|
messageDialog.open();
|
||||||
|
|
||||||
CuraApplication.setDefaultPath("dialog_material_path", folder);
|
CuraApplication.setDefaultPath("dialog_material_path", folder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.MessageDialog
|
|
||||||
{
|
|
||||||
id: messageDialog
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -148,32 +148,32 @@ Item
|
|||||||
}
|
}
|
||||||
|
|
||||||
Label { width: informationPage.columnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Display Name") }
|
Label { width: informationPage.columnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Display Name") }
|
||||||
ReadOnlyTextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
id: displayNameTextField;
|
id: displayNameTextField;
|
||||||
width: informationPage.columnWidth;
|
width: informationPage.columnWidth;
|
||||||
text: properties.name;
|
text: properties.name;
|
||||||
readOnly: !base.editingEnabled;
|
enabled: base.editingEnabled;
|
||||||
onEditingFinished: base.updateMaterialDisplayName(properties.name, text)
|
onEditingFinished: base.updateMaterialDisplayName(properties.name, text)
|
||||||
}
|
}
|
||||||
|
|
||||||
Label { width: informationPage.columnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Brand") }
|
Label { width: informationPage.columnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Brand") }
|
||||||
ReadOnlyTextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
id: brandTextField;
|
id: brandTextField
|
||||||
width: informationPage.columnWidth;
|
width: informationPage.columnWidth
|
||||||
text: properties.brand;
|
text: properties.brand
|
||||||
readOnly: !base.editingEnabled;
|
enabled: base.editingEnabled
|
||||||
onEditingFinished: base.updateMaterialBrand(properties.brand, text)
|
onEditingFinished: base.updateMaterialBrand(properties.brand, text)
|
||||||
}
|
}
|
||||||
|
|
||||||
Label { width: informationPage.columnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Material Type") }
|
Label { width: informationPage.columnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Material Type") }
|
||||||
ReadOnlyTextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
id: materialTypeField;
|
id: materialTypeField
|
||||||
width: informationPage.columnWidth;
|
width: informationPage.columnWidth
|
||||||
text: properties.material;
|
text: properties.material
|
||||||
readOnly: !base.editingEnabled;
|
enabled: base.editingEnabled
|
||||||
onEditingFinished: base.updateMaterialType(properties.material, text)
|
onEditingFinished: base.updateMaterialType(properties.material, text)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -206,12 +206,12 @@ Item
|
|||||||
}
|
}
|
||||||
|
|
||||||
// pretty color name text field
|
// pretty color name text field
|
||||||
ReadOnlyTextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
id: colorLabel;
|
id: colorLabel;
|
||||||
width: parent.width - colorSelector.width - parent.spacing
|
width: parent.width - colorSelector.width - parent.spacing
|
||||||
text: properties.color_name;
|
text: properties.color_name;
|
||||||
readOnly: !base.editingEnabled
|
enabled: base.editingEnabled
|
||||||
onEditingFinished: base.setMetaDataEntry("color_name", properties.color_name, text)
|
onEditingFinished: base.setMetaDataEntry("color_name", properties.color_name, text)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -363,10 +363,11 @@ Item
|
|||||||
ReadOnlyTextArea
|
ReadOnlyTextArea
|
||||||
{
|
{
|
||||||
text: properties.description;
|
text: properties.description;
|
||||||
width: 2 * informationPage.columnWidth
|
width: informationPage.columnWidth * 2
|
||||||
|
height: 0.75 * informationPage.columnWidth
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
readOnly: !base.editingEnabled;
|
readOnly: !base.editingEnabled
|
||||||
|
|
||||||
onEditingFinished: base.setMetaDataEntry("description", properties.description, text)
|
onEditingFinished: base.setMetaDataEntry("description", properties.description, text)
|
||||||
}
|
}
|
||||||
@ -375,11 +376,11 @@ Item
|
|||||||
|
|
||||||
ReadOnlyTextArea
|
ReadOnlyTextArea
|
||||||
{
|
{
|
||||||
text: properties.adhesion_info;
|
text: properties.adhesion_info
|
||||||
width: 2 * informationPage.columnWidth
|
width: 2 * informationPage.columnWidth
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
height: 0.75 * informationPage.columnWidth
|
||||||
readOnly: !base.editingEnabled;
|
readOnly: !base.editingEnabled
|
||||||
|
|
||||||
onEditingFinished: base.setMetaDataEntry("adhesion_info", properties.adhesion_info, text)
|
onEditingFinished: base.setMetaDataEntry("adhesion_info", properties.adhesion_info, text)
|
||||||
}
|
}
|
||||||
|
@ -2,9 +2,10 @@
|
|||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.1
|
import QtQuick 2.1
|
||||||
import QtQuick.Controls 1.1
|
import QtQuick.Controls 2.15
|
||||||
|
import UM 1.5 as UM
|
||||||
|
|
||||||
Item
|
ScrollView
|
||||||
{
|
{
|
||||||
id: base
|
id: base
|
||||||
|
|
||||||
@ -15,27 +16,25 @@ Item
|
|||||||
|
|
||||||
property bool readOnly: false
|
property bool readOnly: false
|
||||||
|
|
||||||
width: textArea.width
|
|
||||||
height: textArea.height
|
|
||||||
|
|
||||||
TextArea
|
TextArea
|
||||||
{
|
{
|
||||||
id: textArea
|
id: textArea
|
||||||
|
|
||||||
enabled: !base.readOnly
|
enabled: !base.readOnly
|
||||||
opacity: base.readOnly ? 0.5 : 1.0
|
selectByMouse: true
|
||||||
|
|
||||||
anchors.fill: parent
|
background: Rectangle
|
||||||
|
|
||||||
Keys.onReturnPressed:
|
|
||||||
{
|
{
|
||||||
base.editingFinished()
|
radius: UM.Theme.getSize("setting_control_radius").width
|
||||||
|
color: textArea.enabled ? UM.Theme.getColor("setting_control") : UM.Theme.getColor("setting_control_disabled")
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onEnterPressed:
|
color: UM.Theme.getColor("text")
|
||||||
{
|
font: UM.Theme.getFont("default")
|
||||||
base.editingFinished()
|
|
||||||
}
|
Keys.onReturnPressed: base.editingFinished()
|
||||||
|
|
||||||
|
Keys.onEnterPressed: base.editingFinished()
|
||||||
|
|
||||||
onActiveFocusChanged:
|
onActiveFocusChanged:
|
||||||
{
|
{
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
// Copyright (c) 2016 Ultimaker B.V.
|
|
||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
|
||||||
// Different than the name suggests, it is not always read-only.
|
|
||||||
|
|
||||||
import QtQuick 2.1
|
|
||||||
import QtQuick.Controls 1.1
|
|
||||||
|
|
||||||
Item
|
|
||||||
{
|
|
||||||
id: base
|
|
||||||
|
|
||||||
property alias text: textField.text
|
|
||||||
|
|
||||||
signal editingFinished();
|
|
||||||
|
|
||||||
property bool readOnly: false
|
|
||||||
|
|
||||||
width: textField.width
|
|
||||||
height: textField.height
|
|
||||||
|
|
||||||
TextField
|
|
||||||
{
|
|
||||||
id: textField
|
|
||||||
|
|
||||||
enabled: !base.readOnly
|
|
||||||
opacity: base.readOnly ? 0.5 : 1.0
|
|
||||||
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
onEditingFinished: base.editingFinished()
|
|
||||||
Keys.onEnterPressed: base.editingFinished()
|
|
||||||
Keys.onReturnPressed: base.editingFinished()
|
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
visible: base.readOnly
|
|
||||||
text: textField.text
|
|
||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.leftMargin: textField.__panel ? textField.__panel.leftMargin : 0
|
|
||||||
|
|
||||||
color: palette.buttonText
|
|
||||||
}
|
|
||||||
|
|
||||||
SystemPalette { id: palette }
|
|
||||||
}
|
|
@ -17,8 +17,6 @@ TextField
|
|||||||
|
|
||||||
property alias leftIcon: iconLeft.source
|
property alias leftIcon: iconLeft.source
|
||||||
|
|
||||||
UM.I18nCatalog { id: catalog; name: "cura" }
|
|
||||||
|
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
|
@ -9,57 +9,6 @@ import UM 1.1 as UM
|
|||||||
|
|
||||||
QtObject
|
QtObject
|
||||||
{
|
{
|
||||||
property Component progressbar: Component
|
|
||||||
{
|
|
||||||
ProgressBarStyle
|
|
||||||
{
|
|
||||||
background: Rectangle
|
|
||||||
{
|
|
||||||
implicitWidth: UM.Theme.getSize("message").width - (UM.Theme.getSize("default_margin").width * 2)
|
|
||||||
implicitHeight: UM.Theme.getSize("progressbar").height
|
|
||||||
color: control.hasOwnProperty("backgroundColor") ? control.backgroundColor : UM.Theme.getColor("progressbar_background")
|
|
||||||
radius: UM.Theme.getSize("progressbar_radius").width
|
|
||||||
}
|
|
||||||
progress: Rectangle
|
|
||||||
{
|
|
||||||
color:
|
|
||||||
{
|
|
||||||
if(control.indeterminate)
|
|
||||||
{
|
|
||||||
return "transparent";
|
|
||||||
}
|
|
||||||
else if(control.hasOwnProperty("controlColor"))
|
|
||||||
{
|
|
||||||
return control.controlColor;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return UM.Theme.getColor("progressbar_control");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
radius: UM.Theme.getSize("progressbar_radius").width
|
|
||||||
Rectangle
|
|
||||||
{
|
|
||||||
radius: UM.Theme.getSize("progressbar_radius").width
|
|
||||||
color: control.hasOwnProperty("controlColor") ? control.controlColor : UM.Theme.getColor("progressbar_control")
|
|
||||||
width: UM.Theme.getSize("progressbar_control").width
|
|
||||||
height: UM.Theme.getSize("progressbar_control").height
|
|
||||||
visible: control.indeterminate
|
|
||||||
|
|
||||||
SequentialAnimation on x
|
|
||||||
{
|
|
||||||
id: xAnim
|
|
||||||
property int animEndPoint: UM.Theme.getSize("message").width - Math.round((UM.Theme.getSize("default_margin").width * 2.5)) - UM.Theme.getSize("progressbar_control").width
|
|
||||||
running: control.indeterminate && control.visible
|
|
||||||
loops: Animation.Infinite
|
|
||||||
NumberAnimation { from: 0; to: xAnim.animEndPoint; duration: 2000;}
|
|
||||||
NumberAnimation { from: xAnim.animEndPoint; to: 0; duration: 2000;}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
property Component scrollview: Component
|
property Component scrollview: Component
|
||||||
{
|
{
|
||||||
ScrollViewStyle
|
ScrollViewStyle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user