mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
groovebox: reenable sample list
This commit is contained in:
parent
7af98b7008
commit
d88f4e33eb
6 changed files with 94 additions and 78 deletions
|
|
@ -2,6 +2,32 @@ use crate::*;
|
|||
pub(crate) use std::fmt::Write;
|
||||
pub(crate) use ::tengri::tui::ratatui::prelude::Position;
|
||||
|
||||
view!(TuiOut: |self: Tek| self.size.of(View(self, self.view)); {
|
||||
":nil" =>
|
||||
Box::new("nil"),
|
||||
":transport" =>
|
||||
self.view_transport().boxed(),
|
||||
":arranger" =>
|
||||
ArrangerView::new(self).boxed(),
|
||||
":editor" =>
|
||||
self.editor.as_ref()
|
||||
.map(|e|Bsp::s(Bsp::e(e.clip_status(), e.edit_status()), e))
|
||||
.boxed(),
|
||||
":sample" =>
|
||||
().boxed(),//self.view_sample(self.is_editing()).boxed(),
|
||||
":sampler" =>
|
||||
().boxed(),//self.view_sampler(self.is_editing(), &self.editor).boxed(),
|
||||
":samples-keys" =>
|
||||
self.tracks[0].sampler(0).map(|s|s.view_list(false, self.editor.as_ref().unwrap())).boxed(),
|
||||
":samples-grid" =>
|
||||
self.tracks[0].sampler(0).map(|s|s.view_grid()).boxed(),
|
||||
":status" =>
|
||||
self.view_status().boxed(),
|
||||
":pool" => self.pool.as_ref()
|
||||
.map(|pool|Fixed::x(self.w_sidebar(), PoolView(self.is_editing(), pool)))
|
||||
.boxed(),
|
||||
});
|
||||
|
||||
pub(crate) struct ArrangerView<'a> {
|
||||
app: &'a Tek,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue