Commit Graph

60 Commits

Author SHA1 Message Date
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 295dbd8e1e
Make RCU reader return a const pointer (omnibus commit) 2023-04-08 00:15:37 +02: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 c44b40afd7
Indicate UTF8 literals - fixes glyph rendering with MSVC (2/2) 2023-01-16 21:41:22 +01: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
Ben Loftis 1e283adb22 disambiguate trigger functions: stop_all_triggers -> trigger_stop_all 2022-10-01 09:13:14 -05:00
Paul Davis 9ea1e5bdee move color utility functions from ARDOUR_UI_UTILS to Gtkmm2ext namespace (GUI) 2022-08-10 21:11:52 -06:00
Mads Kiilerich f9b3ed0523
gtkmm: use get_color_selection() instead of deprecated Gtk::ColorSelectionDialog::get_colorsel() 2022-04-08 21:11:06 +02:00
Ben Loftis 3280523e90 trigger_ui: pixel pushing for mac 2022-02-26 13:09:41 -06:00
Ben Loftis ee9e7589ee trigger_ui: add more tooltips 2022-02-19 12:12:43 -06:00
Ben Loftis 1ce0641172 trigger_ui: Stop All Cues can be queued just like the Cues can. So color it like a timeline marker(?) 2022-02-14 21:22:36 -06:00
Paul Davis 17e5667216 triggerbox: use translatable marker name function in GUI 2022-02-11 11:33:43 -07:00
Ben Loftis 6d64120e0e trigger_ui: move the follow-count text to the right side of trigger-master; it was obscured by the midi 'note' icon
also rethink the update mechanism; TriggerBox.cc generates far too many updates (see comments)
2022-02-09 13:11:31 -06:00
Robin Gareus e51427413c
Tweak TB event passthrough
Play/Stop and Follow buttons no longer pass events up.
That way the strip will not be selected on mouse-up.
2022-02-03 21:57:13 +01:00
Ben Loftis 6fc4ab87de trigger_ui: MIDI trigger strips have a centered note-icon 2022-02-01 10:34:35 -06:00
Paul Davis cdda0b6d30 removal of TriggerBox passthru property, GUI edition 2022-01-30 13:38:10 -07:00
Ben Loftis 0350e58eb7 remove unused variables (fix warnings) 2022-01-26 11:51:08 -06:00
Ben Loftis 094fbfa132 trigger page: shrink Cue column to minimum (?) 2022-01-21 17:45:26 -06:00
Ben Loftis 8ed6f685cf trigger_ui: remove Jump action from trigger-master (column), seems pointless? 2022-01-21 17:45:26 -06:00
Ben Loftis 540a85cbbd trigger_ui: remove unused menu entry 2022-01-21 07:58:20 -06:00
Paul Davis f16c99ddb8 remove Other/Any follow action types (GUI edition) 2022-01-20 18:56:07 -07:00
Paul Davis fdedbe24ec remove Next/Prev (Live-style) follow action types (GUI edition) 2022-01-20 18:56:07 -07:00
Paul Davis 46e2a03863 triggerbox UI: jump follow action, part one 2022-01-20 11:01:14 -07:00
Paul Davis 2152e7ba3b triggerbox: change FollowActions into an object with a target list (GUI edition) 2022-01-19 15:50:55 -07:00
Ben Loftis ddd5b26686 trigger_ui: pixel-pushing: remove drop-shadows and try circles for Cues 2022-01-18 16:42:10 -06:00
Paul Davis 7f2b09085e triggerbox UI: fix uninitialized member variable 2022-01-13 13:29:22 -07:00
Ben Loftis a44ce7c075 trigger_ui: recover quantization:None menu entries 2022-01-07 18:06:31 -06:00
Ben Loftis 8548626adf triggerbox: Add n-bar quantizations (GUI part) 2022-01-07 16:05:07 -06:00
Ben Loftis 7e65097ded trigger_ui: corner button has menu to set ALL clips in the grid
...likely only useful for troubleshooting+development ... tbd
2022-01-04 16:45:11 -06:00
Paul Davis aa3806d875 triggerbox: support for ReTrigger launch style 2022-01-03 17:45:21 -07:00
Paul Davis 66b170075b triggerbox: add Forward/ReverseTrigger follow actions (GUI edition) 2022-01-02 17:20:39 -07:00
Ben Loftis 1dc756142c trigger_ui: disambiguate set_triggerbox() from set_trigger() 2021-12-30 21:25:39 -06:00
Ben Loftis 81a011b786 trigger_ui: another FA probability fix 2021-12-30 21:25:39 -06:00
Ben Loftis 4736b8338c trigger_ui: convenience functions to set Color for a column or row 2021-12-27 18:03:14 -06:00
Ben Loftis f5c2697f4f trigger_ui: trigger-master button should follow conventions of other Stop buttons
Normally the Stop occurs quantized (on bar ending). Primary-modifier means 'stop now'
2021-12-27 18:03:13 -06:00
Ben Loftis 3324882fe0 pixel-pushing: remove horizontal divider lines 2021-12-27 18:03:13 -06:00
Ben Loftis 42069bc7e2 trigger_ui: implement clear_all_triggers in Master button context menu 2021-12-23 22:35:52 -06:00
Ben Loftis e87c7d96fb trigger_ui: code cleanup; consistently use X_to_string; add missing items 2021-12-23 22:35:52 -06:00
Robin Gareus b2b9c38bc3
Leave a note about trigger-slot IDs using western alphabet
Ideally these would be translatable into Cyrillic, Greek,
Chinese or any other alphabet (and not be limited to 26 either).
2021-12-24 00:31:01 +01:00
Paul Davis 43203a407b triggerbox: steps toward sane trigger stopping API and design (GUI edition) 2021-12-22 17:27:26 -07:00
Ben Loftis 1bbe00ca48 triggerbox: implement set_all_X for triggers (gtk part) 2021-12-22 12:29:40 -06:00
Paul Davis c18d175f55 triggerbox (UI): shared ptrs for everyone, plus indirect references to Triggers from TriggerEntry 2021-12-21 17:40:37 -07:00
Ben Loftis aa7b15a0b6 trigger_ui: more consistent icons and better selection persistence 2021-12-21 15:32:43 -06:00
Robin Gareus bae4bbfc0c
Resolve more ambiguous `Rect` (fixes macOS build) 2021-12-19 16:48:18 +01:00
Ben Loftis f9192decbf triggerbox: workaround for CheckMenuItems that fire the action when we set the display state 2021-12-17 13:09:49 -06:00
Ben Loftis c734957aaa triggerbox: loop count should be 1-based 2021-12-17 13:00:17 -06:00
Robin Gareus 0dad657c89
Amend previous commit 2021-12-17 17:48:27 +01:00
Robin Gareus 0e930ae5f4
Re-add another explicit sigc::disconnect
Apparently signals are not disconnected when the connection
is destroyed.
2021-12-17 17:28:32 +01:00
Robin Gareus 422ad6656d
Re-do source-code cleanup and formatting
Some of this was lost in 26df9ccdf8
This also removes some excess code
2021-12-17 16:53:16 +01:00
Ben Loftis 26df9ccdf8 pixel pushing: return of drop-shadows (maybe) 2021-12-17 08:55:30 -06:00