mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-20 01:29:04 +08:00
Merge branch 'master' of github.com:Ultimaker/cura
This commit is contained in:
commit
f7ce4cc78a
@ -1,3 +1,12 @@
|
|||||||
|
[3.0.4]
|
||||||
|
*Bug fixes
|
||||||
|
- Fixed OpenGL issue that prevent Cura from starting.
|
||||||
|
|
||||||
|
*License agreement on the first startup has been added
|
||||||
|
|
||||||
|
[3.0.3]
|
||||||
|
*Bug fixes for the MakePrintable plugin.
|
||||||
|
|
||||||
[3.0.0]
|
[3.0.0]
|
||||||
*Faster start-up
|
*Faster start-up
|
||||||
Start-up speed has been cut in half compared to the previous version.
|
Start-up speed has been cut in half compared to the previous version.
|
||||||
|
@ -48,7 +48,7 @@ UM.PointingRectangle {
|
|||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
leftMargin: UM.Theme.getSize("default_margin").width / 2
|
leftMargin: Math.floor(UM.Theme.getSize("default_margin").width / 2)
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ UM.PointingRectangle {
|
|||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.right
|
left: parent.right
|
||||||
leftMargin: UM.Theme.getSize("default_margin").width / 2
|
leftMargin: Math.floor(UM.Theme.getSize("default_margin").width / 2)
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,8 +83,7 @@ Component
|
|||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
//TODO; It's probably nicer to do this with a dynamic data model instead of hardcoding this.
|
|
||||||
//But you know the drill; time constraints don't result in elegant code.
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
@ -114,7 +114,7 @@ Cura.MachineAction
|
|||||||
|
|
||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
width: (parent.width * 0.5) | 0
|
width: Math.floor(parent.width * 0.5)
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
|
|
||||||
ScrollView
|
ScrollView
|
||||||
@ -191,8 +191,6 @@ Cura.MachineAction
|
|||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
//: Tips label
|
|
||||||
//TODO: get actual link from webteam
|
|
||||||
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/troubleshooting");
|
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/troubleshooting");
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
onLinkActivated: Qt.openUrlExternally(link)
|
||||||
}
|
}
|
||||||
@ -200,7 +198,7 @@ Cura.MachineAction
|
|||||||
}
|
}
|
||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
width: (parent.width * 0.5) | 0
|
width: Math.floor(parent.width * 0.5)
|
||||||
visible: base.selectedPrinter ? true : false
|
visible: base.selectedPrinter ? true : false
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
Label
|
Label
|
||||||
@ -218,13 +216,13 @@ Cura.MachineAction
|
|||||||
columns: 2
|
columns: 2
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
width: (parent.width * 0.5) | 0
|
width: Math.floor(parent.width * 0.5)
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
text: catalog.i18nc("@label", "Type")
|
text: catalog.i18nc("@label", "Type")
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
width: (parent.width * 0.5) | 0
|
width: Math.floor(parent.width * 0.5)
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
text:
|
text:
|
||||||
{
|
{
|
||||||
@ -249,25 +247,25 @@ Cura.MachineAction
|
|||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
width: (parent.width * 0.5) | 0
|
width: Math.floor(parent.width * 0.5)
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
text: catalog.i18nc("@label", "Firmware version")
|
text: catalog.i18nc("@label", "Firmware version")
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
width: (parent.width * 0.5) | 0
|
width: Math.floor(parent.width * 0.5)
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
text: base.selectedPrinter ? base.selectedPrinter.firmwareVersion : ""
|
text: base.selectedPrinter ? base.selectedPrinter.firmwareVersion : ""
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
width: (parent.width * 0.5) | 0
|
width: Math.floor(parent.width * 0.5)
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
text: catalog.i18nc("@label", "Address")
|
text: catalog.i18nc("@label", "Address")
|
||||||
}
|
}
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
width: (parent.width * 0.5) | 0
|
width: Math.floor(parent.width * 0.5)
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
text: base.selectedPrinter ? base.selectedPrinter.ipAddress : ""
|
text: base.selectedPrinter ? base.selectedPrinter.ipAddress : ""
|
||||||
}
|
}
|
||||||
|
@ -17,10 +17,10 @@ Component
|
|||||||
}
|
}
|
||||||
return (sourceSize.width / sourceSize.height) > (maximumWidth / maximumHeight);
|
return (sourceSize.width / sourceSize.height) > (maximumWidth / maximumHeight);
|
||||||
}
|
}
|
||||||
property real _width: Math.min(maximumWidth, sourceSize.width)
|
property real _width: Math.floor(Math.min(maximumWidth, sourceSize.width))
|
||||||
property real _height: Math.min(maximumHeight, sourceSize.height)
|
property real _height: Math.floor(Math.min(maximumHeight, sourceSize.height))
|
||||||
width: proportionalHeight ? _width : sourceSize.width * _height / sourceSize.height
|
width: proportionalHeight ? _width : Math.floor(sourceSize.width * _height / sourceSize.height)
|
||||||
height: !proportionalHeight ? _height : sourceSize.height * _width / sourceSize.width
|
height: !proportionalHeight ? _height : Math.floor(sourceSize.height * _width / sourceSize.width)
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
onVisibleChanged:
|
onVisibleChanged:
|
||||||
|
@ -10,7 +10,7 @@ Item
|
|||||||
id: extruderInfo
|
id: extruderInfo
|
||||||
property var printCoreConfiguration
|
property var printCoreConfiguration
|
||||||
|
|
||||||
width: parent.width / 2
|
width: Math.floor(parent.width / 2)
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
|
@ -86,7 +86,7 @@ Rectangle
|
|||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
width: parent.width / 3
|
width: Math.floor(parent.width / 3)
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
Label // Print job name
|
Label // Print job name
|
||||||
@ -131,7 +131,7 @@ Rectangle
|
|||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
width: parent.width / 3 * 2
|
width: Math.floor(parent.width / 3 * 2)
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
Label // Friendly machine name
|
Label // Friendly machine name
|
||||||
@ -139,7 +139,7 @@ Rectangle
|
|||||||
id: printerNameLabel
|
id: printerNameLabel
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
width: parent.width / 2 - UM.Theme.getSize("default_margin").width - showCameraIcon.width
|
width: Math.floor(parent.width / 2 - UM.Theme.getSize("default_margin").width - showCameraIcon.width)
|
||||||
text: printer.friendly_name
|
text: printer.friendly_name
|
||||||
font: UM.Theme.getFont("default_bold")
|
font: UM.Theme.getFont("default_bold")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
@ -149,7 +149,7 @@ Rectangle
|
|||||||
{
|
{
|
||||||
id: printerTypeLabel
|
id: printerTypeLabel
|
||||||
anchors.top: printerNameLabel.bottom
|
anchors.top: printerNameLabel.bottom
|
||||||
width: parent.width / 2 - UM.Theme.getSize("default_margin").width
|
width: Math.floor(parent.width / 2 - UM.Theme.getSize("default_margin").width)
|
||||||
text: printer.machine_variant
|
text: printer.machine_variant
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
@ -183,7 +183,7 @@ Rectangle
|
|||||||
id: extruderInfo
|
id: extruderInfo
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
|
|
||||||
width: parent.width / 2 - UM.Theme.getSize("default_margin").width
|
width: Math.floor(parent.width / 2 - UM.Theme.getSize("default_margin").width)
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
|
|
||||||
spacing: UM.Theme.getSize("default_margin").width
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
@ -217,7 +217,7 @@ Rectangle
|
|||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
height: showExtended ? parent.height: printProgressTitleBar.height
|
height: showExtended ? parent.height: printProgressTitleBar.height
|
||||||
width: parent.width / 2 - UM.Theme.getSize("default_margin").width
|
width: Math.floor(parent.width / 2 - UM.Theme.getSize("default_margin").width)
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
border.width: UM.Theme.getSize("default_lining").width
|
||||||
border.color: lineColor
|
border.color: lineColor
|
||||||
radius: cornerRadius
|
radius: cornerRadius
|
||||||
|
@ -57,7 +57,7 @@ Item
|
|||||||
{
|
{
|
||||||
id: cameraImage
|
id: cameraImage
|
||||||
width: Math.min(sourceSize.width === 0 ? 800 * screenScaleFactor : sourceSize.width, maximumWidth)
|
width: Math.min(sourceSize.width === 0 ? 800 * screenScaleFactor : sourceSize.width, maximumWidth)
|
||||||
height: (sourceSize.height === 0 ? 600 * screenScaleFactor : sourceSize.height) * width / sourceSize.width
|
height: Math.floor((sourceSize.height === 0 ? 600 * screenScaleFactor : sourceSize.height) * width / sourceSize.width)
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
z: 1
|
z: 1
|
||||||
|
@ -63,11 +63,11 @@ UM.Dialog
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.leftMargin: 20 * screenScaleFactor
|
anchors.leftMargin: 20 * screenScaleFactor
|
||||||
anchors.rightMargin: 20 * screenScaleFactor
|
anchors.rightMargin: 20 * screenScaleFactor
|
||||||
anchors.bottomMargin: 20 * screenScaleFactor
|
anchors.bottomMargin: 10 * screenScaleFactor
|
||||||
spacing: 10 * screenScaleFactor
|
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
|
id: questionText
|
||||||
text: catalog.i18nc("@text:window", "This is a Cura project file. Would you like to open it as a project or import the models from it?")
|
text: catalog.i18nc("@text:window", "This is a Cura project file. Would you like to open it as a project or import the models from it?")
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
@ -78,15 +78,28 @@ UM.Dialog
|
|||||||
CheckBox
|
CheckBox
|
||||||
{
|
{
|
||||||
id: rememberChoiceCheckBox
|
id: rememberChoiceCheckBox
|
||||||
text: catalog.i18nc("@text:window", "Remember my choice")
|
anchors.bottom: buttonBar.top
|
||||||
|
anchors.bottomMargin: UM.Theme.getSize("default_margin").heigth
|
||||||
checked: UM.Preferences.getValue("cura/choice_on_open_project") != "always_ask"
|
checked: UM.Preferences.getValue("cura/choice_on_open_project") != "always_ask"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
id: checkboxTextWithNiceRendering
|
||||||
|
anchors.left: rememberChoiceCheckBox.right
|
||||||
|
anchors.bottom: rememberChoiceCheckBox.bottom
|
||||||
|
font: UM.Theme.getFont("default")
|
||||||
|
text: catalog.i18nc("@text:window", "Remember my choice")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
// Buttons
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
|
id: buttonBar
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
|
|
||||||
Button
|
Button
|
||||||
|
@ -95,7 +95,7 @@ Item {
|
|||||||
{
|
{
|
||||||
id: printJobTextfield
|
id: printJobTextfield
|
||||||
anchors.right: printJobPencilIcon.left
|
anchors.right: printJobPencilIcon.left
|
||||||
anchors.rightMargin: UM.Theme.getSize("default_margin").width/2
|
anchors.rightMargin: Math.floor(UM.Theme.getSize("default_margin").width/2)
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user