mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-11 05:19:00 +08:00
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:
parent
f749bbef46
commit
1c78452d39
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
44
resources/qml/Preferences/Materials/MaterialsSyncDialog.qml
Normal file
44
resources/qml/Preferences/Materials/MaterialsSyncDialog.qml
Normal 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")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user