Add basis for a new material sync wizard

Just the set-up with a basic page to test the window with.

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-01 17:54:01 +02:00
parent f749bbef46
commit 1c78452d39
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A
2 changed files with 50 additions and 2 deletions

View File

@ -201,8 +201,7 @@ Item
onClicked: onClicked:
{ {
forceActiveFocus(); forceActiveFocus();
exportAllMaterialsDialog.folder = base.materialManagementModel.getPreferredExportAllPath(); materialsSyncDialog.show();
exportAllMaterialsDialog.open();
} }
visible: Cura.MachineManager.activeMachine.supportsMaterialExport visible: Cura.MachineManager.activeMachine.supportsMaterialExport
} }
@ -400,4 +399,9 @@ Item
{ {
id: messageDialog id: messageDialog
} }
MaterialsSyncDialog
{
id: materialsSyncDialog
}
} }

View File

@ -0,0 +1,44 @@
//Copyright (c) 2021 Ultimaker B.V.
//Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.1
import QtQuick.Controls 2.1
import QtQuick.Window 2.1
import UM 1.2 as UM
Window
{
id: materialsSyncDialog
title: catalog.i18nc("@title:window", "Sync materials with printers")
minimumWidth: UM.Theme.getSize("modal_window_minimum").width
minimumHeight: UM.Theme.getSize("modal_window_minimum").height
width: minimumWidth
height: minimumHeight
SwipeView
{
id: swipeView
anchors.fill: parent
Rectangle
{
id: introPage
color: UM.Theme.getColor("main_background")
Column
{
Label
{
text: catalog.i18nc("@title:header", "Sync materials with printers")
font: UM.Theme.getFont("large_bold")
color: UM.Theme.getColor("text")
}
Label
{
text: catalog.i18nc("@text", "Following a few simple steps, you will be able to synchronize all your material profiles with your printers.")
font: UM.Theme.getFont("medium")
color: UM.Theme.getColor("text")
}
}
}
}
}