mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-25 03:44:29 +08:00
45 lines
998 B
QML
45 lines
998 B
QML
// Copyright (c) 2018 Ultimaker B.V.
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick 2.7
|
|
import QtQuick.Controls 2.1
|
|
import QtQuick.Window 2.2
|
|
|
|
import UM 1.3 as UM
|
|
import Cura 1.1 as Cura
|
|
|
|
import "components"
|
|
import "pages"
|
|
|
|
Window
|
|
{
|
|
id: curaDriveDialog
|
|
minimumWidth: Math.round(UM.Theme.getSize("modal_window_minimum").width)
|
|
minimumHeight: Math.round(UM.Theme.getSize("modal_window_minimum").height)
|
|
maximumWidth: Math.round(minimumWidth * 1.2)
|
|
maximumHeight: Math.round(minimumHeight * 1.2)
|
|
width: minimumWidth
|
|
height: minimumHeight
|
|
color: UM.Theme.getColor("main_background")
|
|
title: catalog.i18nc("@title:window", "Cura Backups")
|
|
|
|
// Globally available.
|
|
UM.I18nCatalog
|
|
{
|
|
id: catalog
|
|
name: "cura"
|
|
}
|
|
|
|
WelcomePage
|
|
{
|
|
id: welcomePage
|
|
visible: !Cura.API.account.isLoggedIn
|
|
}
|
|
|
|
BackupsPage
|
|
{
|
|
id: backupsPage
|
|
visible: Cura.API.account.isLoggedIn
|
|
}
|
|
}
|