mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
remove ArrangerView<'a>
This commit is contained in:
parent
e9b4a2ca78
commit
a7f37e52cf
12 changed files with 843 additions and 949 deletions
|
|
@ -77,16 +77,13 @@ impl App {
|
|||
self.project.view_audio_outs_status(self.color)
|
||||
}
|
||||
pub fn view_arranger (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
ArrangerView::new(&self.project, self.editor.as_ref())
|
||||
}
|
||||
pub fn view_arranger_scenes (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
self.scenes_view(&self.editor)
|
||||
&self.project
|
||||
}
|
||||
pub fn view_arranger_scenes_names (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
self.scenes_names()
|
||||
self.project.view_scenes_names()
|
||||
}
|
||||
pub fn view_arranger_scenes_clips (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
self.scenes_clips(&self.editor)
|
||||
self.project.view_scenes_clips(&self.editor)
|
||||
}
|
||||
pub fn view_arranger_track_names (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
self.project.view_track_names(self.color)
|
||||
|
|
@ -258,15 +255,9 @@ impl ScenesView for App {
|
|||
fn scene_selected (&self) -> Option<usize> {
|
||||
self.project.selection.scene()
|
||||
}
|
||||
fn scene_last (&self) -> usize {
|
||||
self.project.scenes.len().saturating_sub(1)
|
||||
}
|
||||
fn track_selected (&self) -> Option<usize> {
|
||||
self.project.selection.track()
|
||||
}
|
||||
fn is_editing (&self) -> bool {
|
||||
self.editor.is_some()
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn heading <'a> (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue