| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  | using Gtk 4.0; | 
					
						
							|  |  |  | using Adw 1; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | template $MusicusInstrumentEditor: Adw.NavigationPage { | 
					
						
							|  |  |  |   title: _("Instrument"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   Adw.ToolbarView { | 
					
						
							|  |  |  |     [top] | 
					
						
							|  |  |  |     Adw.HeaderBar header_bar {} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |     Gtk.ScrolledWindow { | 
					
						
							|  |  |  |       Adw.Clamp { | 
					
						
							|  |  |  |         Gtk.Box { | 
					
						
							|  |  |  |           orientation: vertical; | 
					
						
							|  |  |  |           margin-bottom: 24; | 
					
						
							|  |  |  |           margin-start: 12; | 
					
						
							|  |  |  |           margin-end: 12; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.Label { | 
					
						
							|  |  |  |             label: _("Name"); | 
					
						
							|  |  |  |             xalign: 0; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							|  |  |  |               "heading", | 
					
						
							|  |  |  |             ] | 
					
						
							|  |  |  |           } | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |           $MusicusTranslationEditor name_editor { | 
					
						
							|  |  |  |             margin-top: 12; | 
					
						
							|  |  |  |           } | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |           Gtk.ListBox { | 
					
						
							|  |  |  |             selection-mode: none; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |             styles [ | 
					
						
							| 
									
										
										
										
											2025-04-27 15:22:04 +02:00
										 |  |  |               "boxed-list-separate", | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +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-03-01 11:18:15 +01:00
										 |  |  |             Adw.ButtonRow save_row { | 
					
						
							|  |  |  |               title: _("_Create instrument"); | 
					
						
							|  |  |  |               use-underline: true; | 
					
						
							|  |  |  |               activated => $save() swapped; | 
					
						
							| 
									
										
										
										
											2025-03-29 17:53:04 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |               styles [ | 
					
						
							|  |  |  |                 "suggested-action", | 
					
						
							|  |  |  |               ] | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |             } | 
					
						
							| 
									
										
										
										
											2025-01-17 18:33:31 +01:00
										 |  |  |           } | 
					
						
							| 
									
										
										
										
											2025-01-15 11:23:04 +01:00
										 |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |