mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
Clean up the manual printer control QML
The QML could be simplified quite a bit to get the same results. CURA-8684
This commit is contained in:
parent
02c517a841
commit
b8e4baba0e
1 changed files with 27 additions and 60 deletions
|
@ -95,80 +95,55 @@ Item
|
||||||
{
|
{
|
||||||
Layout.row: 1
|
Layout.row: 1
|
||||||
Layout.column: 1
|
Layout.column: 1
|
||||||
Layout.preferredWidth: width
|
Layout.preferredWidth: UM.Theme.getSize("setting_control").height
|
||||||
Layout.preferredHeight: height
|
Layout.preferredHeight: UM.Theme.getSize("setting_control").height
|
||||||
iconSource: UM.Theme.getIcon("ChevronSingleUp");
|
iconSource: UM.Theme.getIcon("ChevronSingleUp")
|
||||||
width: height
|
|
||||||
height: UM.Theme.getSize("setting_control").height
|
|
||||||
|
|
||||||
onClicked:
|
onClicked: printerModel.moveHead(0, distancesRow.currentDistance, 0)
|
||||||
{
|
|
||||||
printerModel.moveHead(0, distancesRow.currentDistance, 0)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
Layout.row: 2
|
Layout.row: 2
|
||||||
Layout.column: 0
|
Layout.column: 0
|
||||||
Layout.preferredWidth: width
|
Layout.preferredWidth: UM.Theme.getSize("setting_control").height
|
||||||
Layout.preferredHeight: height
|
Layout.preferredHeight: UM.Theme.getSize("setting_control").height
|
||||||
iconSource: UM.Theme.getIcon("ChevronSingleLeft");
|
iconSource: UM.Theme.getIcon("ChevronSingleLeft")
|
||||||
width: height
|
|
||||||
height: UM.Theme.getSize("setting_control").height
|
|
||||||
|
|
||||||
onClicked:
|
onClicked: printerModel.moveHead(-distancesRow.currentDistance, 0, 0)
|
||||||
{
|
|
||||||
printerModel.moveHead(-distancesRow.currentDistance, 0, 0)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
Layout.row: 2
|
Layout.row: 2
|
||||||
Layout.column: 2
|
Layout.column: 2
|
||||||
Layout.preferredWidth: width
|
Layout.preferredWidth: UM.Theme.getSize("setting_control").height
|
||||||
Layout.preferredHeight: height
|
Layout.preferredHeight: UM.Theme.getSize("setting_control").height
|
||||||
iconSource: UM.Theme.getIcon("ChevronSingleRight");
|
iconSource: UM.Theme.getIcon("ChevronSingleRight")
|
||||||
width: height
|
|
||||||
height: UM.Theme.getSize("setting_control").height
|
|
||||||
|
|
||||||
onClicked:
|
onClicked: printerModel.moveHead(distancesRow.currentDistance, 0, 0)
|
||||||
{
|
|
||||||
printerModel.moveHead(distancesRow.currentDistance, 0, 0)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
Layout.row: 3
|
Layout.row: 3
|
||||||
Layout.column: 1
|
Layout.column: 1
|
||||||
Layout.preferredWidth: width
|
Layout.preferredWidth: UM.Theme.getSize("setting_control").height
|
||||||
Layout.preferredHeight: height
|
Layout.preferredHeight: UM.Theme.getSize("setting_control").height
|
||||||
iconSource: UM.Theme.getIcon("ChevronSingleDown");
|
iconSource: UM.Theme.getIcon("ChevronSingleDown")
|
||||||
width: height
|
|
||||||
height: UM.Theme.getSize("setting_control").height
|
|
||||||
|
|
||||||
onClicked:
|
onClicked: printerModel.moveHead(0, -distancesRow.currentDistance, 0)
|
||||||
{
|
|
||||||
printerModel.moveHead(0, -distancesRow.currentDistance, 0)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
Layout.row: 2
|
Layout.row: 2
|
||||||
Layout.column: 1
|
Layout.column: 1
|
||||||
Layout.preferredWidth: width
|
Layout.preferredWidth: UM.Theme.getSize("setting_control").height
|
||||||
Layout.preferredHeight: height
|
Layout.preferredHeight: UM.Theme.getSize("setting_control").height
|
||||||
iconSource: UM.Theme.getIcon("House");
|
iconSource: UM.Theme.getIcon("House")
|
||||||
width: height
|
|
||||||
height: UM.Theme.getSize("setting_control").height
|
|
||||||
|
|
||||||
onClicked:
|
onClicked: printerModel.homeHead()
|
||||||
{
|
|
||||||
printerModel.homeHead()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,38 +163,30 @@ Item
|
||||||
|
|
||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
iconSource: UM.Theme.getIcon("ChevronSingleUp");
|
iconSource: UM.Theme.getIcon("ChevronSingleUp")
|
||||||
width: height
|
width: height
|
||||||
height: UM.Theme.getSize("setting_control").height
|
height: UM.Theme.getSize("setting_control").height
|
||||||
|
|
||||||
onClicked:
|
onClicked: printerModel.moveHead(0, 0, distancesRow.currentDistance)
|
||||||
{
|
|
||||||
printerModel.moveHead(0, 0, distancesRow.currentDistance)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
iconSource: UM.Theme.getIcon("House");
|
iconSource: UM.Theme.getIcon("House")
|
||||||
width: height
|
width: height
|
||||||
height: UM.Theme.getSize("setting_control").height
|
height: UM.Theme.getSize("setting_control").height
|
||||||
|
|
||||||
onClicked:
|
onClicked: printerModel.homeBed()
|
||||||
{
|
|
||||||
printerModel.homeBed()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
iconSource: UM.Theme.getIcon("ChevronSingleDown");
|
iconSource: UM.Theme.getIcon("ChevronSingleDown")
|
||||||
width: height
|
width: height
|
||||||
height: UM.Theme.getSize("setting_control").height
|
height: UM.Theme.getSize("setting_control").height
|
||||||
|
|
||||||
onClicked:
|
onClicked: printerModel.moveHead(0, 0, -distancesRow.currentDistance)
|
||||||
{
|
|
||||||
printerModel.moveHead(0, 0, -distancesRow.currentDistance)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue