Made changed from code review and updated MeshReader plugins to support changes made to Uranium branch MeshReaderDialog. This branch now must be paired with that Uranium branch.

This commit is contained in:
Kurt Loeffler 2015-12-22 21:40:46 -08:00 committed by Ghostkeeper
parent f5939df085
commit 447fdc8fbc
5 changed files with 161 additions and 147 deletions

View file

@ -31,36 +31,36 @@ UM.Dialog
columns: 2
Text {
text: catalog.i18nc("@action:label","Size")
text: catalog.i18nc("@action:label","Size (mm)")
Layout.fillWidth:true
}
TextField {
id: size
focus: true
validator: DoubleValidator {notation: DoubleValidator.StandardNotation; bottom: 1; top: 500;}
text: qsTr("120")
text: "120"
onTextChanged: { manager.onSizeChanged(text) }
}
Text {
text: catalog.i18nc("@action:label","Base Height")
text: catalog.i18nc("@action:label","Base Height (mm)")
Layout.fillWidth:true
}
TextField {
id: base_height
validator: DoubleValidator {notation: DoubleValidator.StandardNotation; bottom: 0; top: 500;}
text: qsTr("2")
text: "2"
onTextChanged: { manager.onBaseHeightChanged(text) }
}
Text {
text: catalog.i18nc("@action:label","Peak Height")
text: catalog.i18nc("@action:label","Peak Height (mm)")
Layout.fillWidth:true
}
TextField {
id: peak_height
validator: DoubleValidator {notation: DoubleValidator.StandardNotation; bottom: 0; top: 500;}
text: qsTr("12")
text: "12"
onTextChanged: { manager.onPeakHeightChanged(text) }
}
@ -68,11 +68,19 @@ UM.Dialog
text: catalog.i18nc("@action:label","Smoothing")
Layout.fillWidth:true
}
TextField {
id: smoothing
validator: IntValidator {bottom: 0; top: 100;}
text: qsTr("1")
onTextChanged: { manager.onSmoothingChanged(text) }
Rectangle {
width: 100
height: 20
color: "transparent"
Slider {
id: smoothing
maximumValue: 100.0
stepSize: 1.0
value: 1
width: 100
onValueChanged: { manager.onSmoothingChanged(value) }
}
}
UM.I18nCatalog{id: catalog; name:"ultimaker"}