mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
wip: rename phrase
This commit is contained in:
parent
db2a2efa63
commit
4081c23aea
2 changed files with 21 additions and 2 deletions
|
|
@ -30,7 +30,11 @@ pub struct PhrasePool<E: Engine> {
|
|||
pub phrases: Vec<Arc<RwLock<Phrase>>>,
|
||||
/// Whether this widget is focused
|
||||
pub focused: bool,
|
||||
/// Mode switch
|
||||
pub mode: Option<PhrasePoolMode>,
|
||||
}
|
||||
/// Modes for phrase pool
|
||||
pub enum PhrasePoolMode { Rename(usize) }
|
||||
/// A MIDI sequence.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Phrase {
|
||||
|
|
@ -129,7 +133,8 @@ impl<E: Engine> PhrasePool<E> {
|
|||
scroll: 0,
|
||||
phrase: 0,
|
||||
phrases: vec![Arc::new(RwLock::new(Phrase::default()))],
|
||||
focused: false
|
||||
focused: false,
|
||||
mode: None,
|
||||
}
|
||||
}
|
||||
pub fn phrase (&self) -> &Arc<RwLock<Phrase>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue