63 lines
1.5 KiB
Text
63 lines
1.5 KiB
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $UiPlayQueue: Adw.NavigationPage {
|
|
title: _("Play queue");
|
|
|
|
Adw.ToolbarView {
|
|
[top]
|
|
Adw.HeaderBar {
|
|
Button {
|
|
icon-name: "edit-clear-all";
|
|
clicked => $on_clear ();
|
|
sensitive: bind template.can_clear_all;
|
|
}
|
|
}
|
|
|
|
ScrolledWindow {
|
|
ColumnView view {
|
|
styles [ "data-table" ]
|
|
|
|
model: bind template.selection;
|
|
|
|
//ColumnViewColumn {
|
|
// factory: SignalListItemFactory {
|
|
// setup => $on_delete_cell_setup ();
|
|
// };
|
|
//}
|
|
|
|
ColumnViewColumn {
|
|
title: _("Title");
|
|
expand: true;
|
|
|
|
factory: BuilderListItemFactory {
|
|
template ColumnViewCell {
|
|
child: Label {
|
|
halign: start;
|
|
label: bind template.item as <$SubsonicSong>.title;
|
|
tooltip-text: bind template.item as <$SubsonicSong>.title;
|
|
ellipsize: end;
|
|
};
|
|
}
|
|
};
|
|
}
|
|
|
|
ColumnViewColumn {
|
|
title: _("Artist");
|
|
fixed-width: 200;
|
|
|
|
factory: BuilderListItemFactory {
|
|
template ColumnViewCell {
|
|
child: Label {
|
|
halign: start;
|
|
label: bind template.item as <$SubsonicSong>.artist;
|
|
tooltip-text: bind template.item as <$SubsonicSong>.artist;
|
|
ellipsize: end;
|
|
};
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|