123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- // 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
- {
- id: page
- clip: true
- width: parent.width
- height: parent.height
- Column
- {
- width: page.width
- spacing: UM.Theme.getSize("default_margin").height
- padding: UM.Theme.getSize("wide_margin").width
- height: childrenRect.height + 2 * UM.Theme.getSize("wide_margin").height
- Label
- {
- anchors
- {
- left: parent.left
- right: parent.right
- margins: parent.padding
- }
- text: catalog.i18nc("@title:tab", "Installed plugins")
- color: UM.Theme.getColor("text_medium")
- font: UM.Theme.getFont("medium")
- renderType: Text.NativeRendering
- }
- Rectangle
- {
- anchors
- {
- left: parent.left
- right: parent.right
- margins: parent.padding
- }
- id: installedPlugins
- color: "transparent"
- height: childrenRect.height + UM.Theme.getSize("default_margin").width
- border.color: UM.Theme.getColor("lining")
- border.width: UM.Theme.getSize("default_lining").width
- Column
- {
- anchors
- {
- top: parent.top
- right: parent.right
- left: parent.left
- margins: UM.Theme.getSize("default_margin").width
- }
- Repeater
- {
- id: pluginList
- model: toolbox.pluginsInstalledModel
- delegate: ToolboxInstalledTile { }
- }
- }
- Label
- {
- visible: toolbox.pluginsInstalledModel.count < 1
- padding: UM.Theme.getSize("default_margin").width
- text: catalog.i18nc("@info", "No plugin has been installed.")
- font: UM.Theme.getFont("medium")
- color: UM.Theme.getColor("lining")
- renderType: Text.NativeRendering
- }
- }
- Label
- {
- anchors
- {
- left: parent.left
- right: parent.right
- margins: parent.padding
- }
- text: catalog.i18nc("@title:tab", "Installed materials")
- color: UM.Theme.getColor("text_medium")
- font: UM.Theme.getFont("medium")
- renderType: Text.NativeRendering
- }
- Rectangle
- {
- anchors
- {
- left: parent.left
- right: parent.right
- margins: parent.padding
- }
- id: installedMaterials
- color: "transparent"
- height: childrenRect.height + UM.Theme.getSize("default_margin").width
- border.color: UM.Theme.getColor("lining")
- border.width: UM.Theme.getSize("default_lining").width
- Column
- {
- anchors
- {
- top: parent.top
- right: parent.right
- left: parent.left
- margins: UM.Theme.getSize("default_margin").width
- }
- Repeater
- {
- id: installedMaterialsList
- model: toolbox.materialsInstalledModel
- delegate: ToolboxInstalledTile { }
- }
- }
- Label
- {
- visible: toolbox.materialsInstalledModel.count < 1
- padding: UM.Theme.getSize("default_margin").width
- text: catalog.i18nc("@info", "No material has been installed.")
- color: UM.Theme.getColor("lining")
- font: UM.Theme.getFont("medium")
- renderType: Text.NativeRendering
- }
- }
- Label
- {
- anchors
- {
- left: parent.left
- right: parent.right
- margins: parent.padding
- }
- text: catalog.i18nc("@title:tab", "Bundled plugins")
- color: UM.Theme.getColor("text_medium")
- font: UM.Theme.getFont("medium")
- renderType: Text.NativeRendering
- }
- Rectangle
- {
- anchors
- {
- left: parent.left
- right: parent.right
- margins: parent.padding
- }
- id: bundledPlugins
- color: "transparent"
- height: childrenRect.height + UM.Theme.getSize("default_margin").width
- border.color: UM.Theme.getColor("lining")
- border.width: UM.Theme.getSize("default_lining").width
- Column
- {
- anchors
- {
- top: parent.top
- right: parent.right
- left: parent.left
- margins: UM.Theme.getSize("default_margin").width
- }
- Repeater
- {
- id: bundledPluginsList
- model: toolbox.pluginsBundledModel
- delegate: ToolboxInstalledTile { }
- }
- }
- }
- Label
- {
- anchors
- {
- left: parent.left
- right: parent.right
- margins: parent.padding
- }
- text: catalog.i18nc("@title:tab", "Bundled materials")
- color: UM.Theme.getColor("text_medium")
- font: UM.Theme.getFont("medium")
- renderType: Text.NativeRendering
- }
- Rectangle
- {
- anchors
- {
- left: parent.left
- right: parent.right
- margins: parent.padding
- }
- id: bundledMaterials
- color: "transparent"
- height: childrenRect.height + UM.Theme.getSize("default_margin").width
- border.color: UM.Theme.getColor("lining")
- border.width: UM.Theme.getSize("default_lining").width
- Column
- {
- anchors
- {
- top: parent.top
- right: parent.right
- left: parent.left
- margins: UM.Theme.getSize("default_margin").width
- }
- Repeater
- {
- id: bundledMaterialsList
- model: toolbox.materialsBundledModel
- delegate: ToolboxInstalledTile {}
- }
- }
- }
- }
- }
|