mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
This commit is contained in:
parent
cc88743054
commit
87cd6099ad
11 changed files with 139 additions and 139 deletions
|
|
@ -8,7 +8,7 @@ mod track; pub use self::track::*;
|
|||
mod scene; pub use self::scene::*;
|
||||
|
||||
#[derive(Default, Debug)]
|
||||
pub struct Tek {
|
||||
pub struct App {
|
||||
/// Must not be dropped for the duration of the process
|
||||
pub jack: Jack,
|
||||
/// Source of time
|
||||
|
|
@ -52,7 +52,7 @@ pub struct Tek {
|
|||
/// Whether in edit mode
|
||||
pub editing: AtomicBool,
|
||||
/// Undo history
|
||||
pub history: Vec<TekCommand>,
|
||||
pub history: Vec<AppCommand>,
|
||||
/// Port handles
|
||||
pub ports: std::collections::BTreeMap<u32, Port<Unowned>>,
|
||||
// Cache of formatted strings
|
||||
|
|
@ -63,7 +63,7 @@ pub struct Tek {
|
|||
pub config: Configuration
|
||||
}
|
||||
|
||||
impl Tek {
|
||||
impl App {
|
||||
|
||||
/// Add multiple tracks
|
||||
pub fn tracks_add (
|
||||
|
|
@ -441,13 +441,13 @@ impl Tek {
|
|||
}
|
||||
}
|
||||
|
||||
has_size!(<TuiOut>|self: Tek|&self.size);
|
||||
has_size!(<TuiOut>|self: App|&self.size);
|
||||
|
||||
has_clock!(|self: Tek|self.clock);
|
||||
has_clock!(|self: App|self.clock);
|
||||
|
||||
has_clips!(|self: Tek|self.pool.as_ref().expect("no clip pool").clips);
|
||||
has_clips!(|self: App|self.pool.as_ref().expect("no clip pool").clips);
|
||||
|
||||
has_editor!(|self: Tek|{
|
||||
has_editor!(|self: App|{
|
||||
editor = self.editor;
|
||||
editor_w = {
|
||||
let size = self.size.w();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue