mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-27 04:41:06 -07:00
Use UM Dialog for AddMachineWizard
This commit is contained in:
parent
2b2c624e4e
commit
06c5419054
1 changed files with 41 additions and 51 deletions
|
|
@ -5,23 +5,21 @@ import QtQuick.Window 2.1
|
||||||
|
|
||||||
import UM 1.0 as UM
|
import UM 1.0 as UM
|
||||||
|
|
||||||
Window {
|
UM.Dialog {
|
||||||
id: base
|
id: base
|
||||||
|
|
||||||
width: 640
|
|
||||||
height: 480
|
|
||||||
|
|
||||||
//: Add Printer dialog title
|
//: Add Printer dialog title
|
||||||
title: qsTr("Add Printer");
|
title: qsTr("Add Printer");
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
anchors.fill: parent;
|
|
||||||
color: palette.window;
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
anchors.margins: UM.Styles.defaultMargin;
|
anchors.margins: UM.Styles.defaultMargin;
|
||||||
|
|
||||||
|
Label {
|
||||||
|
text: qsTr("Add Printer");
|
||||||
|
font.pointSize: 18;
|
||||||
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: qsTr("Please select the type of printer:");
|
text: qsTr("Please select the type of printer:");
|
||||||
}
|
}
|
||||||
|
|
@ -45,12 +43,9 @@ Window {
|
||||||
Item { Layout.fillWidth: true; Layout.fillHeight: true; }
|
Item { Layout.fillWidth: true; Layout.fillHeight: true; }
|
||||||
|
|
||||||
ExclusiveGroup { id: printerGroup; }
|
ExclusiveGroup { id: printerGroup; }
|
||||||
|
}
|
||||||
|
|
||||||
RowLayout {
|
rightButtons: [
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
Item { Layout.fillWidth: true; }
|
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
text: qsTr("Next");
|
text: qsTr("Next");
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
@ -59,15 +54,10 @@ Window {
|
||||||
base.visible = false
|
base.visible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
text: qsTr("Cancel");
|
text: qsTr("Cancel");
|
||||||
onClicked: base.visible = false;
|
onClicked: base.visible = false;
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SystemPalette { id: palette; colorGroup: SystemPalette.Active }
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue