2024-10-10 10:12:43 +00:00
|
|
|
using Gtk 4.0;
|
|
|
|
using Adw 1;
|
|
|
|
|
2024-10-13 09:41:01 +00:00
|
|
|
template $UiPlayQueue: Adw.NavigationPage {
|
2024-10-10 10:12:43 +00:00
|
|
|
title: _("Play queue");
|
|
|
|
|
|
|
|
Adw.ToolbarView {
|
|
|
|
[top]
|
2024-10-12 16:35:42 +00:00
|
|
|
Adw.HeaderBar {
|
|
|
|
Button {
|
|
|
|
icon-name: "edit-clear-all";
|
2024-10-15 11:27:47 +00:00
|
|
|
clicked => $on_clear ();
|
2024-10-12 16:35:42 +00:00
|
|
|
sensitive: bind template.can_clear_all;
|
|
|
|
}
|
|
|
|
}
|
2024-10-10 10:12:43 +00:00
|
|
|
|
|
|
|
ScrolledWindow {
|
2024-10-19 11:07:22 +00:00
|
|
|
ListView view {
|
2024-10-16 09:43:11 +00:00
|
|
|
model: bind template.selection;
|
2024-10-15 11:27:47 +00:00
|
|
|
|
2024-10-19 11:07:22 +00:00
|
|
|
factory: SignalListItemFactory {
|
|
|
|
setup => $on_song_list_setup ();
|
|
|
|
bind => $on_song_list_bind ();
|
|
|
|
};
|
2024-10-10 10:12:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|