Commit graph

644 commits

Author SHA1 Message Date
Robin Gareus
74c4ca3e52
Reduce reliance on boost - the hard part
the rest from `tools/convert_boost.sh`.

* replace boost::function, boost::bind with std::function and std::bind.

This required some manual fixes, notably std::placeholders,
some static_casts<>, and boost::function::clear -> = {}.
2024-10-19 03:47:21 +02:00
Robin Gareus
ff95d81612
Reduce reliance on boost - the easy part
* boost::unordered_map -> std::unordered_map
* BOOST_STATIC_ASSERT/static_assert
* BOOST_FOREACH -> for
* boost::tuple -> std::tuple/g
* boost::math::isnormal -> std::isnormal
* boost::container::set -> std::set
* boost::none -> std::nullopt
* boost::optional -> std::optional
2024-10-19 03:41:16 +02:00
Robin Gareus
2339b4dfdc
Replace PBD::Signals (2/2) 2024-10-18 20:41:08 +02:00
Paul Davis
182a24751b get standalone MidiView to display notes
This also removes an unused TriggerBoxWidget from each regular
MixerStrip.
2024-10-17 07:44:29 -06:00
Robin Gareus
00f6468606
Consolidate Route context menus (Mixer, Editor, Cue Page)
Consistently hide elements that are not accessible on inactive
Routes; fix duplicate separators, and group items
2024-09-05 20:35:24 +02:00
Robin Gareus
cce6aba35d
Do not implicitly group trim controls #9724
This reverts fe7c36c04b (more or less)
2024-06-20 00:44:59 +02:00
Paul Davis
7982d69cb3 no need to set up midi input enable button for every ::set_route()
And additionally, do not pack it into the same container over and over, since that
generates gtk error messages
2024-06-14 22:17:22 -06:00
Robin Gareus
acb5feec4a
Show master bus comment on session load #9718 2024-06-09 01:29:00 +02:00
Paul Davis
b929e8a4e2 revert inadvertently committed change made for debugging. 2024-05-10 08:35:03 -06:00
Paul Davis
edc03002eb for DEBUG::Processors, use display_name() not name()
This allows us to differentiate between different instances of the same
type of processor (e.g. Trim vs Fader, which are both of type Amp)
2024-05-10 08:35:03 -06:00
Paul Davis
94e0f2d3cd make dbl-click on mixer strip name button start a rename 2024-05-07 16:58:26 -06:00
Paul Davis
7d04a8bdd4 remove redundant button number check 2024-05-07 16:58:26 -06:00
Paul Davis
fd1f68c34a allow mixer strip button events to fall through to parent, part 2 2024-05-07 16:58:26 -06:00
Paul Davis
29aeb88ce1 allow mixer strip button events to fall through to parent 2024-05-07 16:58:26 -06:00
Alija Strömkvist
2383c9bb37
Fix incorrect variable mistake
hide_button was used when width_button should've been
2024-02-13 06:59:19 +01:00
jean-emmanuel
783bb84338 ui: mixer: consistent bg color for the master bottom spacer 2024-01-20 14:44:30 +01:00
Robin Gareus
7228144d6e
Vapor: GUI support to add Surround Bus 2024-01-06 20:27:03 +01:00
Robin Gareus
9cc966120c
Consolidate internal bus checks (2/2) 2024-01-06 20:21:54 +01:00
Paul Davis
fb930e8f47 add invalidator() calls to MixerStrip as it connects to ParameterChanged
when the surround bus is removed, it (probably erroneously) causes
changes to the I/O routing for the auditioner, which will be
delivered to anyone who cares via an RCConfiguration ParameterChanged
signal. This will be emitted from a non-GUI thread, and so will not
be handled synchronously. The GUI thread will first handle the notification
that the surround bus was deleted, and that will include deleting the
MixerStrip for the surround bus. But another call_slot() request will
be pending to notify the now-deleted MixerStrip about the auditioner change.

Adding invalidator() calls ensures that the deletion of the MixerStrip removes
all of these pending call_slot() requests.
2023-11-22 17:24:26 -07:00
Robin Gareus
c162aa7aca
Consistently use context-menu button action
This fixes an issue where brining up a menu can directly activate an
action in the menu. Notably on macOS.

Nathan reports that this may also address #9515

