mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:45:55 +08:00
Remove unused file, context menu takes care of the multiply object dialog
This commit is contained in:
parent
0d9514a5d0
commit
08c0779dde
@ -1,66 +0,0 @@
|
|||||||
// Copyright (c) 2015 Ultimaker B.V.
|
|
||||||
// Cura is released under the terms of the AGPLv3 or higher.
|
|
||||||
|
|
||||||
import QtQuick 2.2
|
|
||||||
import QtQuick.Controls 1.1
|
|
||||||
import QtQuick.Window 2.1
|
|
||||||
|
|
||||||
import UM 1.1 as UM
|
|
||||||
|
|
||||||
UM.Dialog
|
|
||||||
{
|
|
||||||
id: base
|
|
||||||
|
|
||||||
//: Dialog title
|
|
||||||
title: catalog.i18nc("@title:window", "Multiply Model")
|
|
||||||
|
|
||||||
minimumWidth: 400 * Screen.devicePixelRatio
|
|
||||||
minimumHeight: 80 * Screen.devicePixelRatio
|
|
||||||
width: minimumWidth
|
|
||||||
height: minimumHeight
|
|
||||||
|
|
||||||
property var objectId: 0;
|
|
||||||
onAccepted: CuraApplication.multiplyObject(base.objectId, parseInt(copiesField.text))
|
|
||||||
|
|
||||||
property variant catalog: UM.I18nCatalog { name: "cura" }
|
|
||||||
|
|
||||||
signal reset()
|
|
||||||
onReset: {
|
|
||||||
copiesField.text = "1";
|
|
||||||
copiesField.selectAll();
|
|
||||||
copiesField.focus = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
Row
|
|
||||||
{
|
|
||||||
spacing: UM.Theme.getSize("default_margin").width
|
|
||||||
|
|
||||||
Label {
|
|
||||||
text: "Number of copies:"
|
|
||||||
anchors.verticalCenter: copiesField.verticalCenter
|
|
||||||
}
|
|
||||||
|
|
||||||
TextField {
|
|
||||||
id: copiesField
|
|
||||||
validator: RegExpValidator { regExp: /^\d{0,2}/ }
|
|
||||||
maximumLength: 2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
rightButtons:
|
|
||||||
[
|
|
||||||
Button
|
|
||||||
{
|
|
||||||
text: catalog.i18nc("@action:button","OK")
|
|
||||||
onClicked: base.accept()
|
|
||||||
enabled: base.objectId != 0 && parseInt(copiesField.text) > 0
|
|
||||||
},
|
|
||||||
Button
|
|
||||||
{
|
|
||||||
text: catalog.i18nc("@action:button","Cancel")
|
|
||||||
onClicked: base.reject()
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user