mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
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
This commit is contained in:
parent
24c12fd3eb
commit
5cb67ab8c4
7 changed files with 343 additions and 20 deletions
|
|
@ -0,0 +1,75 @@
|
|||
// 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
|
||||
|
||||
|
||||
//
|
||||
// This component contains the content for the "Add a printer" (network) page of the welcome on-boarding process.
|
||||
//
|
||||
Control
|
||||
{
|
||||
UM.I18nCatalog { id: catalog; name: "cura" }
|
||||
|
||||
property var goToUltimakerPrinter
|
||||
property var goToThirdPartyPrinter
|
||||
|
||||
contentItem: ColumnLayout
|
||||
{
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
UM.Label
|
||||
{
|
||||
text: catalog.i18nc("@label", "In order to start using Cura you will need to configure a printer.")
|
||||
font: UM.Theme.getFont("default")
|
||||
Layout.alignment: Qt.AlignTop
|
||||
}
|
||||
|
||||
UM.Label
|
||||
{
|
||||
text: catalog.i18nc("@label", "What printer would you like to setup?")
|
||||
font: UM.Theme.getFont("default_bold")
|
||||
Layout.alignment: Qt.AlignTop
|
||||
}
|
||||
|
||||
RowLayout
|
||||
{
|
||||
spacing: UM.Theme.getSize("wide_margin").width
|
||||
Layout.preferredWidth: childrenRect.width
|
||||
Layout.preferredHeight: childrenRect.height
|
||||
Layout.topMargin: UM.Theme.getSize("wide_margin").height
|
||||
Layout.bottomMargin: UM.Theme.getSize("wide_margin").height
|
||||
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
||||
|
||||
PrinterCard
|
||||
{
|
||||
onClicked: goToUltimakerPrinter
|
||||
text: catalog.i18nc("@button", "Ultimaker printer")
|
||||
imageSource: UM.Theme.getImage("ultimaker_printer")
|
||||
}
|
||||
|
||||
PrinterCard
|
||||
{
|
||||
onClicked: goToThirdPartyPrinter
|
||||
text: catalog.i18nc("@button", "Non Ultimaker printer")
|
||||
imageSource: UM.Theme.getImage("third_party_printer")
|
||||
}
|
||||
}
|
||||
|
||||
Cura.TertiaryButton
|
||||
{
|
||||
Layout.alignment: Qt.AlignBottom
|
||||
text: catalog.i18nc("@button", "Learn more about adding printers to Cura")
|
||||
iconSource: UM.Theme.getIcon("LinkExternal")
|
||||
isIconOnRightSide: true
|
||||
textFont: UM.Theme.getFont("small")
|
||||
onClicked: Qt.openUrlExternally("") // TODO: Update url
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue