| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  | using Gtk 4.0; | 
					
						
							|  |  |  | using Adw 1; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | template $MusicusRecordingEditor: Adw.NavigationPage { | 
					
						
							|  |  |  |   title: _("Recording"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   Adw.ToolbarView { | 
					
						
							|  |  |  |     [top] | 
					
						
							|  |  |  |     Adw.HeaderBar header_bar {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     Gtk.ScrolledWindow { | 
					
						
							|  |  |  |       Adw.Clamp { | 
					
						
							|  |  |  |         Gtk.Box { | 
					
						
							|  |  |  |           orientation: vertical; | 
					
						
							|  |  |  |           margin-bottom: 24; | 
					
						
							|  |  |  |           margin-start: 12; | 
					
						
							|  |  |  |           margin-end: 12; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.Label { | 
					
						
							|  |  |  |             label: _("Recording"); | 
					
						
							|  |  |  |             xalign: 0; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |               "heading", | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |             ] | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.ListBox { | 
					
						
							|  |  |  |             selection-mode: none; | 
					
						
							|  |  |  |             margin-top: 12; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |               "boxed-list", | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |             ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             Adw.ActionRow work_row { | 
					
						
							| 
									
										
										
										
											2025-03-01 08:34:53 +01:00
										 |  |  |               title: _("Select _work"); | 
					
						
							|  |  |  |               use-underline: true; | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |               activatable: true; | 
					
						
							|  |  |  |               activated => $select_work() swapped; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |               [prefix] | 
					
						
							|  |  |  |               Gtk.Box select_work_box { | 
					
						
							|  |  |  |                 Gtk.Image { | 
					
						
							|  |  |  |                   icon-name: "document-edit-symbolic"; | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             Adw.SpinRow year_row { | 
					
						
							| 
									
										
										
										
											2025-03-01 08:34:53 +01:00
										 |  |  |               title: _("_Year"); | 
					
						
							|  |  |  |               use-underline: true; | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |               adjustment: Gtk.Adjustment { | 
					
						
							|  |  |  |                 lower: 0; | 
					
						
							|  |  |  |                 upper: 3000; | 
					
						
							|  |  |  |                 value: 2000; | 
					
						
							|  |  |  |                 step-increment: 1; | 
					
						
							|  |  |  |                 page-increment: 10; | 
					
						
							|  |  |  |               }; | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.Label { | 
					
						
							|  |  |  |             label: _("Performers"); | 
					
						
							|  |  |  |             xalign: 0; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |               "heading", | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |             ] | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:13:29 +01:00
										 |  |  |           Gtk.Box performers_box { | 
					
						
							|  |  |  |             Gtk.ListBox performer_list { | 
					
						
							|  |  |  |               selection-mode: none; | 
					
						
							|  |  |  |               margin-top: 12; | 
					
						
							|  |  |  |               hexpand: true; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |               styles [ | 
					
						
							|  |  |  |                 "boxed-list", | 
					
						
							|  |  |  |               ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |               Adw.ButtonRow { | 
					
						
							|  |  |  |                 title: _("Add _performer"); | 
					
						
							|  |  |  |                 start-icon-name: "list-add-symbolic"; | 
					
						
							|  |  |  |                 use-underline: true; | 
					
						
							|  |  |  |                 activated => $select_person() swapped; | 
					
						
							|  |  |  |               } | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.Label { | 
					
						
							|  |  |  |             label: _("Ensembles"); | 
					
						
							|  |  |  |             xalign: 0; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |               "heading", | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |             ] | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:13:29 +01:00
										 |  |  |           Gtk.Box ensembles_box { | 
					
						
							|  |  |  |             Gtk.ListBox ensemble_list { | 
					
						
							|  |  |  |               selection-mode: none; | 
					
						
							|  |  |  |               margin-top: 12; | 
					
						
							|  |  |  |               hexpand: true; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |               styles [ | 
					
						
							|  |  |  |                 "boxed-list", | 
					
						
							|  |  |  |               ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |               Adw.ButtonRow { | 
					
						
							|  |  |  |                 title: _("Add _ensemble"); | 
					
						
							|  |  |  |                 use-underline: true; | 
					
						
							|  |  |  |                 start-icon-name: "list-add-symbolic"; | 
					
						
							|  |  |  |                 activated => $select_ensemble() swapped; | 
					
						
							|  |  |  |               } | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-17 18:33:31 +01:00
										 |  |  |           Gtk.ListBox { | 
					
						
							|  |  |  |             selection-mode: none; | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |             margin-top: 24; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |               "boxed-list", | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |             ] | 
					
						
							| 
									
										
										
										
											2025-01-17 18:33:31 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |             Adw.ButtonRow save_row { | 
					
						
							| 
									
										
										
										
											2025-03-01 08:34:53 +01:00
										 |  |  |               title: _("_Create recording"); | 
					
						
							|  |  |  |               use-underline: true; | 
					
						
							| 
									
										
										
										
											2025-01-17 18:33:31 +01:00
										 |  |  |               activated => $save() swapped; | 
					
						
							|  |  |  |             } | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |