1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 09:09:47 +02:00

9850 Commits

Author SHA1 Message Date
Paul Licameli
40b4361732 Remove wx/arrstr.h from headers 2019-03-26 12:41:44 -04:00
Paul Licameli
1d0247607a Remove wx/string.h from headers 2019-03-26 11:33:55 -04:00
Paul Licameli
51f0362e9f Remove wx/wx.h from headers 2019-03-26 11:17:41 -04:00
Paul Licameli
8dace29aba Make EXPERIMENTAL_OD_FFMPEG compilable again 2019-03-25 19:18:11 -04:00
Paul Licameli
629678525c Bug2082: collapse, append-record, expand should restore track height 2019-03-25 19:18:11 -04:00
James Crook
4762136f16 Select -> Select track 2019-03-25 19:36:55 +00:00
James Crook
74a78bf542 Improve tooltip on Track Select button. 2019-03-25 16:03:37 +00:00
David Bailes
8e8dd459a4 Accessibility: make TrackPanel more accessible using Narrator
Problem:
Using the Narrator screen reader on Windows 10, there are a couple of issues:
1. After making a change to solo/mute/selectedness, the name and state of the track is not automatically read.
2. Text sent to TrackPanelAx::MessageForScreenReader() is not read.

Fixes:
After a focus event, if the focus has not changed, Narrator does not read the name, even if the name has changed. So:
1. In TrackPanelAx::Updated(), add a name change event. (The focus event has been retained to keep Window-Eyes happy until we stop supporting it.)
2. In TrackPanelAx::MessageForScreenReader(), change the focus event to a name change event. Note the Window-Eyes does not read these messages anyway, because when the role is set to wxROLE_NONE it does not read the name. So there's no point in including a focus event for the benefit of Window-Eyes.
2019-03-25 14:06:16 +00:00
David Bailes
8c10682145 Accessibility: make Grid accessible using Narrator
Problem:
Using the Narrator screen reader on Windows 10:
1. Narrator does not read the uneditable cells in the tag column of the Metadata editor.
2. In one or more versions of Windows 10 prior to 1809, Narrator's focus was incorrect after editing a cell.

Fixes:
1. Fixed by adding wxACC_STATE_SYSTEM_FOCUSED to the state.
2. Corrected GridAx::GetFocus().
2019-03-25 11:54:12 +00:00
Vitaliy Kirsanov
26cf3aba95 Use native CMakeLists.txt for portmidi
Seems to work fine on Windows, OSX and Linux
2019-03-24 18:29:53 +00:00
Paul Licameli
f2e2d35ad7 Make numeric validators work with ComboBoxes too...
... as was the intention in the wxWidgets code from which these files were
adapted

More importantly this removes the mischievous #define (added at 08c94d5) from
valnum.h, which made it impossible to #include that header before
<wx/combobox.h>.

Note that (the real type) wxTextEntry is not a kind of wxWindow, but a class
from which wxTextCtrl and wxComboBox both inherit, while they inherit wxWindow
too along other paths.

So in some places, use the protected variable m_ValidatorWindow instead to
access the validator's window.
2019-03-23 20:52:37 -04:00
James Crook
8426580f8e Fix windows build 2019-03-23 21:02:48 +00:00
James Crook
3b87af1d07 Ignore compiled assembler 2019-03-23 20:15:02 +00:00
Paul Licameli
a915a510bd include <wx/setup.h> in all files where wxUSE* macros are used...
... even if it's redundant; improving on what was done at b47e2f9
2019-03-23 14:56:02 -04:00
Paul Licameli
c698d85cc8 more comments for including Audacity.h 2019-03-23 14:16:05 -04:00
Paul Licameli
9569cfddf5 More comments for including Audacity.h; fix one #ifdef in AudioIO.cpp 2019-03-23 14:09:05 -04:00
Paul Licameli
bb634614e6 static overloads of Track::SharedPointer when null check is needed...
... Some optimizing compilers don't let us get away with null check on this
in a nonstatic member function.
2019-03-23 13:23:46 -04:00
Paul Licameli
1af342ff64 one function can return reference instead of value 2019-03-23 11:51:00 -04:00
Paul Licameli
ce4ba9762b Move more functions out-of-line 2019-03-23 11:41:01 -04:00
Paul Licameli
2176de79fb Rewrite #include directives in lib-src/FileDialog ...
... Removing one from the public header file
2019-03-23 11:31:17 -04:00
Paul Licameli
cb3c8b553c Remove wx/checkbox.h from FFmpeg.h, moving inline functions out 2019-03-23 11:14:42 -04:00
Paul Licameli
13d3b61577 Remove unnecessary #include from NyqBench.h 2019-03-23 11:06:09 -04:00
Paul Licameli
0dd0a5cb5a Remove <wx/menu.h> from CommandManager.h, moving inline functions out 2019-03-23 10:56:43 -04:00
Paul Licameli
a0d9e31c42 Consistently use <> not "" in inclusions of wx headers 2019-03-23 10:27:25 -04:00
Paul Licameli
875f38cfa5 Correct mistake in DECLARE_CLASS macro...
... though it didn't really matter: the macro argument is in fact unused
2019-03-23 02:52:59 -04:00
Paul Licameli
577b70ddb6 correct a comment 2019-03-23 02:48:48 -04:00
Paul Licameli
32a79c703b Redo 429fad6 without special logic in PrefsDialog.cpp 2019-03-23 02:45:39 -04:00
Paul Licameli
26f1aea2d4 Fix inconsistent config key path 2019-03-23 02:44:08 -04:00
Paul Licameli
6cea6306b7 Factor common part of help diagnostic commands...
... minor changes in dialog titles

(capitalization; "Save Device Info" -> "Save Audio Device Info" )
2019-03-22 14:25:50 -04:00
Paul Licameli
957e5eee63 Remove unnecessary #include from LoadCommands.h and LoadEffects.h 2019-03-22 13:35:13 -04:00
Paul Licameli
86dfcab6b3 Make EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT compilable 2019-03-22 12:38:54 -04:00
Paul Licameli
f45300f032 This is only comments, in files where USE_ macros are tested...
... following the comment convention used in the preceding commit.
2019-03-22 12:38:30 -04:00
Paul Licameli
adcb93512c Include Audacity.h in all files that test config USE_ macros...
... except Experimental.h, but see preceding commit.

This is especially important in the header files.

Be sure there are no quiet changes of meaning when a header file is included
in a different context, not having seen Audacity.h.  Rather include Audacity.h
even if redundantly.

Also, in some header files, move more inside the include-guard #ifdef-#endif
pair.
2019-03-22 12:36:54 -04:00
Paul Licameli
7cd6664f7b Require Audacity.h before Experimental.h...
... so that USE_* macros will be seen first, and so
EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT, for one, is correctly defined.

I hesitated actually to include Audacity.h in Experimental.h.  Maybe no
need for that hesitancy.  But instead I use #error if Audacity.h has not been
seen yet.
2019-03-22 11:25:30 -04:00
Steve Daulton
6f9746b601 Update pipe_test.py for Python 3 2019-03-22 14:21:56 +00:00
James Crook
de427da4c8 Split Equalization into GraphicEq and FilterCurve effects.
First step in https://wiki.audacityteam.org/wiki/Proposal_Equalization
We still have Equalization as an effect, but if the split works well, will remove it for 2.3.2
2019-03-22 11:11:56 +00:00
Steve Daulton
bedd4f1f3f Fix pipe_test for Python3 on Linux
The script still works with Python 2 on Linux, but it should be tested
(with Python 3) on Windows and Mac.
2019-03-22 10:15:51 +00:00
James Crook
4ff7d7875a Add 'Select Track' Button.
This is a first take at this new feature.  I'm expecting we'll want to refine it.
https://wiki.audacityteam.org/wiki/Proposal_Select_Track_button_in_TCP has the feature proposal.
2019-03-21 19:43:36 +00:00
Steve Daulton
d2fbeaa9f5 Fix translation string in Plug-in Installer
Translation mechanism does not support "\n".
2019-03-21 17:50:37 +00:00
Paul Licameli
8dcf725e4c Fix leaks. wxEvtHandler::SetClientData() doesn't take ownership! 2019-03-21 10:46:48 -04:00
Steve Daulton
6e6148604d Nyquist plug-in installer added
Ran "autoreconf --force --no-recursive" for Linux build.

Add nyquist-plug-in-installer.ny to Windows build

Add Nyquist Plug-in Installer to mac build

Fix translation strings in plug-in installer
2019-03-21 14:30:26 +00:00
David Bailes
069e34df77 Accessibility: make NumericTextCtrl accessible using Narrator
Problem:
Using the Narrator screen reader on Windows 10, there are a couple of problems:
1. When using the left/right arrow keys, Narrator reads the current field, rather than the digit which is now the focus.
2. Using up/down arrow keys, Narrator is silent.

Fixes:
1. The existing code assumes that NumericTextCtrlAx::GetName() is called only once after left/right arrow is pressed. However, Narrator causes this function to be called more than once. Solution: handle the case where the function is called, and neither the focus or the digits have changed, and use a cached value of the name.

2. If the focus has not changed, then after a focus event, Narrator does not read the name, even if the name has changed. Solution: add a name change event. (The focus event has been retained to keep Window-Eyes happy until we stop supporting it.)

Note:
One of the focus events has been removed from NumericTextCtrl::SetFieldFocus(), as it no longer appears to be necessary.
2019-03-21 13:48:23 +00:00
Paul Licameli
922e971f2f Remove an unused #include 2019-03-20 16:54:14 -04:00
Paul Licameli
eb94489277 Make EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT compilable 2019-03-20 16:54:14 -04:00
Vitaly Kirsanov
2b2c13520d Use native CMakeLists.txt for portaudio
The same story as libexpat's one--native CMakeLists.txt does its job better
than the proxy. Also it seems to be able to otionally build with ASIO support
on Windows. And it successfully builds on linux, freebsd and osx.
2019-03-20 20:22:23 +00:00
Paul Licameli
80ca1dc5fc Remove unused overloads of ShuttleGuiBase::TieNumericTextBox...
... those taking wxString as default value, or reference to wxString as the
target variable.

There remain one that takes reference to int as target, and one taking
reference to double; and one taking a config path and a double default value,
passed by const reference.  Some of the calls to the last pass an int default
value which was, and still is, implicitly converted to double.
2019-03-20 13:50:58 -04:00
Paul Licameli
393719bbdf Remove unused overload of ShuttleGuiBase::TieTextBox...
... No need to tie a double-default-valued checkbox that is NOT numeric.
2019-03-20 11:32:30 -04:00
Paul Licameli
de6e7fc4a3 fix #include path 2019-03-19 18:44:14 -04:00
Paul Licameli
da895783fd A few more uses of type alias EnumValueSymbol where more proper 2019-03-19 15:15:09 -04:00
Paul Licameli
d326220f0c fix typo in comment 2019-03-18 18:33:33 -04:00