1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 14:18:53 +02:00

6641 Commits

Author SHA1 Message Date
Paul Licameli
c07caade9f Enable EXPERIMENTAL_MIDI_OUT for all platforms...
... at least during the development cycle.  This may be reverted if the
enhancement remains unready.
2017-05-02 00:37:30 -04:00
James Crook
7c9c74de94 Remove logging left in by mistake. 2017-05-01 23:09:42 +01:00
Paul Licameli
b9b5e0ca09 Fix mac build 2017-05-01 17:47:56 -04:00
James Crook
43ff84ba48 Preserve toolbar size when theming.
Particularly relevant for resizable toolbars which may be bigger or smaller than their standard initial size.
2017-05-01 22:28:16 +01:00
James Crook
cd69bf074f Add shortcut hint to shift-record tooltip. 2017-05-01 20:00:04 +01:00
James Crook
57b200884e Bug 1639 - Left and Right arrow keys don't work in docked toolbars, if bound to some action.
This fix works by detecting whether the focus window is the TrackPanel, in which case all keys are handled normally.  If it isn't the TrackPanel, then the problematic keys do not get sent to our own CommandHandler and proceed on to wxWidgets.

A problem that then follows is that the menu accelerators (which normally don't get a look in) may then convert the event to a menu event and stop it going any further.So it does not get to the focus window.

The fix/workaround for that is to NOT provide accelerators for up, down, left and right arrow in the menus.  I'd much rather be able to turn off those accelerators completely, yet still show them to users as hints.
2017-05-01 19:04:49 +01:00
Steve Daulton
ae24cab8fe Remove 'TODO's for completed documentation 2017-05-01 18:51:35 +01:00
James Crook
9d501f69d6 Add preference for Record being to new track. 2017-05-01 12:04:27 +01:00
James Crook
623d0f29bf Bug 1639 - Revert fix.
The fix was regarded as a workaround, and too draconian.  The problem is that Left and Right shortcuts are being captured (somehow) by our CommandManager when navigating in docked toolbars.  A full and proper fix rather than not binding these shortcuts would apply them to the toolbar in preference to the CommandManager, and so fix bug 1637, which Bug 1639 has now been marked as a duplicate of.
2017-05-01 10:26:49 +01:00
Paul Licameli
8bfe4cc685 Fix more cases of Wave and Note track editing wrongly throwing 2017-05-01 04:48:14 -04:00
David Bailes
baf46c1f85 Update to Select Previous/Next clip commands
Previously, these two commands used the clips in the focused track. They now have similar to the Tracks->Pan->Left/Right/Center commands. That is if any audio tracks are selected, the clips in these tracks are used, otherwise the clips in all audio tracks are used.
2017-05-01 09:20:44 +01:00
David Bailes
ce1d067f84 Update to Clip Boundary commands
This update affects the four commands:
Cursor to Previous clip boundary
Cursor to Next clip boundary
Select previous clip boundary to cursor
Select cursor to next clip boundary

Previously these commands all used the clips in the focused track. This update changes this so that their behaviour is the same as the Tracks->Pan->Left/Right/Center commands. That is, if any audio tracks are selected, all the clips in these tracks are used, else the clips in all audio tracks are used.
2017-05-01 08:58:46 +01:00
James Crook
0b942d04b7 Move scrub ruler line down 1px
..and update the comment.
2017-04-30 18:09:19 +01:00
James Crook
5e28e3fe6d Line to mark off scrub ruler.
Provides a clear boundary between scrub ruler and quick select ruler, even if the theme colours have been warped to be very similar.
Thanks to Gale for spotting this problem on Mac.
2017-04-30 17:22:20 +01:00
James Crook
5088881a69 Bug 1639 - Left and Right arrow keys no longer work in docked toolbars
I've bound the commands that use Left and Right keys to use Ctrl-Left and Ctrl-Right instead.  I did not find a simple fix that allowed docked toolbars to get 'furst dibs' and take left and right keys if they wanted them.
2017-04-30 16:32:48 +01:00
Paul Licameli
5dd6a3558b Use #ifdef not #if in two places 2017-04-29 15:53:55 -04:00
Paul Licameli
05badc29e5 simplify some conditional compilation 2017-04-29 15:53:47 -04:00
Paul Licameli
b2b9708b29 Fix possible assertion violations for cut, paste, trim 2017-04-29 15:41:18 -04:00
James Crook
615a5058a7 Include Experimental.h
Needed for EXPERIMENTAL_SCROLLING_LIMITS
2017-04-29 12:35:01 +01:00
Paul Licameli
a3b9dbd341 Remove unused variable 2017-04-29 06:24:34 -04:00
James Crook
74ac96e009 Only move Nyquist prompt to nyquist IF EXPERIMENTAL_DA 2017-04-28 18:10:32 +01:00
James Crook
6102c774ee Bug 1630 - Accessibility of the length/end radio buttons
For Light and Classic themes that use black text, we'll use the length/end buttons because Windows uses black for text.
For Dark and HiContrast themes that use a light colour for text, we'll use the length/end buttons IF the OS is set to use the exact same colour for text.
That for example happens if we use Microsoft's HiContrast2 and our HiContrast theme.

If the OS and theme text colour differ, then if we set blend theme colours option, which is the default, we might still use the OS colour for text in Audacity.  That will happen if the OS colour has decent contrast to our theme's background colour.   Decent is defined as more than 250 difference in RGB values.  If we use the OS colour for text, then we get the proper length/end buttons.

Note that this adds a new feature to the theme blending, in that the text colour will often adapt.  Useful when using custom text colours with HiContrast2.  When the text colour adapts, we will continue to get proper length/end buttons.

Advice to users is to match OS and Audacity themes, and use the blend option.  When themes don't match, it may be desirable to disable blending.
2017-04-28 15:49:02 +01:00
James Crook
47c6ac3233 Theme the spectrogram. 2017-04-27 21:40:16 +01:00
James Crook
ff3ed65d83 Draw TimeTrack Background in unselected colour.
Using blank colour is incorrect here.
I also removed an unused pen and brush.
2017-04-27 21:40:16 +01:00
James Crook
c9183769d2 Repaint resizer section of toolbar, if required, after an UpdatePrefs. 2017-04-27 21:40:15 +01:00
Steve Daulton
51517fa631 Fix Mac build 2017-04-27 15:16:05 +01:00
Steve Daulton
66cc6ba41f Add Track Behaviors preference files 2017-04-27 15:16:05 +01:00
Steve Daulton
516570074b Add preference option for Stem Plot
Tracks 'behaviors' preferences split to sub-page to avoid over-long
page for Tracks preferences.
2017-04-27 15:16:05 +01:00
Steve Daulton
53a64757e7 Stem Plot option when displaying samples
Initial commit.
2017-04-27 15:16:05 +01:00
James Crook
7f98672e22 MIDI_OUT on by default on windows.
The idea is to get SOME use and test of MIDI_OUT even though it does not compile on Linux yet.
2017-04-27 12:56:39 +01:00
James Crook
60a53d560b Ensure colours of rulers and TimeTrack background update after a theme change. 2017-04-27 12:08:25 +01:00
James Crook
7661d179ba Send size event after repopulating MeterToolbar buttons.
If we don't do this, it does not regain its former size, if it is floating.
2017-04-27 09:51:34 +01:00
James Crook
7e2a7aad89 Correct default colour for rulers. 2017-04-27 08:13:33 +01:00
James Crook
d9e25bfc12 Add themed background for time track 2017-04-26 22:34:14 +01:00
James Crook
1114d5fa20 Add theming for NoteTrack 2017-04-26 22:33:50 +01:00
James Crook
354b17394f Add back units have coloured backgrounds.
This was broken by a theming change for HiContrast.
2017-04-26 22:33:12 +01:00
James Crook
2a043c0b35 Add settable ruler colouring. 2017-04-26 22:32:09 +01:00
James Crook
f0db511724 Add rotated pip
Also remove dead code from theming.
2017-04-26 22:30:31 +01:00
James Crook
603b5a8721 Update the 4 Themes.
Mac buttons now fixed on Dark and Hi-Contrast.
New colours added but not used yet.
Rotated pip added but not used yet.
2017-04-26 22:27:53 +01:00
James Crook
e08ceaf099 Add background to numbers on meter, IF meter bar and number colour is too similar.
This happens in Hi-Contrast theme.
2017-04-26 16:28:41 +01:00
James Crook
6bcbe417e9 Make SelectionBar end/length radio buttons behave normally
They had lost the focus/voice-over functionality because I added code to draw them in the
theme colour.  Now I disable that code, IF recolouring is both set and active.  This will happen
for example, if Hi-Contrast is used with the Hi-Contrast system theme.
2017-04-26 15:58:50 +01:00
James Crook
2cc39d791f Option so (theme) developers can work with Mac buttons on PC (and vice versa) 2017-04-25 17:24:50 +01:00
James Crook
de798b17d5 Fix: Swap Stereo sets pan to far right. 2017-04-24 23:24:39 +01:00
James Crook
93b5456c08 Rotate pip on vertical slider. 2017-04-24 23:06:15 +01:00
James Crook
621f01abb0 Draw diagonal grabber and background in themed colours. 2017-04-24 22:35:41 +01:00
James Crook
03af77387e Button and hover effect for microphone/speaker on meter bar.
Also fixed capitalisation of "Blend system and Audacity theme"
2017-04-24 20:07:48 +01:00
James Crook
d0bafebfdf Fix posterisation. Add blend themes option.
Posterisation was caused by having a bright theme cache and using a darker theme (in linux) so the light colours 'got stretched' and showed up the relatively few distinct values there.  So the Classic theme is now darker, and we expect (on Windows) that it will be recoloured to windows lighter colours.
2017-04-24 18:33:46 +01:00
Paul Licameli
94d8c2cff7 fix the previous 2017-04-24 13:13:14 -04:00
Paul Licameli
967e1fcf02 More exception safety for selection states of tracks 2017-04-24 13:08:31 -04:00
Paul Licameli
972f7471de Fix progress bar in Normalize 2017-04-24 11:38:28 -04:00