mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Changed orientation button location, adjusted call functins
CURA-4527
This commit is contained in:
parent
fb8bde6f76
commit
7722e438c9
3 changed files with 77 additions and 88 deletions
|
@ -403,89 +403,6 @@ UM.MainWindow
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
//View orientation Item
|
||||
Item
|
||||
{
|
||||
height: 90
|
||||
width: 90
|
||||
|
||||
anchors.top: topbar.bottom;
|
||||
anchors.topMargin: - UM.Theme.getSize("default_margin").height * 2;
|
||||
anchors.right: sidebar.left
|
||||
anchors.rightMargin: 250
|
||||
|
||||
//Rotate_top
|
||||
Button
|
||||
{
|
||||
id: orientation_rotate_top;
|
||||
iconSource: UM.Theme.getIcon("arrow_top")
|
||||
style: UM.Theme.styles.orientation_button
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 30
|
||||
|
||||
|
||||
}
|
||||
|
||||
//Rotate_right
|
||||
Button
|
||||
{
|
||||
id: orientation_rotate_right;
|
||||
iconSource: UM.Theme.getIcon("arrow_right")
|
||||
style: UM.Theme.styles.orientation_button
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: 30
|
||||
anchors.right: parent.right
|
||||
onClicked:{
|
||||
UM.Controller.rotateView("x", -90);
|
||||
}
|
||||
}
|
||||
|
||||
//Rotate_bottom
|
||||
Button
|
||||
{
|
||||
id: orientation_rotate_bottom;
|
||||
iconSource: UM.Theme.getIcon("arrow_bottom")
|
||||
style: UM.Theme.styles.orientation_button
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 30
|
||||
}
|
||||
|
||||
//Rotate_left
|
||||
Button
|
||||
{
|
||||
id: orientation_rotate_left;
|
||||
iconSource: UM.Theme.getIcon("arrow_left")
|
||||
style: UM.Theme.styles.orientation_button
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: 30
|
||||
anchors.left: parent.left
|
||||
onClicked:{
|
||||
UM.Controller.rotateView("x", 90);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Rotate_front
|
||||
Button
|
||||
{
|
||||
id: orientation_rotate_front;
|
||||
iconSource: UM.Theme.getIcon("category_machine")
|
||||
style: UM.Theme.styles.orientation_button
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: 30
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 30
|
||||
|
||||
onClicked:{
|
||||
UM.Controller.rotateView("home" , 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loader
|
||||
{
|
||||
sourceComponent: Cura.MachineManager.printerOutputDevices.length > 0 ? Cura.MachineManager.printerOutputDevices[0].monitorItem: null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue