mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 20:26:42 +01:00
stub out some of the edn command readers
This commit is contained in:
parent
1aa0551931
commit
4fb703d05d
8 changed files with 381 additions and 287 deletions
|
|
@ -19,7 +19,8 @@ pub(crate) use ::tek_jack::{*, jack::*};
|
|||
pub(crate) use ::tek_tui::{
|
||||
*,
|
||||
tek_input::*,
|
||||
tek_output::*,
|
||||
tek_output::*,
|
||||
tek_edn::*,
|
||||
crossterm::event::*,
|
||||
ratatui::style::{Style, Stylize, Color}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -152,6 +152,11 @@ pub enum MidiEditCommand {
|
|||
SetTimeLock(bool),
|
||||
Show(Option<Arc<RwLock<MidiClip>>>),
|
||||
}
|
||||
impl MidiEditCommand {
|
||||
pub fn from_edn <'a> (head: &EdnItem<&str>, tail: &'a [EdnItem<String>]) -> Self {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
handle!(TuiIn: |self: MidiEditor, input|MidiEditCommand::execute_with_state(self, input.event()));
|
||||
keymap!(KEYS_MIDI_EDITOR = |s: MidiEditor, _input: Event| MidiEditCommand {
|
||||
key(Up) => SetNoteCursor(s.note_point() + 1),
|
||||
|
|
|
|||
|
|
@ -36,6 +36,11 @@ pub enum MidiPoolCommand {
|
|||
SetLength(usize, usize),
|
||||
SetColor(usize, ItemColor),
|
||||
}
|
||||
impl MidiPoolCommand {
|
||||
pub fn from_edn <'a> (head: &EdnItem<&str>, tail: &'a [EdnItem<String>]) -> Self {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: HasClips> Command<T> for MidiPoolCommand {
|
||||
fn execute (self, model: &mut T) -> Perhaps<Self> {
|
||||
|
|
@ -191,6 +196,11 @@ pub enum PoolCommand {
|
|||
/// Export to file
|
||||
Export(FileBrowserCommand),
|
||||
}
|
||||
impl PoolCommand {
|
||||
pub fn from_edn <'a> (head: &EdnItem<&str>, tail: &'a [EdnItem<String>]) -> Self {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
command!(|self:PoolCommand, state: PoolModel|{
|
||||
use PoolCommand::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue