Cura/resources/qml/WelcomePages/AddUltimakerOrThirdPartyPrinterStack.qml
c.lamboo 5cb67ab8c4 Add new pages in add-printer flow
Pages added
- Page to select Ultimaker or third party printer
- Page with information how to add Ultimaker printer(s)

contributes to CURA-8689
2022-11-01 16:11:34 +01:00

55 lines
1.3 KiB
QML

// Copyright (c) 2022 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import UM 1.5 as UM
import Cura 1.1 as Cura
ColumnLayout
{
id: root
UM.I18nCatalog { id: catalog; name: "cura" }
Layout.fillWidth: true
Layout.fillHeight: true
property var goToUltimakerPrinter: () => layout.currentIndex = 1
property var goToThirdPartyPrinter: () => layout.currentIndex = 2
UM.Label
{
id: title_label
Layout.fillWidth: true
Layout.bottomMargin: UM.Theme.getSize("thick_margin").height
horizontalAlignment: Text.AlignHCenter
text: catalog.i18nc("@label", "Add printer")
color: UM.Theme.getColor("primary_button")
font: UM.Theme.getFont("huge")
}
StackLayout
{
id: layout
Layout.fillWidth: true
Layout.fillHeight: true
currentIndex: 0
AddUltimakerOrThirdPartyPrinter
{
goToUltimakerPrinter: root.goToUltimakerPrinter
goToThirdPartyPrinter: root.goToThirdPartyPrinter
}
AddUltimakerPrinter
{
goToThirdPartyPrinter: root.goToThirdPartyPrinter
}
AddThirdPartyPrinter
{
goToUltimakerPrinter: root.goToUltimakerPrinter
}
}
}