UltimakerCheckup.qml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // Copyright (c) 2015 Ultimaker B.V.
  2. // Cura is released under the terms of the AGPLv3 or higher.
  3. import QtQuick 2.2
  4. import QtQuick.Controls 1.1
  5. import QtQuick.Layouts 1.1
  6. import QtQuick.Window 2.1
  7. import UM 1.0 as UM
  8. Column
  9. {
  10. id: wizardPage
  11. property string title
  12. anchors.fill: parent;
  13. Label
  14. {
  15. text: parent.title
  16. font.pointSize: 18;
  17. }
  18. Label
  19. {
  20. //: Add Printer wizard page description
  21. text: qsTr("Please select the type of printer:");
  22. }
  23. ScrollView
  24. {
  25. height: parent.height - 50
  26. width: parent.width
  27. ListView
  28. {
  29. id: machineList;
  30. model: UM.Models.availableMachinesModel
  31. delegate: RadioButton
  32. {
  33. exclusiveGroup: printerGroup;
  34. text: model.name;
  35. onClicked:
  36. {
  37. ListView.view.currentIndex = index;
  38. }
  39. }
  40. }
  41. }
  42. Label
  43. {
  44. //: Add Printer wizard field label
  45. text: qsTr("Printer Name:");
  46. }
  47. TextField
  48. {
  49. id: machineName; Layout.fillWidth: true; text: machineList.model.getItem(machineList.currentIndex).name
  50. }
  51. Item
  52. {
  53. Layout.fillWidth: true;
  54. Layout.fillHeight: true;
  55. }
  56. ExclusiveGroup
  57. {
  58. id: printerGroup;
  59. }
  60. }