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

9328 Commits

Author SHA1 Message Date
Paul Licameli
7f5e6d12b1 Only one public CommandManager fn to begin a menu and one to end...
... It knows the nesting, so it decides for itself whether to manage the menu
as main or sub-.
2018-10-20 09:40:03 -04:00
Paul Licameli
32efcd43c4 Simplify populating of Scrub menu 2018-10-20 09:21:22 -04:00
Paul Licameli
83ede10891 Remove unused forward declaration 2018-10-20 09:21:22 -04:00
Paul Licameli
27aa59ed50 AddItemList takes IdentInterfaceSymbol (untranslated) ...
... so that we can use a static constant table of names, which can't use
macro _ in initializers.
2018-10-20 09:21:22 -04:00
Paul Licameli
1b05ba9a78 A compile-time constant for the number of align menu items 2018-10-20 09:21:22 -04:00
Paul Licameli
474f80912a Some functions can be static, don't need to be members of MenuBuilder 2018-10-20 09:21:22 -04:00
Vitaly Kirsanov
b38af473c6
Missing <wx/sizer.h> include
Without it build on my Windows host fails
2018-10-20 10:48:39 +03:00
James Crook
e8762a478f Add 'Quick Fix' menu item to Help.
This helps with 3 of the stuck-in-a-mode problems, adding fix buttons for the issues.
2018-10-19 18:31:44 +01:00
James Crook
b7abde8527 Fix class/struct warning. 2018-10-19 17:56:53 +01:00
Paul Licameli
52672ed5e2 More careful sorting of effects...
... when grouping by two criteria (publisher and name or type and name).

Use a stable sort for the second sort so that the minor sort (done first) is
sure not to be destoyed.

Maybe this never mattered (depending on the implementation of std::sort and
its threshold for doing small sorts by insertion).
2018-10-19 11:12:20 -04:00
David Bailes
c067ad5b37 Apply macro sub menu: ensure first letter selection
Problem: Palette has the access key P, so any macro with name beginning with P cannot be selected by pressing P, since access keys have precedence over first letters.

Fix: remove access key, which is not needed since Palette is the first item, and so is selected when the sub menu is opened.
2018-10-19 15:50:13 +01:00
David Bailes
ac596554c4 Fix a couple of duplicate access keys 2018-10-19 09:27:17 +01:00
Steve Daulton
f09bfbc217 Small change of format for GetInfo Labels
to make parsing a bit easier in LISP
2018-10-18 22:56:02 +01:00
Paul Licameli
9ad88e091c Use weak pointers to simplify MenuCreator 2018-10-18 15:43:21 -04:00
Joachim Huffer
c22c7b6fce Update German translation 2018-10-18 17:28:30 +01:00
Carmelo Battaglia
4bbced11c9 Update Italian translation 2018-10-18 17:27:53 +01:00
Paul Licameli
aa81f9af57 Fix Linux build 2018-10-18 10:59:22 -04:00
Paul Licameli
d46532623a Fix build of mod-null 2018-10-18 10:38:17 -04:00
Paul Licameli
fcfc5d0f36 Fix build of mod-null 2018-10-18 10:24:42 -04:00
Paul Licameli
efe59ef1f8 Fix build of mod-null 2018-10-18 10:00:44 -04:00
Paul Licameli
1eb293b7b3 Fix build of mod-nyq-bench 2018-10-18 09:28:31 -04:00
Paul Licameli
16ab48079b Don't include CommandManager.h in other headers 2018-10-18 09:25:14 -04:00
Steve Daulton
8f5629a2a6 Update three Nyquist plug-ins
Fixed some verification errors,
Removed some redundant translation strings,
Define manpage for rms.ny.
2018-10-18 14:12:44 +01:00
Paul Licameli
9094750c54 No more error-prone SetDefaultFlags in menu building...
... instead, all additions of items are required to specify flags explicitly.

Reliance on a default setting didn't save much in characters of code, and
has led to subtle errors before when rearranging menus.
2018-10-17 23:15:30 -04:00
Paul Licameli
fc1bc7994e Remove CommandManager::SetDefaultFlags and related 2018-10-17 23:14:55 -04:00
Paul Licameli
a1bd9062ae Remove dead code; so that all remaining calls to NewIdentifier...
...are followed by a setting of flags and mask
2018-10-17 23:13:56 -04:00
Paul Licameli
63f20f3405 CommandManager::AddItemList requires flags 2018-10-17 23:13:56 -04:00
Paul Licameli
742e578d49 Flags in AddItem (and AddCommand) may not be NoFlagsSpecified 2018-10-17 23:13:56 -04:00
Paul Licameli
db997f8ecd Flags argument of AddItem (and AddCommand) is obligatory 2018-10-17 23:13:56 -04:00
Paul Licameli
d46f3a9e63 Simplify menu-building calls...
... Just one CommandManager::AddItem overload, instead of two plus two
overloads of AddCheck.  Also remove SetLongName.  Use an options structure
instead for all those distinctions.

Also simplify all the repetition of equal flag and mask values.  It's only in
four cases where we need to make them different.
2018-10-17 14:21:05 -04:00
Paul Licameli
f6478acb1c Just spaces 2018-10-17 14:14:21 -04:00
Paul Licameli
596eefe675 CommandManager::Options also specified the long name 2018-10-17 13:49:43 -04:00
Paul Licameli
cfe7ddcf55 struct CommandManager::Options lets us fold AddCheck into AddItem 2018-10-17 13:32:39 -04:00
Paul Licameli
de4132d66c Reorder accel argument and unify two overloads of AddItem 2018-10-17 13:32:36 -04:00
Paul Licameli
c376ffb165 Simplify calls to SetDefaultFlags: default mask to equal flags 2018-10-17 13:21:00 -04:00
Paul Licameli
42aef9f3e8 Mask != flags is unusual: simplify most AddItem/AddCheck...
... and the no longer used AddCommand.

There are only four exceptions, all using NoAutoSelect in the flags and not in
the mask.
2018-10-17 13:20:58 -04:00
Paul Licameli
80437582d8 Change comments that confused audacity.pot hints 2018-10-17 12:53:25 -04:00
Paul Licameli
399e2d099d Fix spelling in an enum constant name 2018-10-17 12:53:25 -04:00
Paul Licameli
88c67c46f3 Unify the two overloads of CommandManager::AddCheck 2018-10-17 12:53:25 -04:00
Paul Licameli
fef9e2abac Remove some unused things 2018-10-17 12:53:25 -04:00
David Bailes
bb7b95023f Bug 2009: Windows+Linux: Intermittent truncation of the end of a recording
Problem: up to about 300ms was intermittently truncated from the end of recording.
The bug was introduced by commit a0256e9.

The fix: in this commit, the line:
the line:
mRecordingSchedule = {}; // free arrays
was added to the lambda in the definition of cleanup at the start of AudioIO::StopStream()

If this line is changed to:
mRecordingSchedule.mCrossfadeData.clear();  // free arrays
then this has been found to fix the bug, and the vector is still cleared.

Clearly, the reinitialization of one or more of the other data members of mRecordingSchedule was causing the bug.
Which of the these reinitializations are the problem, and why is not known, and due to the nature of the problem could well take some time to find out.
2018-10-17 14:31:43 +01:00
Paul Licameli
a7df004a88 Don't include Project.h or ODTask.h needlessly in other header files 2018-10-16 17:36:38 -04:00
Paul Licameli
2fafe5c328 Fix Linux build 2018-10-16 17:35:15 -04:00
Paul Licameli
fc99f61945 Fix compilation of mod-nyq-bench 2018-10-16 17:17:32 -04:00
Paul Licameli
ce9f2e2538 Include Menus.h directly, only where needed, not via Project.h 2018-10-16 16:45:26 -04:00
Paul Licameli
a3fc5894fb Fix obsolete comments in Menus.cpp...
... In particular, some handlers have been in Scrubbing.cpp and MenusMac.cpp
for a few versions now, so we must soften "all" to "most"
2018-10-16 16:34:09 -04:00
James Crook
708cbe173e Consitently use On<something> iff it is a direct menu handler.
Some former 'On' functions have been renamed 'Do' since they didn't directly handle the menu item.  Some functions that used 'Context' now use 'Project'.
2018-10-16 15:15:35 +01:00
Paul Licameli
fc6570646d MenuCommandHandler is not a base class of MenuManager...
... This forces a better placement of state variables in the appropriate
classes.

In future perhaps, MenuManager should be splintered into several classes, one
for each of the main toolbar menus.
2018-10-16 13:01:22 +01:00
James Crook
d693b36bdb Shorten AudioIoCallback::FillOutputBuffers()
Mainly by moving functions to live outside this function.
2018-10-16 13:01:22 +01:00
James Crook
45069794f3 Reduce indentation in AudioIO
Flipped some conditions and used if else-if to reduce the indentation in code.
This makes the code more readable.  No change in functionality.
Also created UpdateTimePositions() and made some bool functions void.

new variable mMaxFramesOutput used to communicate positional change.
2018-10-16 13:01:22 +01:00