ToolboxDownloadsPage.qml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright (c) 2019 Ultimaker B.V.
  2. // Toolbox is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.10
  4. import QtQuick.Controls 2.3
  5. import UM 1.1 as UM
  6. import "../components"
  7. ScrollView
  8. {
  9. clip: true
  10. width: parent.width
  11. height: parent.height
  12. contentHeight: mainColumn.height
  13. Column
  14. {
  15. id: mainColumn
  16. width: base.width
  17. spacing: UM.Theme.getSize("default_margin").height
  18. ToolboxDownloadsShowcase
  19. {
  20. id: showcase
  21. width: parent.width
  22. }
  23. ToolboxDownloadsGrid
  24. {
  25. id: allPlugins
  26. width: parent.width
  27. heading: toolbox.viewCategory === "material" ? catalog.i18nc("@label", "Community Contributions") : catalog.i18nc("@label", "Community Plugins")
  28. model: toolbox.viewCategory === "material" ? toolbox.materialsAvailableModel : toolbox.pluginsAvailableModel
  29. }
  30. ToolboxDownloadsGrid
  31. {
  32. id: genericMaterials
  33. visible: toolbox.viewCategory === "material"
  34. width: parent.width
  35. heading: catalog.i18nc("@label", "Generic Materials")
  36. model: toolbox.materialsGenericModel
  37. }
  38. }
  39. }