mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
wip: fixing some assumptions
This commit is contained in:
parent
5ae99b4ada
commit
2a60808239
11 changed files with 73 additions and 125 deletions
|
|
@ -2,11 +2,6 @@
|
|||
|
||||
use crate::*;
|
||||
|
||||
use self::arr_focus::ArrangerFocus;
|
||||
pub use self::arr_scene::Scene;
|
||||
|
||||
submod! { arr_draw_h arr_draw_v arr_focus arr_phrase arr_scene arr_track }
|
||||
|
||||
/// Key bindings for arranger section.
|
||||
pub const KEYMAP_ARRANGER: &'static [KeyBinding<Arranger>] = keymap!(Arranger {
|
||||
[Char('`'), NONE, "arranger_mode_switch", "switch the display mode", |app: &mut Arranger| {
|
||||
|
|
@ -68,7 +63,7 @@ pub struct Arranger {
|
|||
/// Currently selected element.
|
||||
pub selected: ArrangerFocus,
|
||||
/// Collection of tracks.
|
||||
pub tracks: Vec<Track>,
|
||||
pub tracks: Vec<SequencerTrack>,
|
||||
/// Collection of scenes.
|
||||
pub scenes: Vec<Scene>,
|
||||
|
||||
|
|
@ -135,10 +130,10 @@ impl Arranger {
|
|||
|
||||
render!(Arranger |self, buf, area| match self.mode {
|
||||
ArrangerViewMode::Horizontal =>
|
||||
self::arr_draw_h::draw(self, buf, area),
|
||||
super::arranger_view_h::draw(self, buf, area),
|
||||
ArrangerViewMode::Vertical =>
|
||||
self::arr_draw_v::draw_expanded(self, buf, area),
|
||||
super::arranger_view_v::draw_expanded(self, buf, area),
|
||||
ArrangerViewMode::VerticalCompact =>
|
||||
self::arr_draw_v::draw_compact(self, buf, area),
|
||||
super::arranger_view_v::draw_compact(self, buf, area),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue