123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- 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
- 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
- }
- }
|