| 
									
										
										
										
											2024-05-31 13:39:27 +02:00
										 |  |  | using Gtk 4.0; | 
					
						
							|  |  |  | using Adw 1; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | template $MusicusWorkEditor: Adw.NavigationPage { | 
					
						
							|  |  |  |   title: _("Work"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   Adw.ToolbarView { | 
					
						
							|  |  |  |     [top] | 
					
						
							|  |  |  |     Adw.HeaderBar header_bar {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     Gtk.ScrolledWindow { | 
					
						
							|  |  |  |       Adw.Clamp { | 
					
						
							|  |  |  |         Gtk.Box { | 
					
						
							|  |  |  |           orientation: vertical; | 
					
						
							|  |  |  |           margin-bottom: 24; | 
					
						
							|  |  |  |           margin-start: 12; | 
					
						
							|  |  |  |           margin-end: 12; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-31 13:57:14 +02:00
										 |  |  |           Gtk.Label { | 
					
						
							|  |  |  |             label: _("Name"); | 
					
						
							|  |  |  |             xalign: 0; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |               "heading", | 
					
						
							| 
									
										
										
										
											2024-05-31 13:57:14 +02:00
										 |  |  |             ] | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           $MusicusTranslationEditor name_editor { | 
					
						
							|  |  |  |             margin-top: 12; | 
					
						
							|  |  |  |           } | 
					
						
							| 
									
										
										
										
											2024-05-31 13:39:27 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |           Gtk.Label { | 
					
						
							|  |  |  |             label: _("Composers"); | 
					
						
							|  |  |  |             xalign: 0; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |               "heading", | 
					
						
							| 
									
										
										
										
											2024-05-31 13:39:27 +02:00
										 |  |  |             ] | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:13:29 +01:00
										 |  |  |           Gtk.Box composers_box { | 
					
						
							|  |  |  |             Gtk.ListBox composer_list { | 
					
						
							|  |  |  |               selection-mode: none; | 
					
						
							|  |  |  |               margin-top: 12; | 
					
						
							|  |  |  |               hexpand: true; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |               styles [ | 
					
						
							|  |  |  |                 "boxed-list", | 
					
						
							|  |  |  |               ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |               Adw.ButtonRow { | 
					
						
							|  |  |  |                 title: _("Add _composer"); | 
					
						
							|  |  |  |                 start-icon-name: "list-add-symbolic"; | 
					
						
							|  |  |  |                 use-underline: true; | 
					
						
							|  |  |  |                 activated => $add_person() swapped; | 
					
						
							|  |  |  |               } | 
					
						
							| 
									
										
										
										
											2024-05-31 13:39:27 +02:00
										 |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.Label { | 
					
						
							|  |  |  |             label: _("Structure"); | 
					
						
							|  |  |  |             xalign: 0; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |               "heading", | 
					
						
							| 
									
										
										
										
											2024-05-31 13:39:27 +02:00
										 |  |  |             ] | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.ListBox part_list { | 
					
						
							|  |  |  |             selection-mode: none; | 
					
						
							|  |  |  |             margin-top: 12; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |               "boxed-list", | 
					
						
							| 
									
										
										
										
											2024-05-31 13:39:27 +02:00
										 |  |  |             ] | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |             Adw.ButtonRow { | 
					
						
							| 
									
										
										
										
											2025-03-01 08:34:53 +01:00
										 |  |  |               title: _("Add _part"); | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |               start-icon-name: "list-add-symbolic"; | 
					
						
							| 
									
										
										
										
											2025-03-01 08:34:53 +01:00
										 |  |  |               use-underline: true; | 
					
						
							| 
									
										
										
										
											2024-05-31 13:39:27 +02:00
										 |  |  |               activated => $add_part() swapped; | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.Label { | 
					
						
							|  |  |  |             label: _("Instruments"); | 
					
						
							|  |  |  |             xalign: 0; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |               "heading", | 
					
						
							| 
									
										
										
										
											2024-05-31 13:39:27 +02:00
										 |  |  |             ] | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:13:29 +01:00
										 |  |  |           Gtk.Box instruments_box { | 
					
						
							|  |  |  |             Gtk.ListBox instrument_list { | 
					
						
							|  |  |  |               selection-mode: none; | 
					
						
							|  |  |  |               margin-top: 12; | 
					
						
							|  |  |  |               hexpand: true; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |               styles [ | 
					
						
							|  |  |  |                 "boxed-list", | 
					
						
							|  |  |  |               ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |               Adw.ButtonRow { | 
					
						
							|  |  |  |                 title: _("Add _instrument"); | 
					
						
							|  |  |  |                 start-icon-name: "list-add-symbolic"; | 
					
						
							|  |  |  |                 use-underline: true; | 
					
						
							|  |  |  |                 activated => $add_instrument() swapped; | 
					
						
							|  |  |  |               } | 
					
						
							| 
									
										
										
										
											2024-05-31 13:39:27 +02:00
										 |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							| 
									
										
										
										
											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-04-27 15:22:04 +02:00
										 |  |  |               "boxed-list-separate", | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |             ] | 
					
						
							| 
									
										
										
										
											2025-01-17 18:33:31 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-27 15:22:04 +02:00
										 |  |  |             Adw.SwitchRow enable_updates_row { | 
					
						
							|  |  |  |               title: _("Enable updates"); | 
					
						
							|  |  |  |               subtitle: _("Keep this item up to date with the online metadata library"); | 
					
						
							|  |  |  |               active: true; | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-17 18:33:31 +01:00
										 |  |  |             Adw.ButtonRow save_row { | 
					
						
							| 
									
										
										
										
											2025-03-01 08:34:53 +01:00
										 |  |  |               title: _("_Create work"); | 
					
						
							|  |  |  |               use-underline: true; | 
					
						
							| 
									
										
										
										
											2025-01-17 18:33:31 +01:00
										 |  |  |               activated => $save() swapped; | 
					
						
							| 
									
										
										
										
											2025-03-29 17:53:04 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |               styles [ | 
					
						
							|  |  |  |                 "suggested-action", | 
					
						
							|  |  |  |               ] | 
					
						
							| 
									
										
										
										
											2025-01-17 18:33:31 +01:00
										 |  |  |             } | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |           } | 
					
						
							| 
									
										
										
										
											2024-05-31 13:39:27 +02:00
										 |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |