mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
wip: 12 errors
This commit is contained in:
parent
ea5bc2e3b1
commit
e0c8a427f1
9 changed files with 65 additions and 66 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use crate::*;
|
||||
impl<'a> Arranger<Tui> {
|
||||
impl Arranger<Tui> {
|
||||
pub fn rename_selected (&mut self) {
|
||||
self.modal = Some(Box::new(ArrangerRenameModal::new(
|
||||
self.selected,
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ impl Phrase {
|
|||
}}
|
||||
}
|
||||
|
||||
impl<T, U> Arranger<T, U> {
|
||||
impl<E: Engine> Arranger<E> {
|
||||
pub fn phrase (&self) -> Option<&Arc<RwLock<Phrase>>> {
|
||||
let track_id = self.selected.track()?;
|
||||
self.tracks.get(track_id)?.phrases.get((*self.scene()?.clips.get(track_id)?)?)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use crate::*;
|
||||
|
||||
impl Handle<Tui> for TransportQuantize {
|
||||
impl Handle<Tui> for Sequencer {
|
||||
fn handle (&mut self, from: &Tui) -> Perhaps<bool> {
|
||||
handle_keymap(self, &from.event(), KEYMAP_SEQUENCER)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,13 +2,14 @@ use crate::*;
|
|||
|
||||
impl Handle<Tui> for TransportToolbar {
|
||||
fn handle (&mut self, from: &Tui) -> Perhaps<bool> {
|
||||
Ok(
|
||||
from.key(KeyCode::Right).does(||self.focus_next())?
|
||||
||
|
||||
from.key(KeyCode::Left).does(||self.focus_prev())?
|
||||
||
|
||||
from.key(KeyCode::Char(' ')).does(||self.toggle_play())?
|
||||
)
|
||||
Ok(None)
|
||||
//Ok(
|
||||
//from.key(KeyCode::Right).does(||self.focus_next())?
|
||||
//||
|
||||
//from.key(KeyCode::Left).does(||self.focus_prev())?
|
||||
//||
|
||||
//from.key(KeyCode::Char(' ')).does(||self.toggle_play())?
|
||||
//)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue