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

8364 Commits

Author SHA1 Message Date
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
Paul Licameli
29b214367d Make std::tuple known in Mac build 2018-03-01 22:21:55 -05:00
Paul Licameli
4e0420b9bd In all .ny, http: > https: for Audacity websites 2018-03-01 21:48:41 -05:00
Paul Licameli
6b2a219e26 Changes to make xlisp.h usable in C++ code...
1) #include guard
2) "C" linkage for all function declarations
3) some uses of const
2018-03-01 21:48:41 -05:00
Paul Licameli
5aa70545d5 Use casts with function pointers to quiet compilation warnings in Nyquist 2018-03-01 21:43:32 -05:00
Paul Licameli
8a216e86c2 Update audacity.pot for C++ string changes so far 2018-03-01 21:41:53 -05:00
Paul Licameli
223e0d5883 Update audacity.pot for C++ strings so far in 2.3.0 2018-03-01 21:41:16 -05:00
Paul Licameli
332d62823d Update POTFILES.in for new and removed files
find src include lib-src/FileDialog lib-src/mod-script-pipe lib-src/mod-null lib-src/mod-nyq-bench lib-src/lib-widget-extra -name '*.cpp' -o -name '*.h' -o -name '*.mm' | sort
2018-03-01 21:41:16 -05:00
Paul Licameli
42eadfc6f7 sort POTFILES.in, so less diff to see in the next commit 2018-03-01 21:41:16 -05:00
Paul Licameli
d226aaa8ee Add a space 2018-03-01 21:41:15 -05:00
James Crook
59d41a2064 Refine buttons (Chains)
- Move them around on EditChainsDialog so that dialog can be shrunk.  (new column).
- Use "Files..." not "Files" as the button text.
- Take 'Apply Chain to:' out of the BatchProcessingDialog buttons, and place as separate text.
2018-03-01 21:57:44 +00:00
James Crook
68e8a75686 Merge branch 'chains' into master
Some work on chains to make the dialogs easier to use.
- Reduced duplications and unnecessary text in the select command dialog.
- Select Command Dialog gains a new 'Details' text box.
- Resized dialog so that more commands are visible.
- Now can apply commands direct from the edit chains dialog.
- Editing commands goes direct to editing their parameters.
- Fixed minor UI issue where button did nothing if nothing selected.
2018-03-01 20:03:46 +00:00
James Crook
ef63f716e3 Remove duplicate commands from 'Select Commands' dialog.
- Removed special commands that now have menu equivalents.
- Removed duplicated commands in the list, e.g. from multiple instances of Nyquist effects.
2018-03-01 19:57:02 +00:00
James Crook
bf03fd874b Add details box to BatchCommandDialog
It is now populated with the CommandID and the command type.
Later we can add the command help string.

Std::pair changed to std::tuple to accommodate the extra information.
2018-03-01 19:55:34 +00:00
James Crook
f5929381ec Add buttons to Edit Chains Dialog
- Added the Apply-to-Project and Apply-To-Files buttons
- Derived EditChainsDialog from BatchProcessDialog so as to share code.
- Added Edit button, for people who don't realise they can click on the list.
- Clicking on list now directly invokes the parameter editing.
- Insert and Edit now insert before --END-- if nothing was selected.
2018-03-01 19:55:33 +00:00