| 
									
										
										
										
											2025-02-09 10:00:46 +01:00
										 |  |  | using Gtk 4.0; | 
					
						
							|  |  |  | using Adw 1; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | template $MusicusTracksEditor: Adw.NavigationPage { | 
					
						
							|  |  |  |   title: _("Tracks"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   Adw.ToolbarView { | 
					
						
							|  |  |  |     [top] | 
					
						
							|  |  |  |     Adw.HeaderBar {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     Gtk.ScrolledWindow { | 
					
						
							|  |  |  |       Adw.Clamp { | 
					
						
							|  |  |  |         Gtk.Box { | 
					
						
							|  |  |  |           orientation: vertical; | 
					
						
							|  |  |  |           margin-bottom: 24; | 
					
						
							|  |  |  |           margin-start: 12; | 
					
						
							|  |  |  |           margin-end: 12; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.Label { | 
					
						
							| 
									
										
										
										
											2025-03-01 08:34:53 +01:00
										 |  |  |             label: _("_Recording"); | 
					
						
							|  |  |  |             use-underline: true; | 
					
						
							|  |  |  |             mnemonic-widget: recording_row; | 
					
						
							| 
									
										
										
										
											2025-02-09 10:00:46 +01:00
										 |  |  |             xalign: 0; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							|  |  |  |               "heading" | 
					
						
							|  |  |  |             ] | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.ListBox { | 
					
						
							|  |  |  |             selection-mode: none; | 
					
						
							|  |  |  |             margin-top: 12; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							|  |  |  |               "boxed-list" | 
					
						
							|  |  |  |             ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             Adw.ActionRow recording_row { | 
					
						
							|  |  |  |               title: _("Select recording"); | 
					
						
							|  |  |  |               activatable: true; | 
					
						
							|  |  |  |               activated => $select_recording() swapped; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |               [prefix] | 
					
						
							|  |  |  |               Gtk.Box select_recording_box { | 
					
						
							|  |  |  |                 Gtk.Image { | 
					
						
							|  |  |  |                   icon-name: "document-edit-symbolic"; | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-02-15 09:08:20 +01:00
										 |  |  |           Gtk.Label tracks_label { | 
					
						
							| 
									
										
										
										
											2025-02-09 10:00:46 +01:00
										 |  |  |             label: _("Tracks"); | 
					
						
							| 
									
										
										
										
											2025-02-15 09:08:20 +01:00
										 |  |  |             sensitive: false; | 
					
						
							| 
									
										
										
										
											2025-02-09 10:00:46 +01:00
										 |  |  |             xalign: 0; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							|  |  |  |               "heading" | 
					
						
							|  |  |  |             ] | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.ListBox track_list { | 
					
						
							|  |  |  |             selection-mode: none; | 
					
						
							|  |  |  |             margin-top: 12; | 
					
						
							| 
									
										
										
										
											2025-02-15 09:08:20 +01:00
										 |  |  |             sensitive: false; | 
					
						
							| 
									
										
										
										
											2025-02-09 10:00:46 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							|  |  |  |               "boxed-list" | 
					
						
							|  |  |  |             ] | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 08:55:04 +01:00
										 |  |  |             Adw.ButtonRow { | 
					
						
							| 
									
										
										
										
											2025-03-01 08:34:53 +01:00
										 |  |  |               title: _("Add _files"); | 
					
						
							| 
									
										
										
										
											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; | 
					
						
							| 
									
										
										
										
											2025-02-09 10:00:46 +01:00
										 |  |  |               activated => $add_files() swapped; | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.ListBox { | 
					
						
							|  |  |  |             selection-mode: none; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             styles [ | 
					
						
							|  |  |  |               "boxed-list" | 
					
						
							|  |  |  |             ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             Adw.ButtonRow save_row { | 
					
						
							| 
									
										
										
										
											2025-03-01 08:34:53 +01:00
										 |  |  |               title: _("_Import tracks"); | 
					
						
							|  |  |  |               use-underline: true; | 
					
						
							| 
									
										
										
										
											2025-02-09 10:00:46 +01:00
										 |  |  |               activated => $save() swapped; | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |