add widget dynamic helper and Split::up

This commit is contained in:
🪞👃🪞 2024-10-18 23:51:58 +03:00
parent 038451e2f4
commit 97af45b576
4 changed files with 47 additions and 17 deletions

View file

@ -12,8 +12,6 @@ pub struct Arranger<E: Engine> {
pub phrases: Arc<RwLock<PhrasePool<E>>>,
/// Phrase editor view
pub editor: PhraseEditor<E>,
/// This allows the sequencer view to be moved or hidden.
pub show_sequencer: Option<tek_core::Direction>,
/// Status bar
pub status: ArrangerStatusBar,
/// Height of arrangement
@ -36,7 +34,10 @@ pub enum ArrangerFocus {
/// Status bar for arranger ap
pub enum ArrangerStatusBar {
Transport,
Arrangement,
ArrangementMix,
ArrangementTrack,
ArrangementScene,
ArrangementClip,
PhrasePool,
PhraseEditor,
}
@ -116,7 +117,6 @@ impl<E: Engine> Arranger<E> {
) -> Self {
let mut app = Self {
focus_cursor: (0, 1),
show_sequencer: Some(tek_core::Direction::Down),
editor: PhraseEditor::new(),
status: ArrangerStatusBar::Transport,
transport,