Add a link to the documentation to write start/end GCode

CURA-12093
This commit is contained in:
Erwan MATHIEU 2024-09-06 12:20:27 +02:00
parent 5bff7067b0
commit 370c8e49c3
2 changed files with 29 additions and 3 deletions

View file

@ -182,7 +182,7 @@ Item
Cura.GcodeTextArea // "Extruder Start G-code" Cura.GcodeTextArea // "Extruder Start G-code"
{ {
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: buttonLearnMore.top
anchors.bottomMargin: UM.Theme.getSize("default_margin").height anchors.bottomMargin: UM.Theme.getSize("default_margin").height
anchors.left: parent.left anchors.left: parent.left
width: base.columnWidth - UM.Theme.getSize("default_margin").width width: base.columnWidth - UM.Theme.getSize("default_margin").width
@ -196,7 +196,7 @@ Item
Cura.GcodeTextArea // "Extruder End G-code" Cura.GcodeTextArea // "Extruder End G-code"
{ {
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: buttonLearnMore.top
anchors.bottomMargin: UM.Theme.getSize("default_margin").height anchors.bottomMargin: UM.Theme.getSize("default_margin").height
anchors.right: parent.right anchors.right: parent.right
width: base.columnWidth - UM.Theme.getSize("default_margin").width width: base.columnWidth - UM.Theme.getSize("default_margin").width
@ -206,5 +206,17 @@ Item
settingKey: "machine_extruder_end_code" settingKey: "machine_extruder_end_code"
settingStoreIndex: propertyStoreIndex settingStoreIndex: propertyStoreIndex
} }
Cura.TertiaryButton
{
id: buttonLearnMore
text: catalog.i18nc("@button", "Learn more")
iconSource: UM.Theme.getIcon("LinkExternal")
isIconOnRightSide: true
onClicked: Qt.openUrlExternally("https://github.com/Ultimaker/Cura/wiki/Start-End-G%E2%80%90Code")
anchors.bottom: parent.bottom
anchors.right: parent.right
}
} }
} }

View file

@ -376,7 +376,7 @@ Item
anchors anchors
{ {
top: upperBlock.bottom top: upperBlock.bottom
bottom: parent.bottom bottom: buttonLearnMore.top
left: parent.left left: parent.left
right: parent.right right: parent.right
margins: UM.Theme.getSize("default_margin").width margins: UM.Theme.getSize("default_margin").width
@ -403,5 +403,19 @@ Item
settingKey: "machine_end_gcode" settingKey: "machine_end_gcode"
settingStoreIndex: propertyStoreIndex settingStoreIndex: propertyStoreIndex
} }
}
Cura.TertiaryButton
{
id: buttonLearnMore
text: catalog.i18nc("@button", "Learn more")
iconSource: UM.Theme.getIcon("LinkExternal")
isIconOnRightSide: true
onClicked: Qt.openUrlExternally("https://github.com/Ultimaker/Cura/wiki/Start-End-G%E2%80%90Code")
anchors.bottom: parent.bottom
anchors.right: parent.right
anchors.margins: UM.Theme.getSize("default_margin").width
} }
} }