mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
stub save/load/options
This commit is contained in:
parent
6f6078e25a
commit
57102d7e6b
7 changed files with 54 additions and 15 deletions
|
|
@ -59,6 +59,9 @@ impl App {
|
|||
.enclose(self.dialog.as_ref().map(|dialog|match dialog {
|
||||
Dialog::Menu => self.view_dialog_menu().boxed(),
|
||||
Dialog::Help => self.view_dialog_help().boxed(),
|
||||
Dialog::Save => self.view_dialog_save().boxed(),
|
||||
Dialog::Load => self.view_dialog_load().boxed(),
|
||||
Dialog::Options => self.view_dialog_options().boxed(),
|
||||
Dialog::Device(index) => self.view_dialog_device(*index).boxed(),
|
||||
Dialog::Message(message) => self.view_dialog_message(message).boxed(),
|
||||
}))
|
||||
|
|
@ -115,6 +118,18 @@ impl App {
|
|||
Bsp::s(message, Bsp::s("", "[ OK ]"))
|
||||
}
|
||||
|
||||
fn view_dialog_save <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
"WIP: SAVE"
|
||||
}
|
||||
|
||||
fn view_dialog_load <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
"WIP: LOAD"
|
||||
}
|
||||
|
||||
fn view_dialog_options <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||
"WIP: OPTIONS"
|
||||
}
|
||||
|
||||
/// Spacing between tracks.
|
||||
pub(crate) const TRACK_SPACING: usize = 0;
|
||||
|
||||
|
|
@ -289,8 +304,8 @@ impl<'a> ArrangerView<'a> {
|
|||
pub(crate) fn devices (&'a self) -> impl Content<TuiOut> + 'a {
|
||||
let Self { width_side, width_mid, track_count, track_selected, is_editing, .. } = self;
|
||||
Tryptich::top(1)
|
||||
.left(*width_side, button_3("z", "devices", format!("{}", 0), *is_editing))
|
||||
.right(*width_side, button_2("Z", "add device", *is_editing))
|
||||
.left(*width_side, button_3("d", "devices", format!("{}", 0), *is_editing))
|
||||
.right(*width_side, button_2("D", "add device", *is_editing))
|
||||
.middle(*width_mid, per_track_top(*width_mid, ||self.tracks_with_sizes_scrolled(),
|
||||
move|index, track|{
|
||||
let bg = if *track_selected == Some(index) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue