mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
reenable adding tracks/scenes
This commit is contained in:
parent
62bfb0120b
commit
f1f5ac63e1
4 changed files with 52 additions and 139 deletions
|
|
@ -108,50 +108,23 @@ impl App {
|
|||
pub fn view_audio_outs_status (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
self.project.view_audio_outs_status(self.color)
|
||||
}
|
||||
pub fn view_arranger_scenes (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
pub fn view_tracks_scenes (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
Bsp::e(
|
||||
Fixed::x(20, Align::nw(self.project.view_scenes_names())),
|
||||
Bsp::w(self.view_pool(), self.project.view_scenes_clips()),
|
||||
)
|
||||
}
|
||||
pub fn view_arranger_inputs <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
Fixed::y(3, self.project.view_track_inputs(self.color))
|
||||
pub fn view_tracks_inputs <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
Fixed::y(2, self.project.view_track_inputs(self.color))
|
||||
}
|
||||
pub fn view_arranger_outputs <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
pub fn view_tracks_outputs <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
Fixed::y(3, self.project.view_track_outputs(self.color))
|
||||
}
|
||||
pub fn view_arranger_devices <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
pub fn view_tracks_devices <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
Fixed::y(3, self.project.view_track_devices(self.color))
|
||||
}
|
||||
pub fn view_arranger_tracks <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
Fixed::y(3, self.project.view_track_names(self.color))
|
||||
}
|
||||
pub fn view_arranger_track_names (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
self.project.view_track_names(self.color)
|
||||
}
|
||||
pub fn view_arranger_track_outputs <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
self.project.view_track_outputs(self.color)
|
||||
}
|
||||
pub fn view_arranger_track_inputs <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
self.project.view_track_inputs(self.color)
|
||||
}
|
||||
pub fn view_arranger_track_devices <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
self.project.view_track_devices(self.color)
|
||||
}
|
||||
pub fn view_arranger_track_scenes <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
let mut max_devices = 0u16;
|
||||
for track in self.project.tracks.iter() {
|
||||
max_devices = max_devices.max(track.devices.len() as u16);
|
||||
}
|
||||
Bsp::w(
|
||||
Fixed::x(20, Tui::bg(self.color.darkest.rgb,
|
||||
col!(Tui::bold(true, "Devices"), "[d] Select", "[D] Add"))),
|
||||
Fixed::y(max_devices + 1, Tui::bg(self.color.darker.rgb, Align::w(Fill::x(Map::new(
|
||||
||self.project.tracks_with_sizes_scrolled(),
|
||||
move|(index, track, x1, x2): (usize, &'a Track, usize, usize), _|
|
||||
Push::x(x2 as u16, Fixed::xy(track.width as u16, max_devices + 1,
|
||||
Align::nw(Map::south(1, ||track.devices.iter(),
|
||||
|device, index|format!("{index}: {}", device.name())))))))))))
|
||||
pub fn view_tracks_tracks <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
Fixed::y(1, self.project.view_track_names(self.color))
|
||||
}
|
||||
pub fn view_pool (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
Fixed::x(20, Bsp::s(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue