// Copyright (c) 2015 Ultimaker B.V. // Cura is released under the terms of the AGPLv3 or higher. import QtQuick 2.1 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.1 import QtQuick.Window 2.1 import UM 1.1 as UM UM.Dialog { width: 250*Screen.devicePixelRatio; minimumWidth: 250*Screen.devicePixelRatio; maximumWidth: 250*Screen.devicePixelRatio; height: 200*Screen.devicePixelRatio; minimumHeight: 200*Screen.devicePixelRatio; maximumHeight: 200*Screen.devicePixelRatio; modality: Qt.Modal title: catalog.i18nc("@title:window", "Convert Image...") GridLayout { anchors.fill: parent; Layout.fillWidth: true columnSpacing: 16 rowSpacing: 4 columns: 2 Text { text: catalog.i18nc("@action:label","Size") Layout.fillWidth:true } TextField { id: size focus: true validator: DoubleValidator {notation: DoubleValidator.StandardNotation; bottom: 1; top: 500;} text: qsTr("120") onTextChanged: { manager.onSizeChanged(text) } } Text { text: catalog.i18nc("@action:label","Base Height") Layout.fillWidth:true } TextField { id: base_height validator: DoubleValidator {notation: DoubleValidator.StandardNotation; bottom: 0; top: 500;} text: qsTr("2") onTextChanged: { manager.onBaseHeightChanged(text) } } Text { text: catalog.i18nc("@action:label","Peak Height") Layout.fillWidth:true } TextField { id: peak_height validator: DoubleValidator {notation: DoubleValidator.StandardNotation; bottom: 0; top: 500;} text: qsTr("12") onTextChanged: { manager.onPeakHeightChanged(text) } } Text { 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) } } UM.I18nCatalog{id: catalog; name:"ultimaker"} } rightButtons: [ Button { id:ok_button text: catalog.i18nc("@action:button","OK"); onClicked: { manager.onOkButtonClicked() } enabled: true }, Button { id:cancel_button text: catalog.i18nc("@action:button","Cancel"); onClicked: { manager.onCancelButtonClicked() } enabled: true } ] }