feat: dock editor panels and add resizable pinned track headers

This commit is contained in:
Johannes Findeisen 2026-11-06 00:06:56 +01:00
commit ae8556d83f
13 changed files with 346 additions and 87 deletions

View file

@ -29,6 +29,14 @@ static const xtc_setting_info schema[] = {
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",sequencer_detached,"Floating sequencer: 0 or 1",0,1),NUM("interface",graph_detached,"Floating graph: 0 or 1",0,1),
NUM("interface",piano_detached,"Floating piano roll: 0 or 1",0,1),
NUM("interface",sequencer_x,"Sequencer X",-32768,32768),NUM("interface",sequencer_y,"Sequencer Y",-32768,32768),
NUM("interface",sequencer_width,"Sequencer window width",1100,3840),NUM("interface",sequencer_height,"Sequencer window height",420,2160),
NUM("interface",graph_x,"Graph X",-32768,32768),NUM("interface",graph_y,"Graph Y",-32768,32768),
NUM("interface",graph_width,"Graph window width",1000,3840),NUM("interface",graph_height,"Graph window height",420,2160),
NUM("interface",piano_x,"Piano X",-32768,32768),NUM("interface",piano_y,"Piano Y",-32768,32768),
NUM("interface",track_header_width,"Pinned track header width",180,360),
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),
@ -60,6 +68,9 @@ 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->piano_detached=1;s->piano_x=s->piano_y=100;s->track_header_width=180;
s->sequencer_x=s->sequencer_y=s->graph_x=s->graph_y=80;
s->sequencer_width=s->graph_width=1100;s->sequencer_height=s->graph_height=650;
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;