mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
more doc string and reexport fixes
This commit is contained in:
parent
107e38278e
commit
dc1f5f4a17
13 changed files with 37 additions and 48 deletions
32
src/model.rs
32
src/model.rs
|
|
@ -1,24 +1,10 @@
|
|||
//! Application state.
|
||||
|
||||
pub mod looper;
|
||||
pub mod mixer;
|
||||
pub mod phrase;
|
||||
pub mod plugin;
|
||||
pub mod sampler;
|
||||
pub mod scene;
|
||||
pub mod track;
|
||||
pub mod transport;
|
||||
|
||||
pub use self::phrase::{Phrase, PhraseData};
|
||||
pub use self::scene::Scene;
|
||||
pub use self::track::Track;
|
||||
pub use self::sampler::{Sampler, Sample, read_sample_data};
|
||||
pub use self::mixer::Mixer;
|
||||
pub use self::plugin::{Plugin, PluginKind, lv2::LV2Plugin};
|
||||
pub use self::transport::{TransportToolbar, TransportFocus};
|
||||
submod! { looper mixer phrase plugin sampler scene track transport }
|
||||
|
||||
use crate::{core::*, view::*};
|
||||
|
||||
/// Root of application state.
|
||||
pub struct App {
|
||||
/// Main JACK client.
|
||||
pub jack: Option<JackClient>,
|
||||
|
|
@ -156,9 +142,19 @@ impl App {
|
|||
}
|
||||
}
|
||||
|
||||
/// Different sections of the UI that may be focused.
|
||||
#[derive(PartialEq, Clone, Copy)]
|
||||
pub enum AppFocus { Transport, Arranger, Sequencer, Chain, }
|
||||
impl Default for AppFocus { fn default () -> Self { Self::Arranger } }
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue