Commit graph

21936 commits

Author SHA1 Message Date
Paul Davis
91757960cc fix missing API for no-app-nap when building on OS X < 10.9 2016-08-19 13:19:37 -04:00
nick_m
0444ce1d5e Revert last commit (269a08a2b1). 2016-08-20 01:58:56 +10:00
nick_m
269a08a2b1 Allow both types of constrained drag (again).
- Holding the constraint modifier at the time of grab gives constrained x.

	- Holding the constraint modifier after the grab but before the first motion
	  constrains to the direction of first movement.
2016-08-20 01:46:04 +10:00
nick_m
2d7bdda0be Extending an empty selection selects the clicked region.
- fixes a crash where the first operation on loading a session
	  is a constrained drag
2016-08-20 01:34:53 +10:00
Robin Gareus
0016920347 and another typo gone in in 9702020 2016-08-19 17:22:09 +02:00
Paul Davis
25ec63968c add code to disable AppNap on OS X/MacOS
Should build on versions before 10.9 and run everywhere due to respondsToSelector check.
2016-08-19 11:12:35 -04:00
Robin Gareus
adf290446f fix typo in 9702020 2016-08-19 16:23:49 +02:00
Julien "_FrnchFrgg_" RIVAUD
e2846ad210 Remove unused lines in clearlooks.rc.in 2016-08-19 15:49:47 +02:00
Paul Davis
972dc6aaca ad rest of Stripable API to lua 2016-08-19 09:40:20 -04:00
John Emmas
8e2d1c7f2a Move 'round()' / 'trunc()' etc so that they won't conflict with any versions already available in MSVC 2016-08-19 14:11:01 +01:00
John Emmas
4ece16f348 For MSVC, 'using namespace whatever' doesn't help us to differentiate between ambiguous type names
so... given that 'Rectangle' is a type name that's commonly found in several different namespaces, we'll need to specify explicitly which one we want.
2016-08-19 14:11:00 +01:00
John Emmas
a0b117b948 'roundf()' wasn't introduced in MSVC until VS2013 - so for the time being, let's emulate it using 'floorf()' 2016-08-19 14:11:00 +01:00
Julien "_FrnchFrgg_" RIVAUD
5cc97f55f2 Avoid CamelCase in color names 2016-08-19 14:57:07 +02:00
Robin Gareus
cdcccd8101 handle edge-case where jack-meta-data may be NULL, but the call succeeds
this fixes #6968
2016-08-19 14:38:37 +02:00
Paul Davis
45cd3482a2 fix failure to remove keyvalue from Keyboard::state on key release 2016-08-19 08:32:44 -04:00
Paul Davis
26f1578568 MIDI polyphonic pressure, part 2 2016-08-19 08:32:44 -04:00
Paul Davis
d6691a80e9 attempt to handle poly-pressure (polyphonic aftertouch) similarly to other MIDI messages 2016-08-19 08:32:44 -04:00
Len Ovens
c229e31720 OSC:: needs the .h file too... 2016-08-18 19:16:53 -07:00
Len Ovens
7c43d2bb0e OSC: make remote port setting possible, add default surface variables 2016-08-18 19:15:57 -07:00
Robin Gareus
756674f4f9 initialize uninitialized variable 2016-08-19 03:32:07 +02:00
Robin Gareus
ba1058aca6 Update automated Plugin Controlls when seeking and not rolling 2016-08-19 03:32:07 +02:00
Julien "_FrnchFrgg_" RIVAUD
d599be115d Make automation state buttons active when not on Manual
With the same color code as the fader automation button on mixer strips.
This is especially usefull when use_knob is true (e.g. for a-EQ) because
the automation only shows one letter and a "Write" state can thus be
easy to miss.
2016-08-19 02:53:39 +02:00
Julien "_FrnchFrgg_" RIVAUD
ede27f53c6 Remove unused space in gain_meter's automation menu 2016-08-19 02:53:39 +02:00
Robin Gareus
ef4facca11 fix Aux-Send Panner Linking 2016-08-19 01:14:21 +02:00
Robin Gareus
3dc71953de fix SNAFU in track-properties script 2016-08-18 19:49:16 +02:00
Julien "_FrnchFrgg_" RIVAUD
907c56234c Add missing return 2016-08-18 16:32:38 +02:00
Julien "_FrnchFrgg_" RIVAUD
523306036e Make ArdourButton detect when a grab should stop being pressed
If for whatever reason a grab is taken (e.g. a menu popping up) while
somebody is pressing a mouse button on an ArdourButton, then the
ArdourButton will not get the mouse button release event and will look
stuck in pressed position.

The leave notify event is fired if the mouse is still on the
ArdourButton while the grab is taken, but not if the user was dragging
the mouse outside of the button.

The only reliable way is to listen for the grab_broken_event signal.
Do so.
2016-08-18 16:16:17 +02:00
Paul Davis
0ab81183c0 don't show empty time axis view context menus 2016-08-18 08:16:31 -04:00
Julien "_FrnchFrgg_" RIVAUD
534ca81613 Make buttons in track headers behave more like Gtk::MenuToolButton
Make their popup menus show attached, and on mouse down, but keep the
context menu behavior on middle- and right-click for the group button
that reacted to those (probably an oversight but some users might have
got the habit of right-clicking).

This also makes the group deletion on Ctrl+click happen on mouse down
instead of mouse up which is not a great difference and avoids
complicating the code.
2016-08-18 13:24:00 +02:00
Julien "_FrnchFrgg_" RIVAUD
1d686ac978 Make name_button behave more like a Gtk::MenuToolButton
Make it popup its menu in attached mode, and on mouse down, but keep the
context menu behavior on right-click.
2016-08-18 11:52:22 +02:00
Julien "_FrnchFrgg_" RIVAUD
3ab6ff8be7 Make in/out buttons behave more like Gtk::MenuToolButton
Make them popup their menu as if attached rather than as a context menu.
2016-08-18 11:50:38 +02:00
Paul Davis
9095d60f96 removed commented code, now that the comment is actually correct 2016-08-17 23:13:49 -04:00
Paul Davis
71236425a6 fix hard/impossible trimming situation 2016-08-17 23:09:33 -04:00
Paul Davis
e8427ee2cb GUI does an even stronger check on no undo/redo while recording 2016-08-17 19:22:26 -04:00
Paul Davis
41cc35cf6e do not allow undo/redo while actively recording 2016-08-17 19:22:26 -04:00
Julien "_FrnchFrgg_" RIVAUD
214dfccdae Use a real dropdown for AutoState in automation lanes 2016-08-17 23:56:31 +02:00
Julien "_FrnchFrgg_" RIVAUD
606ffe6a35 Align the currently selected automation state on dropdown
By passing the current text of the automation button we can make the
dropdown menu align with the current mode. This will only work for
full-size automation buttons, not when use-knob is true, but in that
case it feels wrong to popup on top of the button anyway.

Also make the menu show on mouse down like a real dropdown.
2016-08-17 23:56:31 +02:00
nick_m
9702020929 Report quarter note rather than beat position to AU plugins. 2016-08-18 05:42:30 +10:00
nick_m
6d0208613d Use quarter pulses (quarter notes) for VST's ppqBar, ppqPos and cycleStart/EndPos. 2016-08-18 05:39:44 +10:00
nick_m
b243af48c7 Add methods for plugin APIs to obtsin quarter pulses ('beats' for AU) from the tempo map. 2016-08-18 05:36:24 +10:00
Robin Gareus
036bcb259b add some track properties example script 2016-08-17 20:31:04 +02:00
Len Ovens
8708da2d19 OSC: Add value feedback to strip fader and trim 2016-08-17 08:24:57 -07:00
Robin Gareus
613ff66042 fix ramped BPM reporting to AU and VST plugins 2016-08-17 17:17:00 +02:00
Robin Gareus
90e2baf6a9 upcoming codenames 2016-08-17 17:04:02 +02:00
Robin Gareus
b3cec2716e fix LV2 BPM report (use ramped tempo) 2016-08-17 17:04:02 +02:00
Damien Zammit
6bf40e3a44 a-Reverb: Fixed bug with the reverb all pass filters causing bad sound 2016-08-18 00:41:43 +10:00
Julien "_FrnchFrgg_" RIVAUD
d883d4623a Make MixerStrip's automation menu behave like a dropdown 2016-08-17 14:30:28 +02:00
Julien "_FrnchFrgg_" RIVAUD
7fa99abc3a These are not the scripts you're looking for 2016-08-17 02:04:27 +02:00
Julien "_FrnchFrgg_" RIVAUD
b48e803cf6 Make the group button in MixerStrip behave like a dropdown
Since it mostly is a multiple-choice menu.
2016-08-17 01:46:11 +02:00
Julien "_FrnchFrgg_" RIVAUD
08df4e1920 Fix anchored popups with separators in them
The code computing the position of the popup menu used to compare the
given string to each MenuItem::get_label() result, but that method
actually replaces the content (child) of the MenuItem if that child is
not already a Gtk::Label. In particular, this breaks menu separators.

Avoid the issue by checking by hand if the only child of the MenuItem is
a Label, and directly compare the label text.
2016-08-17 01:45:47 +02:00