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

8278 Commits

Author SHA1 Message Date
James Crook
ea0e0d71af Add scripts for names-on-tracks images. 2018-03-04 22:07:45 +00:00
James Crook
24ee14412f Merge branch 'macros' into master
- Macros Dialog expand/shrink now optically stable.
- Fade Ends macro now works (The ':' is in the right place)
- Macros can call other macros, but only one deep, now.
- MacroIDs are textual names now, not Macro007
- Macros Dialog expand/shrink saves the changes so they are not lost by resizing.
2018-03-04 19:42:53 +00:00
James Crook
834c9df32a Save Changes when Expanding/Shrinking Macro Dialog.
Previously the selected macro was forgotten, as were any pending
changes.
2018-03-04 19:16:30 +00:00
James Crook
70b1f69bbe Use names not numbers in MacroIdOfName()
Previously the ID for a macro was, e.g. Macro003.  However this would
not work if macros were added or deleted, since chains containing the old
macro references would now refer to a different macro.  So changed to using
names.
2018-03-04 19:11:26 +00:00
James Crook
585a4c6170 Prevent excessive macro reentry.
User could have made a macro call itself.
Or could have an 'exploding' macro chain with 'too much' in it.
So limit it to a macro can call a macro, but not deeper.
2018-03-04 18:41:17 +00:00
James Crook
153da3a94d Fix Fade-Ends MacroCommands
- Split parameters from command name.
- Improve test for 'fixed Macros'.
2018-03-04 18:41:16 +00:00
James Crook
4dfac323c0 Make Macro Dialog optically stable.
Expand and Shrink now happen 'in place'.
Title changes to and from 'Apply Macro' <-> 'Edit Macros'
2018-03-04 18:41:16 +00:00
James Crook
159a3ab6af Rejig EditLabels Dialog.
- Made it more like the Edit Chains Dialog. (Buttons on right).
- Now using ShuttleGui somewhat.
- Gave it a Help button.
2018-03-04 18:41:15 +00:00
Steve Daulton
5c4b2249fd bug 1851 Remove selection before Timer Record 2018-03-04 14:48:24 +00:00
Steve Daulton
f1ab2db9bb bug 1850 - add Track > Pan to History 2018-03-04 14:48:24 +00:00
James Crook
e45a6b09d4 Change wordings and consolidate prefs.
- Bring more options together into one static in prefs
- Use verb followed by description for options.
- Capitalise D in 'Down' in a menu item.
2018-03-04 09:39:42 +00:00
James Crook
eab0af21ee Merge branch 'tools-menu'
- New Tools menu, with macros and some nyquist in it
- Also has Macros... dialog, which can both edit and apply macros.
- 'Macros' feature was previously called 'Chains', so a lot of renaming.
2018-03-03 22:24:08 +00:00
James Crook
6f8d27208f Remove Apply-Macro from Tools menu.
Done by giving Macros... dialog an Expand / Shrink button
so that we can use it as just an apply-to-projects dialog, if we want.
The dialog is modal, and can be kept open whilst we work.  So for example
we could put useful presets into it as macros.
2018-03-03 22:20:25 +00:00
James Crook
fbef142fa5 Move 3 Nyquist plug-ins into Tools menu 2018-03-03 20:37:11 +00:00
James Crook
6e40d6d969 Add Fade-Ends macro. (a new item in Tools menu) 2018-03-03 20:36:13 +00:00
James Crook
c0dcba66dd Rename Chains to Macros.
Lots of renaming.
Did not rename the containing files (yet) since that will require makefile updates.
2018-03-03 19:17:18 +00:00
James Crook
8ab69ae5c3 Update tools menu on Mac too.
This entailed making the Edit Chains and Apply Chain dialogs modeless.
That is good for other reasons too.
2018-03-03 19:16:50 +00:00
James Crook
f41e781c61 Fix bug where 'Applying chain to project' progress dialog might not show.
- Windows needs to wxYield, to give the dialog time to show after being created.
2018-03-03 12:57:39 +00:00
James Crook
6b54ffdf0f Update tools menu on changing available chains.
- We recreate the whole menu bar.
2018-03-03 12:57:36 +00:00
James Crook
e6a2d0f99a Add all chains into the Tools menu. 2018-03-03 12:57:35 +00:00
James Crook
8cd5d7f4fe Tools menu and EffectTypeTool
- Also add a 'Nyquist Prompt' to the Tools Menu.
- Currently it is the same as the Effects Nyquist Prompt.
- Chains moved into the Tools prompt.
2018-03-03 12:57:32 +00:00
James Crook
fb8b797d63 Layout changes
- Progress bar now less likely to obscure a small window that invokes it.
- Check boxes grouped together in TrackPrefs
2018-03-03 12:53:41 +00:00
James Crook
6b3041118f Add Help buttons to three Dialogs.
- Added to Edit and Apply Chains dialogs.
- Added to Select Command dialog.
2018-03-03 10:15:09 +00:00
Paul Licameli
6914c21413 Fix parentheses in a Lisp comment 2018-03-02 20:12:26 -05:00
Paul Licameli
24a350920c Internationalization of strings in .ny files, both headers and bodies 2018-03-02 20:11:56 -05:00
Paul Licameli
4dfa9aae8f Combine message catalogs into one...
... Done by hand thus:
msgcat audacity.pot ../nyq-po/audacity.pot > tmp; mv tmp audacity.pot
2018-03-02 20:11:56 -05:00
Paul Licameli
38a6ba5209 Generate nyq_po/audacity.pot 2018-03-02 20:11:55 -05:00
Paul Licameli
36ab6c7334 Rewrites of all the .ny files for internationalization 2018-03-02 20:11:55 -05:00
Paul Licameli
ac9148e48f Don't use \n sequence inside Lisp strings needing translation...
... Because xgettext will just remove the \, not replace \n with newline.

