mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Add "Add a Cloud printer" QML page
CURA-7022
This commit is contained in:
parent
d078c465ee
commit
41c472c2ed
1 changed files with 60 additions and 0 deletions
60
resources/qml/WelcomePages/AddCloudPrintersView.qml
Normal file
60
resources/qml/WelcomePages/AddCloudPrintersView.qml
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
// 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
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue