1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-25 00:48:10 +02:00

210 Commits

Author SHA1 Message Date
Paul Licameli
c9c5421e49 Properly hide non-Full keyboard defaults containing Command+ on Mac 2018-02-08 17:19:18 -05:00
Steve Daulton
336b2a8fe2 Allow scripting to select beyond tracks end time
This is required to set selection for generate effects in
new projects.
2018-01-22 15:19:58 +00:00
James Crook
f8be26a9b8 Spaces allowed in batch command parameter values now
PROVIDED you use single or double quotes around the string.
2018-01-18 15:30:05 +00:00
James Crook
be0e6cd605 Scripting: Unicode chars in responses are now OK.
This is also relevant to batch scripting.  We need to stay in UTF8 to be safe.
Thanks to Robert Hänggi for reporting this issue.
2018-01-17 17:49:43 +00:00
Paul Licameli
0265b8792d More stl idiom for TrackList and its iterators 2018-01-14 16:58:19 -05:00
James Crook
af13e85922 More commands documented in wiki implemented.
- Added new facility whereby parameters can be optional, and can be
tested for their presence.
- Can now set Pan, Gain, Selected, Solo, Mute, Focused using SetTrackInfo,
mirroring what GetTrackInfo can do.
2018-01-13 22:49:24 +00:00
Paul Licameli
cb403954fa Use std::[tr1::]unordered_(set|map), not the wxWidgets container macros 2018-01-08 18:22:51 -05:00
Paul Licameli
cd8ec5e6a8 Try another fix for AppVeyor. 2018-01-08 16:44:59 -05:00
Paul Licameli
6967925e48 Redo CommandManager::DescribeCommandsAndShortcuts with pairs...
... Later we may make other types for the members of that pair.
2018-01-08 14:14:22 -05:00
James Crook
27d2b7c51b Add AutomationCommands class
- AutomationCommands replaces GetAllMenuCommands, and can provide
information about menus, buttons and toolbars to a script.
- BatchCommands can now return textual results to a script.
- There's a new GUID for mod-script-pipe and it is included in the .sln.
2018-01-06 19:27:45 +00:00
José Manuel Ferrer Ortiz
f332b9e3cf Obtain file extension starting from the last . (rather than the first) on Export command 2018-01-06 19:50:11 +01:00
José Manuel Ferrer Ortiz
4f76a4b5e1 On GetTrackInfo command, return end time (a double) with all its decimals
It's needed when we try to end a selection - with Select command - at the end of a track, because the value returned by GetTrackInfo was rounded, and therefore Select command would sometimes fail with "End time is after end of track!" error.
2018-01-06 19:35:44 +01:00
Paul Licameli
ab6de1181d No more functor objects; all command handler functions take same args 2018-01-05 09:27:29 -05:00
Paul Licameli
77c392d29c AudacityProject::OnEffect wraps new function DoEffect 2018-01-05 09:27:28 -05:00
Paul Licameli
6dead232f2 Pair CommandHandlerFinder with functor everywhere, but not used yet 2018-01-05 09:27:25 -05:00
Paul Licameli
d263eaa97b Remove the special PopupFunctor, redo it by other means...
... it was only used, so far, by the scrubber.
2018-01-05 09:27:23 -05:00
Paul Licameli
1e3ab82a01 Effect commands store PluginID in CommandEntry parameter, not functor 2018-01-05 09:27:21 -05:00
Paul Licameli
05984e8bfb CommandEntry stores a string parameter, passed in CommandContext 2018-01-05 09:27:19 -05:00
Paul Licameli
0a711d8b26 define CommandContext 2018-01-05 09:27:17 -05:00
Paul Licameli
aa5c3f12a3 easy change key bindings 2018-01-05 09:27:11 -05:00
Paul Licameli
def1d52505 Substitute, don't concatenate, when composing localized strings...
... Avoid English syntax bias.
2018-01-04 04:30:46 -05:00
Paul Licameli
7fd78183d2 Remove needless uses of wxString::c_str() in wxString::Format...
... and similar wx "variadics," which all treat wxString smartly enough that
you don't need this.

Don't need c_str either to convert wxString to const wxChar * because
wxString has a conversion operator that does the same.
2018-01-01 20:34:33 -05:00
Paul Licameli
ccb4bbac33 Translate "Message" as default title of message box...
... This required a sweeping change of all calls to wxMessageBox!  But it seems
safe to me, despite the great number of touched files.
2018-01-01 17:50:02 -05:00
James Crook
42573d36f8 Make 'Message' default be 'Connected'. 2017-12-21 17:33:23 +00:00
James Crook
a7960864dd Fix scripting bug where missing parameters gave syntax error
In these cases the default parameters should have been used instead.
Also the Help command now gives Help on Help by default.
2017-12-20 19:58:05 +00:00
James Crook
a49f14ad02 doxygen. Class list completed for letter 'A'. 2017-11-09 18:32:29 +00:00
David Bailes
cbfde23e42 Fix for 1753: keyboard interaction with meter buttons broken
There are two problems with using Enter to press the meter drop down buttons:
1. It only works the first time.
2. If auto-select auto is on, then audio is auto-selected.

This was caused by commit a0ea5d6. The problem with this commit is that meters and sliders are also derived from wxPanel, and therefore affected by the fix.

To fix this, make the above fix specific to the Lyrics panel.
2017-10-14 21:49:20 -04:00
Paul Licameli
731a2ac40c Fix format of tooltip text for toolbar buttons in RTL languages...
... No translatable strings were added, two were removed
2017-09-11 22:08:06 -04:00
Steve Daulton
b9aaec6919 Fix bug 1730 2017-09-04 12:12:09 +01:00
James Crook
059139bb6d Bug 1727 - Spacebar may not start / stop playback
Fix proposed by David Bailes.
2017-08-28 22:53:55 +01:00
James Crook
ce9938787c Use alpha or released or local manual for "help on selection".
Previously this was hard coded to use the online alphamanual.
Some other help-on-errors paths were hardcoded to use the online manual, and did not use local help even if available, so these were changed too.

Also two naming changes in the code:
ShowHelpDialog() became ShowHelp() because it typically shows the help in your browser, only showing the help in a dialog under certain circumstances.
The helpURL parameter became helpPage since it is usually a page name that is then elaborated into a url.
The Link() function became InnerLink().

Some careful http -> https changes made too.
2017-08-25 13:59:16 +01:00
James Crook
47372cfe7d Add comments about URL-Help (Bug 299)
Bug 299 is an review and enhance request for all error messages to show the iconic help link.
These comments may help a little with identifying where they are and aren't needed.
2017-08-16 17:58:27 +01:00
Paul Licameli
f0de38dec1 Scanned for bad naked new; found none; changed comments, used safenew 2017-07-23 09:35:01 -04:00
Paul Licameli
0feda0395e Comment a recent fix 2017-07-22 15:41:07 -04:00
Paul Licameli
31be794906 Bug1652 addendum: correctly reread old key prefs with Control for Mac 2017-07-22 15:03:45 -04:00
Paul Licameli
3218351a79 Bug1652: Should show Mac Control [sic] modifier in menu shortcuts...
... This is distinct from Command, and it abbreviates as the caret ^ character.

Also:  show caret instead of "Control" in toolbar button tips, though that
is not done for any default key bindings.
2017-07-21 17:33:49 -04:00
Paul Licameli
812fd2adea move function 2017-07-16 23:01:12 -04:00
James Crook
58bd03419a Move Shift+J and Shift+K shortcuts into the standard set. 2017-07-03 17:30:12 +01:00
James Crook
46154d0dca Upgraders to 2.2.0 retain the full set of default shortcuts.
If they delete audacity.cfg they get the new smaller set of defaults.  Also if they explicitly ask for the standard set.
2017-06-30 21:38:20 +01:00
James Crook
a9cbebcb0f Reduce number of shortcuts provided by default.
The full list of shortcuts, the maxList, is still available, and can be set in KeyboardPreferences.
2017-06-28 23:00:02 +01:00
James Crook
198dbc4c2a Support screenshots of toolbar variants.
Slightly tidied up the code too.
2017-06-10 21:33:05 +01:00
James Crook
500907ff87 Remove text explaining the 'Help Button'.
It is a button, not an icon, so it does not need explaining what it is.  Also this solves the issue of when the help button is deliberately removed after use.
2017-06-10 18:12:32 +01:00
James Crook
7341bff9e0 Disallow AutoSelect on dangerous commands.
Commands flagged with NoAutoSelect will not auto select, even if the user has asked for it.  This is used for Cut and 3 different kinds of delete.  We later might extend it to fades and repair.
2017-06-09 22:36:05 +01:00
James Crook
adc7312954 Auto-Select off by default.
I've implemented three states for what to do if no selection:
0 - Grey out (no longer used)
1 - Auto-select
2 - Give the warning message and try again.
2017-06-09 19:40:28 +01:00
James Crook
3cfe3eee4f Fix effects screenshot filenames. 2017-06-07 18:08:57 +01:00
James Crook
8f66c3603d Screen capture preference panels too. 2017-06-07 15:59:25 +01:00
James Crook
ee9649eeb5 Simplify and extend automatic screenshotting
Now includes 2 'outlier' analysis effects, and has simpler code.
The tricky capture cases are now first in the list.
Vocorder and Chirp are now included.  Comma was missing between them.
Now gives error report for an unknown command.
2017-06-04 16:54:53 +01:00
Paul Licameli
c38efc1fcd FindTrackRect omits all margins; better screen reader focus rects...
... Formerly it was outside of the yellow focus at the right side.  Now it
follows the yellow consistently on four sides.

The constant dx in TrackPanelAx::GetLocation might be adjusted.

No change of behavior is intended at other uses of FindTrackRect
2017-06-04 11:31:46 -04:00
Paul Licameli
134c1ff47a Gather duplicated rectangle calculations in one place...
... and don't use unexplained integer constants
2017-06-04 11:31:44 -04:00
James Crook
acd55e95db Capture screenshots of effects.
Only available if you define EXPERIMENTAL_DOCS_AUTOMATION.
This code is still a bit ropey and not suited for prime time, but fine for our own (careful) use in preparing the manual.

It captures most of the effects, generator and analyze built ins and nyquist dialogs.  Use it by creating a track, making a selection and then clicking the 'All Effects' button in the screenshot tools.  The dialogs will be captured to your user directory.
2017-06-03 15:59:51 +01:00