FilePickerDialog.gml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. @GUI::Widget {
  2. fill_with_background_color: true
  3. layout: @GUI::HorizontalBoxLayout {
  4. margins: [4]
  5. spacing: 3
  6. }
  7. @GUI::Widget {
  8. preferred_width: 103
  9. layout: @GUI::VerticalBoxLayout {
  10. margins: [0, 4]
  11. }
  12. @GUI::Label {
  13. text: "Look in:"
  14. text_alignment: "CenterRight"
  15. fixed_height: 24
  16. }
  17. @GUI::Tray {
  18. name: "common_locations_tray"
  19. min_width: 60
  20. }
  21. @GUI::Label {
  22. text: "Filename:"
  23. text_alignment: "CenterRight"
  24. fixed_height: 22
  25. }
  26. @GUI::Label {
  27. name: "allowed_file_types_label"
  28. text: "Files of Type:"
  29. text_alignment: "CenterRight"
  30. fixed_height: 22
  31. }
  32. }
  33. @GUI::Widget {
  34. layout: @GUI::VerticalBoxLayout {}
  35. @GUI::Widget {
  36. preferred_height: "fit"
  37. layout: @GUI::HorizontalBoxLayout {}
  38. @GUI::TextBox {
  39. name: "location_textbox"
  40. preferred_width: "opportunistic_grow"
  41. min_width: 80
  42. }
  43. @GUI::Toolbar {
  44. name: "toolbar"
  45. preferred_width: "shrink"
  46. }
  47. }
  48. @GUI::MultiView {
  49. name: "view"
  50. }
  51. @GUI::Widget {
  52. preferred_height: "fit"
  53. layout: @GUI::VerticalBoxLayout {}
  54. @GUI::Widget {
  55. fixed_height: 22
  56. layout: @GUI::HorizontalBoxLayout {}
  57. @GUI::TextBox {
  58. name: "filename_textbox"
  59. }
  60. @GUI::DialogButton {
  61. name: "ok_button"
  62. text: "OK"
  63. }
  64. }
  65. @GUI::Widget {
  66. fixed_height: 22
  67. layout: @GUI::HorizontalBoxLayout {}
  68. @GUI::ComboBox {
  69. name: "allowed_file_type_filters_combo"
  70. model_only: true
  71. }
  72. @GUI::DialogButton {
  73. name: "cancel_button"
  74. text: "Cancel"
  75. }
  76. }
  77. }
  78. }
  79. }