Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ToolboxDownloadsPage.qml « pages « qml « resources « Toolbox « plugins - github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9be8cbe2b939b1282b1ca4a94d79d4574565beab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) 2019 Ultimaker B.V.
// Toolbox is released under the terms of the LGPLv3 or higher.

import QtQuick 2.10
import QtQuick.Controls 2.3
import UM 1.1 as UM

import "../components"

ScrollView
{
    clip: true
    width: parent.width
    height: parent.height
    contentHeight: mainColumn.height

    Column
    {
        id: mainColumn
        width: base.width
        spacing: UM.Theme.getSize("default_margin").height

        ToolboxDownloadsShowcase
        {
            id: showcase
            width: parent.width
        }

        ToolboxDownloadsGrid
        {
            id: allPlugins
            width: parent.width
            heading: toolbox.viewCategory === "material" ? catalog.i18nc("@label", "Community Contributions") : catalog.i18nc("@label", "Community Plugins")
            model: toolbox.viewCategory === "material" ? toolbox.materialsAvailableModel : toolbox.pluginsAvailableModel
        }

        ToolboxDownloadsGrid
        {
            id: genericMaterials
            visible: toolbox.viewCategory === "material"
            width: parent.width
            heading: catalog.i18nc("@label", "Generic Materials")
            model: toolbox.materialsGenericModel
        }
    }
}