Note: mac touchpads are not affected since right-click there is
effectively a "press and hold".
2023-10-31 20:16:23 +01:00
Robin Gareus
e22415f0ce
Disambiguate In/Out for translations (1/2) #9512 2023-10-28 14:45:33 +02:00
Paul Davis
200194b134 use identical logic for gain/trim controls as others when it comes to group/select stuff 2023-07-31 18:31:03 -06:00
Paul Davis
fa38a14120 GUI changes to support new selection/group logic 2023-07-31 13:36:25 -06:00
Paul Davis
16e1188a2f move logic for use-selection-as-group into ARDOUR_UI and use it everywhere 2023-07-28 09:50:23 -06:00
Paul Davis
fe7c36c04b allow selection-as-group control of trim controls 2023-07-27 13:30:50 -06:00
Paul Davis
3c2112abf5 widgets & GUI: Start/StopGesture signals should pass on GDK event state 2023-07-26 13:11:52 -06:00
Paul Davis
82e03ac13e fix SNAFU with processor box bindings
Bindings were not loaded until after ProcessorBoxen were created,
meaning they had no effect (the ProcessorBoxen set their ardour
bindings to null).

Also handle leave-means-deselect at ProcessorBox level rather than
MixerStrip level, to include MonitorSection PB
2023-04-26 17:19:50 -06:00
Paul Davis
b35518e212 switch from boost::{shared,weak}_ptr to std::{shared,weak}_ptr
This is mostly a simple lexical search+replace but the absence of operator< for
std::weak_ptr<T> leads to some complications, particularly with Evoral::Sequence
and ExportPortChannel.
2023-03-24 14:19:15 -06:00
Robin Gareus
d62cba8ba5
Add tooltip for mixer-strip color/number label 2022-12-10 22:22:31 +01:00
Paul Davis
c9fe383813 dbl click on mixer strip name label/color button brings up color picker 2022-11-01 08:12:05 -06:00
Paul Davis
0c2176dd71 move default_triggers_per_box into a namespace ; change value for Ardour to 16 (GUI edition) 2022-10-04 19:55:15 -06:00
Robin Gareus
109e7d6ea0 When editig sends, show the send's polarity control on mixer-strip 2022-09-04 20:25:51 +02:00
Paul Davis
7aef0cd191 fader colors: use correct UIConfig var name and exclude master bus correctly 2022-08-11 08:45:31 -06:00
Paul Davis
870a51b691 fader coloring: ignore master, and rename UIConfig option to be more generic now (also text in prefs) 2022-08-11 08:22:49 -06:00
Paul Davis
04ad500998 set mixer strip fader name always, so that bg is set from style 2022-08-11 00:07:53 -06:00
Paul Davis
6d85759cf8 optionally tinted faders in mixer view 2022-08-10 22:34:52 -06:00
Paul Davis
bfedf7168e new GUI appearance option to offer track/bus colors (muted) as backgrounds for editor & mixer strips 2022-08-09 16:18:32 -06:00
Mads Kiilerich
7f649efd42
gtkmm: use set_can_focus() instead of deprecated Gtk::Widget::set_flags(CAN_FOCUS) 2022-04-08 21:11:06 +02:00
Robin Gareus
92024cac99
Remove debug messages (2/2) 2022-03-16 17:08:15 +01:00
Robin Gareus
bb11be9936
Consistent height of MIDI and Audio Track connection buttons
Audio track shows a trim-knob -- which is SCALED(19x19px),
MIDI input button should follow suit.
2022-02-02 14:18:18 +01:00
Ben Loftis
a100d46249 midi_input_enable_button does not need to be dynamically allocated 2022-02-01 12:26:41 -06:00
Ben Loftis
64e4964101 terminology: the TB widget in a mixer strip is called a Trigger Grid 2022-01-31 20:25:06 -06:00
Ben Loftis
bd7ffdbadb remove trigger visibility from mixer-strip context menu
* we handle trigger visibility from the Track visibility tabs
2022-01-31 20:25:06 -06:00
luz paz
364f2f0788 Fix typos in gtk2_ardour/ directory
Found via `codespell -q 3 -S *.po,./share/patchfiles,./libs -L ba,buss,busses,doubleclick,hsi,ontop,ro,seh,siz,sur,te,trough,ue`
2022-01-26 12:35:38 -05:00
Robin Gareus
28392bdcdb
GUI property "visible" applies only to automation-lanes
Tracks and Busses use PresentationInfo::hidden
2022-01-25 06:27:18 +01:00
Paul Davis
2152e7ba3b triggerbox: change FollowActions into an object with a target list (GUI edition) 2022-01-19 15:50:55 -07:00
Robin Gareus
0a17d8e66a
Use shared static method to count plugins
This moves MixersStrip::help_count_plugins to RouteUI,
so that it can be shared with other Strip implementations.
2022-01-01 15:34:47 +01:00
Robin Gareus
4318d25ec7
Backport from mixbus, prepare trigger-strip ctx menu 2022-01-01 15:16:03 +01:00
Robin Gareus
c16631f8f8
Fix tiny memory leak
Route context menu remained after a route was deleted
2022-01-01 15:15:40 +01:00
Ben Loftis
1dc756142c trigger_ui: disambiguate set_triggerbox() from set_trigger() 2021-12-30 21:25:39 -06:00