Commit graph

21614 commits

Author SHA1 Message Date
Robin Gareus
911399f8b3
Use same rounding for wave-view rectangle as TAV
Previously the waveform could exceed the AudioRegionView's
Rectangle on either side due to rounding.

```
round ((start - end) / spp) != round (start/spp) - round (end/spp)
```
2024-11-28 15:00:36 +01:00
Paul Davis
0132a0b8ad amend GdkQuartzView:drawRect to be able to show both the exposed and "leftover" areas
To activate, run a debug build with ARDOUR_SHOW_QUARTZ_INVALIDATION set in the environment
2024-11-26 19:02:42 -07:00
Paul Davis
8c0c9cc115 somewhat sort of working clip start drag 2024-11-25 17:54:15 -07:00
Paul Davis
c39de501a3 triggerbox: significantly re-design MIDI Triggers to allow for bounds editing 2024-11-24 13:25:58 -07:00
Paul Davis
7af9442098 NO-OP: add explanatory comment 2024-11-24 13:25:58 -07:00
Paul Davis
53773bb8cb send correct property change for MIDI trigger when region changes
This may need an adjustment in the GUI
2024-11-24 13:25:58 -07:00
Paul Davis
83f501f084 send correct property change for audio trigger when region changes
This may need an adjustment in the GUI
2024-11-24 13:25:58 -07:00
Robin Gareus
448914b4cc
Change default file-format to wav compatible RF64 2024-11-23 17:04:25 +01:00
Ben Loftis
23ba0f8338 fix for 'green' canvas redraws: cairo expects x,y,w,h not x,y,x+,y+ 2024-11-23 08:43:44 -06:00
Paul Davis
9ab42f8d14 fix error in hastily introduced DEBUG_TRACE statement 2024-11-22 09:34:45 -07:00
Paul Davis
a162250682 fix MIDI triggers where region start/end are not the source start/end 2024-11-22 09:33:38 -07:00
Paul Davis
4fbdf0d680 macOS: catch spurious full redraw calls to NSView:drawRect and act appropriately 2024-11-21 14:07:31 -07:00
Robin Gareus
940e1bc2df
NO-OP: rename layout widgets for clarity 2024-11-20 18:56:20 +01:00
Robin Gareus
218b264c60
Use evenbox as parent for main window content
This fixes an issue with mouse-cursor contexts.
Eventbox is backed by a [gdk] window, each of which
has their own Gdk::Window::set_cursor.
2024-11-20 18:42:38 +01:00
Robin Gareus
4a99026cc9
Revert "Replace boost::aligned_storage with alignas std::array"
This reverts commit 32ff87f7f6.

This causes issues on macOS/clang
```
../libs/pbd/pbd/stack_allocator.h:152:53: note: destructor of 'StackAllocator<std::__tree_node<std::__value_type<ARDOUR::DataType, std::map<unsigned int, unsigned int, std::less<unsigned int>, PBD::StackAllocator<std::pair<const unsigned int, unsigned int>, 16>>>, void *>, 2>' is implicitly deleted because field '_buf' has a deleted destructor
  152 |         alignas(16) std::array<value_type, stack_capacity> _buf;
```
2024-11-19 18:03:23 +01:00
Robin Gareus
4a966d5015
DndVBox: implement drag-refuse and drag move action 2024-11-19 17:36:53 +01:00
Alejandro Domínguez
fa57d5ed86
Disambiguate std and boost placeholder 2024-11-17 20:20:23 +01:00
Robin Gareus
09eeca09a9
Remove unused includes 2024-11-17 20:08:14 +01:00
Alejandro Domínguez
32ff87f7f6
Replace boost::aligned_storage with alignas std::array 2024-11-17 18:43:08 +01:00
Robin Gareus
5aaec05429
Add Latch Automation for MCP
see https://discourse.ardour.org/t/cannot-activate-latch-automation-state-via-x-touch-in-mackie-mode/110969
2024-11-16 22:17:29 +01:00
Robin Gareus
3625c28d54
Remove ambiguous enum bit combinations 2024-11-16 19:39:20 +01:00
Robin Gareus
983466fc38
Flexible Layout, resizable bottom pane. 2024-11-16 19:30:04 +01:00
Robin Gareus
438a514c2b
NO-OP: clarify Tabbable layout and attachment enum 2024-11-15 14:10:56 +01:00
Robin Gareus
5c8bd6e977
Tweak Tabbable Layout
* allow for left side resizable pane
* automatically set attachment button sensitivity
* remove right-side pane box when unused
2024-11-15 04:38:43 +01:00
Paul Davis
b8e1f67b75 C++ demangnling: make it work on macOS as well as linux 2024-11-10 22:07:58 -07:00
Robin Gareus
2e4f0e8181
Use attachment icons 2024-11-10 23:27:36 +01:00
Robin Gareus
f3ff1a1100
Add Attachment icons 2024-11-10 23:27:36 +01:00
Robin Gareus
0f0006cebc
Debug set_session(0) calls preventing session_going_away() 2024-11-10 23:27:36 +01:00
Robin Gareus
82a9fc4abb
Remove unused tabbed-changed callback 2024-11-10 23:27:35 +01:00
Robin Gareus
b2e4dd91b9
Update Tabbable c'tor to allow member as top-level widget
Derived classes cannot use `Tabbable (_content_vbox,..)`
`_content_vbox` is a member of Tabbable (which has not
yet been initialized) at the point of construction.

This breaks internal API, hence the omnibus commit
2024-11-10 23:27:34 +01:00
Robin Gareus
8ca9e6bcdd
Tabbable overhaul: consistent toplevel packing 2024-11-10 23:27:34 +01:00
Robin Gareus
2066f7018d
ArdourButton: add option to expand buttons to be square 2024-11-10 23:27:30 +01:00
Paul Davis
f8f6e5d2ab implement newly-required inclusion of <cassert> 2024-11-07 16:10:02 -07:00
Juan Vardy
f2fc5fc0dc
Update Spanish translation 2024-11-07 17:51:11 +01:00
Robin Gareus
efbc8b4390
Turn touchscreen debug prints into gdk-debug messages 2024-11-07 06:13:12 +01:00
Paul Davis
2ad12280f6 fix erroneous API changes related to ::reset_write_sources() introduced in midilen branch
This restores peak file building after capture
2024-11-06 18:59:44 -07:00
Alejandro Domínguez
5223b176f3
Replace boost::shared_array<T> with std::shared_ptr<T[]> 2024-11-06 23:03:19 +01:00
Robin Gareus
a3d4888be3
Replace boost::format with PBD::string_compose 2024-11-06 22:55:56 +01:00
Alejandro Domínguez
9544855fdd
Remove unused headers 2024-11-06 22:50:35 +01:00
Robin Gareus
5f2371a9e2
Fix 30dc9ccc86, buf2 needs to remain in scope.
This fixes a heap-use-after-free.
2024-11-06 17:24:25 +01:00
Robin Gareus
ba4d9709c6
Properly check for syscall (#9845) 2024-11-06 04:08:19 +01:00
Paul Davis
ea64eb87c5 canvas; fix thinko and typo in Rectangle size_request() 2024-11-05 15:02:06 -07:00
Paul Davis
a3deba207e Canvas: auto-fy a couple of lops in Box::reposition_children() 2024-11-05 14:58:44 -07:00
Paul Davis
e6758b6ba8 Canvas; make button handle dynamic size allocation 2024-11-05 14:56:37 -07:00
Paul Davis
b500eeb36e canvas; fix indent in Text::dump() 2024-11-05 14:56:11 -07:00
Paul Davis
5808c6e78f Canvas: fix logic bug when setting child items to be layout sensitive
Also, auto-fy the loop
2024-11-05 14:55:37 -07:00
Paul Davis
ba782dd097 Canvas; items added to a box become layout sensitive 2024-11-05 14:54:39 -07:00
Paul Davis
370b045715 canvas: fix typo in using explicit size request 2024-11-05 14:53:54 -07:00
Paul Davis
75177f3ef8 canvas: honor explicit size request for Rectangle 2024-11-05 14:53:22 -07:00
Paul Davis
39949e778d autofication of another loop 2024-11-05 13:27:22 -07:00