Commit Graph

32648 Commits

Author SHA1 Message Date
Paul Davis
9d54bb08e7 remove almost all of RegionRippleDrag, collapsing down to just collecting additional RegionViews that need to be moved during the drag 2021-08-13 12:51:27 -06:00
Paul Davis
46fa558bc6 finalize removal of splicing code from ARDOUR::Playlist 2021-08-13 12:51:27 -06:00
Paul Davis
963d2b6906 use Playlist::rdiff_and_add_command() rather than explicit code 2021-08-13 12:51:27 -06:00
Paul Davis
90e4adfed1 ripple drag never allows y motion 2021-08-13 12:51:27 -06:00
Paul Davis
77e67809f9 we removed Splice mode from the GUI 7 years ago; now remove all code related to Splice mode (GUI edition) 2021-08-13 12:51:27 -06:00
Paul Davis
43c713d0ef we removed Splice mode from the GUI 7 years ago; now remove all code related to Splice mode 2021-08-13 12:51:27 -06:00
Paul Davis
ece174ca47 region selection toggle in RippleAll mode applies across all tracks 2021-08-13 12:51:27 -06:00
Paul Davis
38cb16f521 in ripple all edit mode, extend-region selection operation works across all tracks 2021-08-13 12:51:27 -06:00
Paul Davis
e5175f51d6 make region-selection on click apply across tracks if RippleAll is in use 2021-08-13 12:51:27 -06:00
Paul Davis
eac366ec8e remove RegionRippleDrag::allow_moves_across_tracks since this was already unconditionally set to false
It was also commented "rippling across all tracks is the future", and created notable technical debt
2021-08-13 12:51:27 -06:00
Paul Davis
5c830233ec implement ripple-all via select-all for selection drags 2021-08-13 12:51:27 -06:00
Paul Davis
636f1331e8 stop using ripple callback API, add Editor::should_ripple() and Editor::do_ripple() to manage rippling 2021-08-13 12:51:27 -06:00
Paul Davis
a2b3e31e10 libardour: remove ripple callback API, and fix deadlock issues with ripple/ripple_locked/ripple_unlocked/remove_gaps 2021-08-13 12:51:27 -06:00
Paul Davis
8e2c5239c4 add a 2nd glib log handler setup call, because for reasons not entirely clear, g_log_set_handler(NULL, ...) doesn't cover all g_logv messages 2021-08-13 12:51:27 -06:00
Paul Davis
27456b93ad initial addition of Ripple All edit mode to GUI 2021-08-13 12:51:27 -06:00
Paul Davis
2f11a49103 Add "Ripple All" edit mode to libardour 2021-08-13 12:51:27 -06:00
Paul Davis
e7595f2cd5 follow modified Playlist ripple callback API 2021-08-13 12:51:27 -06:00
Paul Davis
815abed5c5 alter API for playlist ripple callback, to provide required information 2021-08-13 12:51:27 -06:00
Paul Davis
0e2bd5383c GUI changes to follow new Playlist::ripple() API
Current ripple callback does nothing at all
2021-08-13 12:51:27 -06:00
Paul Davis
447e80a247 add a callback argument to Playlist::ripple() so that the caller can arrange for a response after a single ripple
Also add Playlist::rdiff_and_add_command() to consolidate what is required to save
playlist state in an (undo/redo) Command
2021-08-13 12:51:27 -06:00
Paul Davis
82bad0725a libcanvas: reapply LineSet::add_line -> add_coord change after rebase conflicts with master 2021-08-13 12:51:27 -06:00
Paul Davis
19768953bf beatbox: continued work on packing/arranging the GUI 2021-08-13 12:51:27 -06:00
Paul Davis
da723e1dd0 Beatbox: continuing work on laying out the GUI using ConstraintPacker 2021-08-13 12:51:27 -06:00
Paul Davis
54de7c70ee Canvas: print item colors in hex when debugging 2021-08-13 12:51:27 -06:00
Paul Davis
86a31e34ba Canvas: fix recursive calling of Item::size_allocate()
ConstraintPacker is the one Item-derivative that should NOT call Item::size_allocate_children()
because it just did the size computation for its children and called their
::constrained() method, which in turns calls size_allocate() with the correct size
2021-08-13 12:51:27 -06:00
Paul Davis
dbe37d2752 Canvas: make possible even more debugging of constraint packing 2021-08-13 12:51:27 -06:00
Paul Davis
f118b3ab53 Canvas: remove dangling cairo path in Arc or ConstraintPacker if fill was requested but not outline 2021-08-13 12:51:27 -06:00
Paul Davis
1d96bad59f Canvas: remove cBox (API fully merged into ConstraintPacker) 2021-08-13 12:51:27 -06:00
Paul Davis
1b66890547 Canvas: continuing move of cBox functionality into ConstraintPacker 2021-08-13 12:51:27 -06:00
Paul Davis
4e82279ce4 Canvas: next step of merging cBox and ConstraintPacker 2021-08-13 12:51:27 -06:00
Paul Davis
af60c50990 first steps in merging cBox into constraint packer 2021-08-13 12:51:27 -06:00
Paul Davis
860d43697c Canvas: propagate ::size_allocate() down the item tree
This previously wasn't done because of fear that it would affect the traditional fixed-sized canvas,
but only items that _layout_sensitive (i.e. are packed into a constraint packer directly) will
actually do anything in ::size_allocate().

Possibly might want to relax this to cover items that have a constraint packer between them
and a root group.
2021-08-13 12:51:27 -06:00
Paul Davis
d51893dec6 start repacking beatbox GUI using constraint packing 2021-08-13 12:51:27 -06:00
Paul Davis
28f85747ca Canvas: fix behavior of Rectangle when used in a constraint packer
::size_allocate() sets the _position *and* the "self" rect appropriately
2021-08-13 12:51:27 -06:00
Paul Davis
3c2bd05750 Canvas: remove debug output 2021-08-13 12:51:27 -06:00
Paul Davis
fa2885d2d6 Canvas: do not fill containers by default (added during constraint packing work; badly affects the regular canvas) 2021-08-13 12:51:27 -06:00
Paul Davis
10473ab3a6 build gtk2_ardour again 2021-08-13 12:51:27 -06:00
Paul Davis
9909917976 Canvas: remove unnecessary and conflicting enum 2021-08-13 12:51:27 -06:00
Paul Davis
2e4d228f54 manual fixes for constraint-packer -> newbbgui merge 2021-08-13 12:51:27 -06:00
Paul Davis
2b39c5e0f0 fix header file rename that happened since this branch was last worked on 2021-08-13 12:51:27 -06:00
Paul Davis
498458c046 another try at newer-boost::rational fixes 2021-08-13 12:51:27 -06:00
Paul Davis
1dcf797311 probably fix compilation with newer Boost::Rational library 2021-08-13 12:51:27 -06:00
Paul Davis
d52fce70bd export step sequencer pattern to SMF, GUI side 2021-08-13 12:51:27 -06:00
Paul Davis
5c886ecb6e export step sequencer pattern to SMF 2021-08-13 12:51:27 -06:00
Paul Davis
617fcd660c add operator% and operator%= to Temporal::Beats (taken from nutempo) 2021-08-13 12:51:27 -06:00
Paul Davis
997f126643 more games with bbgui gui layout 2021-08-13 12:51:27 -06:00
Paul Davis
93d2f6f433 remove debug output 2021-08-13 12:51:27 -06:00
Paul Davis
f2e2cce343 fix an unfortunate "side-effect" of the frame->sample renaming 2021-08-13 12:51:27 -06:00
Paul Davis
d30cd17b8b more tweaks for beatbox gui 2021-08-13 12:51:27 -06:00
Paul Davis
b18aaf0c7c Rectangle border/sizing behaves like CSS border-box 2021-08-13 12:51:27 -06:00