That's consistent with Lisp reader behavior in this documentation:
http://www.lispworks.com/documentation/lw70/CLHS/Body/02_de.htm

The XLisp reader, which replaces \n with newline, is nonstandard.

So, to accommodate xgettext, use (format nil "...~%...") instead, or where
you can't do that in a $ header line, just make a line break inside the ""

There are a few "\n" left alone in sample-data-export.ny which are neither
in $ lines nor inside (_ "...")
2018-03-02 20:11:55 -05:00
Paul Licameli
da39cc451f Remove redundant ellipses from names in .ny files...
... The code that parses the header was always just throwing them out.

The code that populates menus deduces whether to add ellipses, as there are
controls or not, regardless what the $name line said.
2018-03-02 20:11:54 -05:00
Paul Licameli
0beb16210f Usage of _ in Nyquist program bodies 2018-03-02 20:11:54 -05:00
Paul Licameli
da9471ac7f Internationalize some of sample-data-export.ny, including HTML...
... The rule that one should avoid markup in translatable strings conflicted
with the more important rule against concatenating too many strings that are
too short.
2018-03-02 20:11:53 -05:00
Paul Licameli
4733899dd7 Rewrite default values of string controls 2018-03-02 20:11:53 -05:00
Paul Licameli
447d15bc75 Rewrite trailing labels of controls 2018-03-02 20:11:53 -05:00
Paul Licameli
8709e9735a Rewrite choice controls 2018-03-02 20:11:52 -05:00
Paul Licameli
4018e3b87b Rewrite prompts in ;control lines 2018-03-02 20:11:52 -05:00
Paul Licameli
cc455fac16 Rewrite ;copyright 2018-03-02 20:11:51 -05:00
Paul Licameli
6298ac947a Rewrite ;author 2018-03-02 20:11:51 -05:00
Paul Licameli
5e390f331a Rewrite ;info 2018-03-02 20:11:51 -05:00
Paul Licameli
72df4e833c Rewrite ;action 2018-03-02 20:11:50 -05:00
Paul Licameli
a13827e024 Rewrite ;name 2018-03-02 20:11:50 -05:00
Paul Licameli
ff3a869e83 Line breaks allowed in strings (or lists) in $ lines; \n means n ...
... because we must match how xgettext parses strings, and unlike XLisp, it
does it strictly according to this reference:

http://www.lispworks.com/documentation/lw70/CLHS/Body/02_de.htm
2018-03-02 20:11:47 -05:00
Paul Licameli
ad4843621b Allow Nyquist header lines to start with $ 2018-03-02 19:46:58 -05:00
Paul Licameli
ba8e6bd465 Change tokenization of header comment lines & translate strings ...
... allowing (_ "...") for single strings, and allowing a sequence of such
inside outer ( ) for choice controls, but still accepting the old syntax too
2018-03-02 19:46:58 -05:00
Paul Licameli
0879949904 Register translation functions for Nyquist effects into XLisp runtime 2018-03-02 19:46:57 -05:00
Paul Licameli
6ea647cc1d Set up for extracting i18n strings from .ny files with xgettext 2018-03-02 19:46:57 -05:00
Paul Licameli
d3493814e2 Fix Mac build 2018-03-02 19:46:35 -05:00
James Crook
3e8dec452c Give track name overlay a background.
- Also changed over from using the yellow color.
2018-03-02 19:27:42 +00:00
James Crook
3f358a39b6 Remove results window from BatchProcessDialog
- It isn't needed as the results go to the Long Message Dialog window.
2018-03-02 18:19:23 +00:00
James Crook
6509947de8 Fix some MSVC warnings. 2018-03-02 12:04:37 +00:00