// Copyright (c) 2019 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.3 as UM import Cura 1.5 as Cura // // This component contains the content for the 'by IP' page of the "Add New Printer" flow of the on-boarding process. // Item { UM.I18nCatalog { id: catalog; name: "cura" } id: addCloudPrinterScreen Label { id: titleLabel anchors.top: parent.top anchors.horizontalCenter: parent.horizontalCenter horizontalAlignment: Text.AlignHCenter text: catalog.i18nc("@label", "Add a Cloud printer") color: UM.Theme.getColor("primary_button") font: UM.Theme.getFont("huge") renderType: Text.NativeRendering } Cura.SecondaryButton { id: backButton anchors.left: parent.left anchors.bottom: parent.bottom text: catalog.i18nc("@button", "Add printer manually") onClicked: { CuraApplication.getDiscoveredPrintersModel().cancelCurrentManualDeviceRequest() base.showPreviousPage() } } Cura.PrimaryButton { id: connectButton anchors.right: parent.right anchors.bottom: parent.bottom text: catalog.i18nc("@button", "Finish") onClicked: { CuraApplication.getDiscoveredPrintersModel().createMachineFromDiscoveredPrinter(discoveredPrinter) base.showNextPage() } enabled: addPrinterByIpScreen.canAddPrinter } }