From 1c78452d398581b92f45d37f5cb2d1e3f6c3d749 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 1 Oct 2021 17:54:01 +0200 Subject: [PATCH] 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. --- .../Preferences/Materials/MaterialsPage.qml | 8 +++- .../Materials/MaterialsSyncDialog.qml | 44 +++++++++++++++++++ 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 resources/qml/Preferences/Materials/MaterialsSyncDialog.qml diff --git a/resources/qml/Preferences/Materials/MaterialsPage.qml b/resources/qml/Preferences/Materials/MaterialsPage.qml index 4de3ad918b..8f15838e0d 100644 --- a/resources/qml/Preferences/Materials/MaterialsPage.qml +++ b/resources/qml/Preferences/Materials/MaterialsPage.qml @@ -201,8 +201,7 @@ Item onClicked: { forceActiveFocus(); - exportAllMaterialsDialog.folder = base.materialManagementModel.getPreferredExportAllPath(); - exportAllMaterialsDialog.open(); + materialsSyncDialog.show(); } visible: Cura.MachineManager.activeMachine.supportsMaterialExport } @@ -400,4 +399,9 @@ Item { id: messageDialog } + + MaterialsSyncDialog + { + id: materialsSyncDialog + } } diff --git a/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml new file mode 100644 index 0000000000..55a44f3ad5 --- /dev/null +++ b/resources/qml/Preferences/Materials/MaterialsSyncDialog.qml @@ -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") + } + } + } + } +} \ No newline at end of file