feat: persist floating panel layouts and wrap the compact transport

This commit is contained in:
Johannes Findeisen 2026-11-05 23:57:56 +01:00
commit 73e8bf09dc
9 changed files with 149 additions and 13 deletions

View file

@ -23,6 +23,12 @@ static const xtc_setting_info schema[] = {
STR("plugins",ladspa_paths,"LADSPA search paths (colon-separated)"),
NUM("interface",width,"Main window width",1220,3840), NUM("interface",height,"Main window height",720,2160),
NUM("interface",piano_width,"Piano window width",800,3840), NUM("interface",piano_height,"Piano window height",520,2160),
NUM("interface",transport_detached,"Floating transport: 0 or 1",0,1),
NUM("interface",mixer_detached,"Floating mixer: 0 or 1",0,1),
NUM("interface",transport_x,"Transport window X",-32768,32768),NUM("interface",transport_y,"Transport window Y",-32768,32768),
NUM("interface",transport_width,"Transport width",400,3840),NUM("interface",transport_height,"Transport height",130,2160),
NUM("interface",mixer_x,"Mixer window X",-32768,32768),NUM("interface",mixer_y,"Mixer window Y",-32768,32768),
NUM("interface",mixer_width,"Mixer window width",600,3840),NUM("interface",mixer_height,"Mixer window height",420,2160),
NUM("interface",refresh_ms,"Display refresh interval, ms",20,1000),
NUM("editing",sequencer_snap,"Sequencer snap ticks (1 means Off)",1,3840),
NUM("editing",piano_snap,"Piano snap ticks (1 means Off)",1,3840),
@ -54,6 +60,8 @@ void xtc_settings_defaults(xtc_settings *s)
strcpy(s->ladspa_paths,"~/.ladspa:/usr/local/lib/ladspa:/usr/lib/ladspa");
s->max_frames=65536; s->channels=2; s->transition_ms=5; s->offline_rate=48000; s->recording_seconds=2;
s->width=1280; s->height=800; s->piano_width=900; s->piano_height=620; s->refresh_ms=100;
s->transport_x=s->transport_y=80;s->transport_width=800;s->transport_height=300;
s->mixer_x=s->mixer_y=100;s->mixer_width=1056;s->mixer_height=600;
s->sequencer_snap=s->piano_snap=240; s->sequencer_zoom=48; s->clip_ticks=3840; s->note_ticks=960;
s->note_velocity=100; s->filter_channel=-1; s->filter_high=127; s->tempo=120000;
s->volume_cc=7; s->pan_cc=10; s->sustain_cc=64; s->loop_end=3840;s->tail_ms=3000;