ToolboxDownloadsPage.qml 1.3 KB

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