mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 13:49:39 +08:00

- When both branches added Controls1 as OldControls, it's not marked as a merge conflict. But the merge removed the need for OldControls, so the import can be removed. - There was one instance where I had removed the OldControls for a checkbox but there it should remain since the checkboxes are updated in a separate ticket. Contributes to issue CURA-8684.
62 lines
1.5 KiB
QML
62 lines
1.5 KiB
QML
//Copyright (C) 2022 Ultimaker B.V.
|
|
//Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick 2.10
|
|
import QtQuick.Window 2.2
|
|
import QtQuick.Controls 2.3
|
|
|
|
import UM 1.2 as UM
|
|
import Cura 1.6 as Cura
|
|
|
|
import DigitalFactory 1.0 as DF
|
|
|
|
Window
|
|
{
|
|
id: digitalFactorySaveDialogBase
|
|
title: "Save Cura project to Library"
|
|
|
|
modality: Qt.ApplicationModal
|
|
width: 800 * screenScaleFactor
|
|
height: 600 * screenScaleFactor
|
|
minimumWidth: 800 * screenScaleFactor
|
|
minimumHeight: 600 * screenScaleFactor
|
|
|
|
Shortcut
|
|
{
|
|
sequence: "Esc"
|
|
onActivated: digitalFactorySaveDialogBase.close()
|
|
}
|
|
color: UM.Theme.getColor("main_background")
|
|
|
|
SelectProjectPage
|
|
{
|
|
visible: manager.selectedProjectIndex == -1
|
|
createNewProjectButtonVisible: true
|
|
}
|
|
|
|
SaveProjectFilesPage
|
|
{
|
|
visible: manager.selectedProjectIndex >= 0
|
|
onSavePressed: digitalFactorySaveDialogBase.close()
|
|
onSelectDifferentProjectPressed: manager.clearProjectSelection()
|
|
}
|
|
|
|
|
|
BusyIndicator
|
|
{
|
|
// Shows up while Cura is waiting to receive the user's projects from the digital factory library
|
|
id: retrievingProjectsBusyIndicator
|
|
|
|
anchors {
|
|
verticalCenter: parent.verticalCenter
|
|
horizontalCenter: parent.horizontalCenter
|
|
}
|
|
|
|
width: parent.width / 4
|
|
height: width
|
|
visible: manager.retrievingProjectsStatus == DF.RetrievalStatus.InProgress
|
|
running: visible
|
|
palette.dark: UM.Theme.getColor("text")
|
|
}
|
|
}
|