mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
rename AppSection -> AppFocus
This commit is contained in:
parent
94738d3e89
commit
58cd51dfbf
7 changed files with 19 additions and 18 deletions
10
src/model.rs
10
src/model.rs
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue