1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-20 06:10:06 +02:00

6005 Commits

Author SHA1 Message Date
James Crook
edacab85fa Save prefs size, even on a Cancel 2018-04-11 19:44:36 +01:00
James Crook
2d2f282c83 Bug 825 - Sync Lock behaves inconsistently when moving of clips is disabled
Sync Lock on now means clips can move.  So it 'trumps' that setting, when on.
2018-04-11 18:51:31 +01:00
Paul Licameli
a0762d67b5 INTERNAL, not TRANSLATED, command/effect names in config key paths...
... This may make a difference and breadk compatibility only for Sliding Time
Scale/Pitch Shift, the one effect for which those were different.

Using a locale-independent internal string in a config file is the Right
Thing To Do.
2018-04-11 11:51:10 -04:00
Paul Licameli
b200819f75 Use IdentInterfaceSymbol to identify commands and effects 2018-04-11 11:51:10 -04:00
Paul Licameli
11d217076a Remove PluginManager::GetTranslatedVendor()...
... Instead, use the IdentInterfaceSymbol for vendor reported by the effect
2018-04-11 11:13:41 -04:00
Paul Licameli
0394660e9e Use IdentInterfaceSymbol for vendor strings, which are used in paths 2018-04-11 11:13:41 -04:00
Paul Licameli
d9606e8cdf Make effect family names translatable and add i18n-hint comments 2018-04-11 11:13:41 -04:00
Paul Licameli
2c19e8f81e Use IdentInterfaceSymbol to identify effect families 2018-04-11 11:13:40 -04:00
Paul Licameli
915e6ead40 Use IdentInterfaceSymbol in old-style commands...
... Give each a translatable name, but don't use it anywhere yet, use
the CamelCase name
2018-04-11 11:13:40 -04:00
Paul Licameli
e3c54a769e Use IdentInterfaceSymbol in PluginDescriptor 2018-04-11 11:13:40 -04:00
James Crook
68e4bf6c5e Bug 1557 - Win/Linux: Shortcuts for select/deselect all do not work in Mixer Board 2018-04-11 15:11:06 +01:00
James Crook
ca118dd5ba Enable Spectral Selection by default. 2018-04-11 11:08:29 +01:00
James Crook
d1c2ff82f0 Bug 1864 - Spectrogram settings dialog hides the checkbox for "Enable Spectral Selection"
Fixed by a more compact layout.
Also we now size the dialogs for unique pages to fit their contents.
2018-04-11 11:08:28 +01:00
David Bailes
26860d9ef0 Mixer toolbar: change accessibility names of sliders
The third argument of ASlider constructors already provided suitable accessibility names. So removed the unnecessary calls to SetName which set unsuitable names.
2018-04-11 10:17:41 +01:00
David Bailes
526606fc29 Fix more accessibility names after the move to wx 3.1.1
This is a follow up to commit f9ee3cd.
2018-04-10 13:43:50 +01:00
Paul Licameli
1c751fd863 Revert "Change procedure to choose append-record tracks once again..."
This reverts commit bbcd924371326692d849480895dfa83171b17515.
2018-04-09 22:33:03 -04:00
Paul Licameli
bbcd924371 Change procedure to choose append-record tracks once again...
... Allow recording stereo into non-adjacent mono tracks, if they are selected.

Prefer the earliest-starting set of tracks in the track list, among either
selected tracks, or else among all tracks.

Therefore if selection contains a mono, a stereo, and a mono in that order,
the two monos may be chosen to record new stereo.
2018-04-09 22:12:50 -04:00
James Crook
473a92d28f Bug 916 - User input not validated in Noise Reduction effect 2018-04-09 18:08:43 +01:00
James Crook
0dd3aef6bc Bug 891 - Number-entering bug in kHz High Frequencies. Unfriendly to have to enter High first if new Low is above High.
Spectral frequencies now behave like temporal selection, nudging the 'other' value up or down so that the low and high values don't cross over.
2018-04-09 16:30:09 +01:00
James Crook
7ab4b8c6df Bug 875 - First character is highlighted when tabbing into TimeText controls, not first non-zero character. 2018-04-09 15:51:18 +01:00
Paul Licameli
8de9c53e9e Allow again recording of stereo into two adjacent mono tracks 2018-04-08 17:41:27 -04:00
James Crook
0909a4acfa Bug 293 - Paste/insert does not affect included label tracks when Sync-Lock is off 2018-04-08 21:42:19 +01:00
Paul Licameli
5fe3c1bdd0 Append-Rec: Prefer first, not last, track with correct # of channels 2018-04-08 16:37:40 -04:00
James Crook
7ef7e80e19 Fix FadeEnds Macro
This was broken by the change over to use internal names for enum values.
2018-04-08 20:34:29 +01:00
James Crook
b792094b53 Bug 1710 - The Incredible Shrinking ToolBar
The worst symptoms of this are fully fixed.
1: The device info now uses all the space in the toolbar, no matter how the toolbar is resized.
2: The undocked toolbar can now be moved around repeatedly without changing size at all.

There is a small residual - a much toolbar size change of a few pixels on docking.  The contents though still fit nicely.  The 'incredible' part of this bug is gone.  I'd like us to close this bug as the residual of a few pixels change in the toolbar size on repeated docking and undocking scarcely matters.
2018-04-08 19:51:10 +01:00
James Crook
082752e585 Fix Linux toolbar resizing bug
Bug came in with wx3.1.1 and is related to delays between resizing request and actually doing so.
2018-04-08 19:51:10 +01:00
James Crook
98bbb3436d Fix sizers in WarningDialog
AddUnits is only allowed in a HorizontalLay or MultiColumn.
EndVerticalLay was missing.
2018-04-08 19:51:09 +01:00
Steve Daulton
564e840d54 Fix background colour of Prefs
On Linux, it is not necessary to explicitly set the background colour
here, but left a comment in case it is required on other platforms.
2018-04-08 18:18:54 +01:00
Paul Licameli
b36482d649 If record overrides append because of channel count, record unlimited 2018-04-07 23:37:51 -04:00
Paul Licameli
9fcccd32ac Rewrite append-record onto only the proper number of channels 2018-04-07 23:32:23 -04:00
James Crook
b60fae4470 Fix some warnings on mac
These are mostly missing 'overrides'
2018-04-07 20:28:27 +01:00
David Bailes
f9ee3cdc45 Fix some of the accessibility names that disappeared with the move to WX 3.1.1
The main change in wxWidgets for the setting of accessibility names is:
7dab555f71 (diff-04f5191d86f95b1c4d5d9c979da65878)

Before this change, with wxUSE_ACCESSIBILITY set to 1, for wxWindow and all the classes derived from it, wxWidgets automatically created accessible objects to handle accessibility itself. Because the way wxWindowAccessible::GetName() was written, the accessibility names of lots of windows and controls had to be set using SetName().

After the change, by default, the accessibility of instances of these classes is handled by Windows. Where the accessibility of a control is handled by Windows, then the accessibility name is automatically set to so the appropriate value. However, an accessible can still be set using SetAccessible() then wxWidgets handles the accessibility for this object.

So for many controls we can just leave Windows to set the accessibility name. However, for controls which don't have any visible labels, or where we want to accessibility name to different from the visible text, then we have to set an accessible object for that control, and then call SetName(). The Class WindowAccessible can be used for this purpose. And for custom widgets, like the TrackPanel, and the NumericTextCtrl, SetAccessible() still has to be called, since they need bespoke accessible objects

So in the cases where we want the accessible name to be different from normal, we now need to explicitly set an accessible object. (Before, this wasn't needed, as accessible objects were automatically created.).

Some notes of the fixes included in this commit:
1. The fixes cover the main window, preferences, and built-in effects. Other fixes will follow.

2. In ShuttleGui, I've set accessible objects for wxTextCtrls and wxSliders. So all of these widgets still need the name set. This was done because there are a lot of instances where these controls need non standard accessibility names, and so it saves having to put lots of SetAccessibles throughout the code.

3. For wxPanel, Windows picks up the accessibility name from the label, and so SetLabel() can be used instead of SetName(). This is just as well, since for windows that contain other windows or controls, setting WindowAccessible as the accessibility object breaks the accessibility tree.

Note that at some stage a lot of calls to SetName() can be removed from the code as they are no longer needed, but it might be better to leave them there for the moment, just in case they are unexpectedly needed.
2018-04-06 17:24:40 +01:00
James Crook
213daba23f Avoid multiple include of configunix.h 2018-04-06 11:54:15 +01:00
James Crook
0885fda459 Fix mod-nyq-bench compilation under Windows. 2018-04-05 19:41:10 +01:00
James Crook
af54ac9cf6 Don't record a stereo track into a mono track
Or more precisely, don't do append-record, if doing so would lose a channel - e.g. if there is only a mono track selected and recording is set to stereo.
2018-04-05 11:53:58 +01:00
James Crook
76f72f0a3b Don't record a mono track into a stereo track. 2018-04-04 22:36:07 +01:00
James Crook
291be502a0 Generate JSON box list for ThemeCache
The commented out wxLogDebug statements in Theme.cpp give the
location of all the boxes in the theme.  This is useful
for identifying what is in the theme cache for javascript code.
2018-04-04 21:34:15 +01:00
James Crook
8782a7264a Add code for iota theme-bitmap
This #ifdeffed out TEST_CARD is useful for javascript code that shows how a
theme will look, when applied to Audacity.  With the code enabled, each
pixel of audacity is painted with a colour that encodes the location in
the theme image map that was used.

Net result - in javascript you can change any colour in the theme cache
and instantly see how Audacity will look.
2018-04-04 21:30:10 +01:00
James Crook
67f7ca7d0a Bug 1731 - No help button in "Error: not well formed Invalid token at line (x) [Residual]
With this change, help now goes to a specific sub-page for this error, rather than to the generic top level page.
2018-04-04 16:48:21 +01:00
James Crook
68b4cb919f Add "Help" button to Noise Reduction. 2018-04-04 15:16:04 +01:00
James Crook
c0e1c82be9 Add missing files to Mac build.
Also moved the constructor into the .cpp file, so that wxWindow is a fully defined class.
2018-04-04 14:14:59 +01:00
Steve Daulton
0a12f6a81f Increase max sample rate for RAW to 384 kHz
Match the maximum preset sample rate.
2018-04-03 19:04:44 +01:00
David Bailes
f027708fe1 Fix an issue caused by the accessibility changes in wxWidgets 3.1.1
The main change in wx accessibility is this:
7dab555f71 (diff-04f5191d86f95b1c4d5d9c979da65878)

However wxWindowAccessible has not been updated to take into account of that change. In particular wxWindowAccessible::GetParent() was always wrong, but it was consistent with the rest of the framework. Now it's wrong and inconsistent. This function should return an object with role window, and which has the same name.

The fix is to introduce class WindowAccessible, which is effectively our own version of wxWindowAccessible. This class does not override GetParent(), and so just relies on a standard accessible object to to the right thing in wxIAccessible::get_accParent() (which is does). This class also allows us to have our own version of GetName(), which allows us to set the accessibility names of buttons.

These changes will break the accessibility of Audacity if it is built with wxWidgets 3.0.X. If this is a problem, then there could be some #if stuff in WindowAccessible.h to turn the WindowAccessible class into one which simply inherits from wxWindowAccessible, and doesn't override anything.
2018-04-03 14:57:59 +01:00
James Crook
d68500fe2b Possible MSVC buildbot fix.
The buildbot was reporting "error C2440: 'default argument' : cannot convert from 'initializer-list' to 'const wxString &'" for prefs.h
2018-04-02 19:46:08 +01:00
James Crook
8c15422211 Allow 'Export Multiple' of a single track. 2018-04-01 17:52:34 +01:00
James Crook
03945e8057 Compile all libs and link (Debug only so far) using CMake 2018-04-01 15:51:11 +01:00
James Crook
94a731982d Add cotire (compile time reducer) to CMake
https://github.com/sakra/cotire

Currently we only use it for precompiled headers for Audacity src.
There is a 'unity' build, but it needs work by us to fix it for duplicate
definition.
2018-04-01 09:23:11 +01:00
James Crook
a6bbfc400f Add more libs for Audacity to CMake 2018-04-01 09:23:11 +01:00
James Crook
c3a440e561 Add audacity src 2018-04-01 09:23:11 +01:00
Paul Licameli
3d82ee7ec0 fix Mac build 2018-03-31 23:28:08 -04:00