Debian Codegraph @

plugins/CuraDrive/src/qml/components/BackupListItemDetails.qml

raw
1 // Copyright (c) 2021 Ultimaker B.V.
2 // Cura is released under the terms of the LGPLv3 or higher.
3
4 import QtQuick 2.7
5 import QtQuick.Controls 2.1
6 import QtQuick.Layouts 1.3
7
8 import UM 1.1 as UM
9
10 ColumnLayout
11 {
12 id: backupDetails
13 width: parent.width
14 spacing: UM.Theme.getSize("default_margin").width
15 property var backupDetailsData
16
17 // Cura version
18 BackupListItemDetailsRow
19 {
20 iconSource: UM.Theme.getIcon("UltimakerCura")
21 label: catalog.i18nc("@backuplist:label", "Cura Version")
22 value: backupDetailsData.metadata.cura_release
23 }
24
25 // Machine count.
26 BackupListItemDetailsRow
27 {
28 iconSource: UM.Theme.getIcon("Printer")
29 label: catalog.i18nc("@backuplist:label", "Machines")
30 value: backupDetailsData.metadata.machine_count
31 }
32
33 // Material count
34 BackupListItemDetailsRow
35 {
36 iconSource: UM.Theme.getIcon("Spool")
37 label: catalog.i18nc("@backuplist:label", "Materials")
38 value: backupDetailsData.metadata.material_count
39 }
40
41 // Profile count.
42 BackupListItemDetailsRow
43 {
44 iconSource: UM.Theme.getIcon("Sliders")
45 label: catalog.i18nc("@backuplist:label", "Profiles")
46 value: backupDetailsData.metadata.profile_count
47 }
48
49 // Plugin count.
50 BackupListItemDetailsRow
51 {
52 iconSource: UM.Theme.getIcon("Plugin")
53 label: catalog.i18nc("@backuplist:label", "Plugins")
54 value: backupDetailsData.metadata.plugin_count
55 }
56
57 // Spacer.
58 Item
59 {
60 width: parent.width
61 height: UM.Theme.getSize("default_margin").height
62 }
63 }