wip: trying focus traits and macros again

This commit is contained in:
🪞👃🪞 2024-08-31 23:19:42 +03:00
parent 9f358f8a21
commit 2106a7c044
4 changed files with 78 additions and 35 deletions

View file

@ -1,22 +1,20 @@
//! Clip launcher and arrangement editor.
use crate::*;
use tek_core::Direction;
/// Represents the tracks and scenes of the composition.
pub struct Arranger {
/// Name of arranger
pub name: Arc<RwLock<String>>,
pub name: Arc<RwLock<String>>,
/// Collection of tracks.
pub tracks: Vec<Sequencer>,
pub tracks: Vec<Sequencer>,
/// Collection of scenes.
pub scenes: Vec<Scene>,
pub scenes: Vec<Scene>,
/// Currently selected element.
pub selected: ArrangerFocus,
pub selected: ArrangerFocus,
/// Display mode of arranger
pub mode: ArrangerViewMode,
pub mode: ArrangerViewMode,
/// Slot for modal dialog displayed on top of app.
pub modal: Option<Box<dyn ExitableComponent>>,
pub modal: Option<Box<dyn ExitableComponent>>,
}
impl Arranger {