rename AppSection -> AppFocus

This commit is contained in:
🪞👃🪞 2024-07-12 19:11:47 +03:00
parent 94738d3e89
commit 58cd51dfbf
7 changed files with 19 additions and 18 deletions

View file

@ -36,7 +36,7 @@ pub struct App {
/// Optional modal dialog
pub modal: Option<Box<dyn Exit>>,
/// Currently focused section
pub section: AppSection,
pub section: AppFocus,
/// Whether the current focus section has input priority
pub entered: bool,
/// Display position of cursor within note range
@ -82,7 +82,7 @@ impl App {
note_start: 2,
scene_cursor: 1,
scenes: vec![],
section: AppSection::default(),
section: AppFocus::default(),
seq_mode: false,
seq_buf: BufferedSequencerView::new(96, 16384),
time_cursor: 0,
@ -155,9 +155,9 @@ impl App {
}
#[derive(PartialEq, Clone, Copy)]
pub enum AppSection { Transport, Arranger, Sequencer, Chain, }
impl Default for AppSection { fn default () -> Self { Self::Arranger } }
impl AppSection {
pub enum AppFocus { Transport, Arranger, Sequencer, Chain, }
impl Default for AppFocus { fn default () -> Self { Self::Arranger } }
impl AppFocus {
pub fn prev (&mut self) {
*self = match self {
Self::Transport => Self::Chain,