1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
// Copyright (c) 2015 Ultimaker B.V.
// Uranium is released under the terms of the LGPLv3 or higher.
import QtQuick 2.2
import QtQuick.Controls 1.2
import UM 1.1 as UM
Item
{
width: childrenRect.width
height: childrenRect.height
UM.I18nCatalog { id: catalog; name:"uranium"}
Button
{
id: resetRotationButton
anchors.left: parent.left;
//: Reset Rotation tool button
text: catalog.i18nc("@action:button","Reset")
iconSource: UM.Theme.getIcon("rotate_reset");
property bool needBorder: true
style: UM.Theme.styles.tool_button;
z: 1
onClicked: UM.ActiveTool.triggerAction("resetRotation");
}
Button
{
id: layFlatButton
anchors.left: resetRotationButton.right;
anchors.leftMargin: UM.Theme.getSize("default_margin").width;
//: Lay Flat tool button
text: catalog.i18nc("@action:button","Lay flat")
iconSource: UM.Theme.getIcon("rotate_layflat");
property bool needBorder: true
style: UM.Theme.styles.tool_button;
onClicked: UM.ActiveTool.triggerAction("layFlat");
}
CheckBox
{
anchors.left: parent.left;
anchors.top: resetRotationButton.bottom;
anchors.topMargin: UM.Theme.getSize("default_margin").width;
//: Snap Rotation checkbox
text: catalog.i18nc("@action:checkbox","Snap Rotation");
style: UM.Theme.styles.checkbox;
checked: UM.ActiveTool.properties.getValue("RotationSnap");
onClicked: UM.ActiveTool.setProperty("RotationSnap", checked);
}
}
|