mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
add new Selection variants
This commit is contained in:
parent
7b432d12b4
commit
8adbdc5bc7
4 changed files with 161 additions and 109 deletions
|
|
@ -23,7 +23,7 @@ expose!([self: Tek]
|
|||
(":track" self.selected.track()))
|
||||
([MaybeClip]
|
||||
(":clip" match self.selected {
|
||||
Selection::Clip(t, s) => self.scenes[s].clips[t].clone(),
|
||||
Selection::TrackClip { track, scene } => self.scenes[scene].clips[track].clone(),
|
||||
_ => None
|
||||
}))
|
||||
([Selection]
|
||||
|
|
@ -70,7 +70,7 @@ impose!([app: Tek]
|
|||
(0, 0) => Self::Select(Selection::Mix),
|
||||
(t, 0) => Self::Select(Selection::Track(t)),
|
||||
(0, s) => Self::Select(Selection::Scene(s)),
|
||||
(t, s) => Self::Select(Selection::Clip(t, s)) })))
|
||||
(t, s) => Self::Select(Selection::TrackClip { track: t, scene: s }) })))
|
||||
|
||||
(ClipCommand:
|
||||
("edit" [a: MaybeClip] Some(Self::Edit(a.unwrap())))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue