mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
reenable editor in standalone sequencer/groovebox
This commit is contained in:
parent
4b998eaae0
commit
ab37e2e7d4
4 changed files with 13 additions and 18 deletions
|
|
@ -289,9 +289,7 @@ impl Tek {
|
|||
.map(|(_, _, _, y)|y as u16).unwrap_or(0)
|
||||
}
|
||||
|
||||
pub(crate) fn inputs_with_sizes (&self)
|
||||
-> impl PortsSizes<'_>
|
||||
{
|
||||
pub(crate) fn inputs_with_sizes (&self) -> impl PortsSizes<'_> {
|
||||
let mut y = 0;
|
||||
self.midi_ins.iter().enumerate().map(move|(i, input)|{
|
||||
let height = 1 + input.conn().len();
|
||||
|
|
@ -301,9 +299,7 @@ impl Tek {
|
|||
})
|
||||
}
|
||||
|
||||
pub(crate) fn outputs_with_sizes (&self)
|
||||
-> impl PortsSizes<'_>
|
||||
{
|
||||
pub(crate) fn outputs_with_sizes (&self) -> impl PortsSizes<'_> {
|
||||
let mut y = 0;
|
||||
self.midi_outs.iter().enumerate().map(move|(i, output)|{
|
||||
let height = 1 + output.conn().len();
|
||||
|
|
@ -313,9 +309,7 @@ impl Tek {
|
|||
})
|
||||
}
|
||||
|
||||
pub(crate) fn tracks_with_sizes (&self)
|
||||
-> impl TracksSizes<'_>
|
||||
{
|
||||
pub(crate) fn tracks_with_sizes (&self) -> impl TracksSizes<'_> {
|
||||
let mut x = 0;
|
||||
let editing = self.is_editing();
|
||||
let active = match self.selected() {
|
||||
|
|
@ -352,13 +346,11 @@ impl Tek {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
/// Define a type alias for iterators of sized items (columns).
|
||||
macro_rules! def_sizes_iter {
|
||||
($Type:ident => $($Item:ty),+) => {
|
||||
pub(crate) trait $Type<'a> =
|
||||
Iterator<Item=(usize, $(&'a $Item,)+ usize, usize)> + Send + Sync + 'a;}}
|
||||
|
||||
def_sizes_iter!(ScenesSizes => Scene);
|
||||
def_sizes_iter!(TracksSizes => Track);
|
||||
def_sizes_iter!(InputsSizes => JackMidiIn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue