1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

8180 Commits

Author SHA1 Message Date
James Crook
89cd4aef88 More Screenshot options 2018-02-24 14:20:28 -05:00
James Crook
79145d3e89 Remove "list" from LISP label format.
- Not needed if we can add a back tick at the start.
2018-02-24 14:20:28 -05:00
James Crook
b4f7f485a8 Less verbose LISPy output of GetInfo: Type=Labels 2018-02-24 14:20:27 -05:00
James Crook
a2eb8cdae3 Support Spectral Selection and Spectrogram mode in Automation. 2018-02-24 14:20:27 -05:00
James Crook
3c5468a1c8 Add buttons. Help and Cancel. 2018-02-24 14:20:27 -05:00
James Crook
f7fe295651 Make Message command into an AudacityCommand. 2018-02-24 14:20:27 -05:00
James Crook
edf90d6e2c Add envelope commands
- Added SetEnvelope (which can also delete/clear an envelope.)
- Added GetInfo: Type=Envelope
2018-02-24 14:20:27 -05:00
James Crook
5d36890cb0 Shorter command names. General tidying.
-More commands now have shorter names for parameters.
-New scripts for generating images.
-Several old-style commands retired.
2018-02-24 14:20:26 -05:00
James Crook
62ca1cce26 Improved labels script. 2018-02-24 14:20:26 -05:00
James Crook
29c96f5470 Add ability to set the selected label. 2018-02-24 14:20:26 -05:00
James Crook
26e1a33369 More screenshot options. 2018-02-24 14:20:26 -05:00
James Crook
5e2371c636 Use a-lists for Lispy output.
- Also bump long strings onto a new line in JSON and LISP formats.
2018-02-24 14:20:26 -05:00
James Crook
510f68e9ad Fix \n shenanigans in command output. 2018-02-24 14:20:26 -05:00
James Crook
65c160212e Script the images for Tracks page of manual.
- There's a problem with stem plot preference.  It isn't reloading properly from batch but is from menu.
2018-02-24 14:20:26 -05:00
James Crook
24e8bbc623 Scripts in Piped-Work
- New docimages script for the tracks.
- Added new option in screenshots to capture ruler as well as track.
- Typo fix (focussed)
2018-02-24 14:20:26 -05:00
James Crook
1f605ccfc8 Fix ScreenshotCommand
- Show Status immediately (Flush), don't wait for window to be closed.
- Correct strings with _ in them.
- Remove unhelpful 'Received Script Command' message.
2018-02-24 14:20:25 -05:00
James Crook
85c36fe7fe Implement selection from ends of tracks. 2018-02-24 14:20:25 -05:00
James Crook
99e18a8896 Implement ReloadPreferences for SetPreferences Command. 2018-02-24 14:20:25 -05:00
James Crook
1551a5a073 Include tips in command list. 2018-02-24 14:20:25 -05:00
James Crook
5c2f35d96f Fix Automation listing
- Now correctly shows optional fields
- Now includes the zero-parameter commands.
- Fetches the Short-Names for menu commands.
2018-02-24 14:20:25 -05:00
James Crook
78fbb6e21f Fix GetInfo: Commands (Automated type matching matched 'the wrong thing'). 2018-02-24 14:20:25 -05:00
James Crook
1d9477a455 SetClip, SetLabel, SetProject added
- SetTrack also updated with more options.
2018-02-24 14:20:24 -05:00
James Crook
2180379a18 Optional parameters now working. 2018-02-24 14:20:24 -05:00
James Crook
c02a29e261 Compilation on Mac
Changes found/recommended by Paul.
2018-02-24 14:20:24 -05:00
James Crook
8ebf502cd6 Cleaner class hierarchy 2018-02-24 14:20:24 -05:00
James Crook
b1b1a362ed Doxygen, Clips and Labels
- Classes renamed and better doxygenated
- GetInfo: Type=Clips added
- GetInfo: Type=Labels added.
2018-02-24 14:20:24 -05:00
James Crook
ca5dac59ff Support: JSON, Lispy or Other formats 2018-02-24 14:20:23 -05:00
James Crook
c0c5cc6337 Structured output for CommandContext 2018-02-24 14:20:23 -05:00
James Crook
b83b862b3f OldStyleCommandType - It's on the way out.
This renaming makes it clearer which code is still using Dan Horgan's Command system.
2018-02-24 14:20:23 -05:00
James Crook
2f6fc0a1e5 Long message target
This allows interactive display of the results of new commands that generate
lots of text.
2018-02-24 14:20:23 -05:00
James Crook
e29699086e More Menus Items, Better prompting Dialogs. 2018-02-24 14:20:23 -05:00
James Crook
1c988b4e3a Automation: AudacityCommand
This is a squash of 50 commits.

This merges the capabilities of BatchCommands and Effects using a new
AudacityCommand class.  AudacityCommand provides one function to specify the
parameters, and then we leverage that one function in automation, whether by chains,
mod-script-pipe or (future) Nyquist.

- Now have AudacityCommand which is using the same mechanism as Effect
- Has configurable parameters
- Has data-entry GUI (built using shuttle GUI)
- Registers with PluginManager.
- Menu commands now provided in chains, and to python batch.
   - Tested with Zoom Toggle.

- ShuttleParams now can set, get, set defaults, validate and specify
the parameters.
- Bugfix: Don't overwrite values with defaults first time out.
- Add DefineParams function for all built-in effects.
- Extend CommandContext to carry output channels for results.

We abuse EffectsManager.  It handles both Effects and
AudacityCommands now.  In time an Effect should become a special case of
AudacityCommand and we'll split and rename the EffectManager class.

- Don't use 'default' as a parameter name.
- Massive renaming for CommandDefinitionInterface
- EffectIdentInterface becomes EffectDefinitionInterface
- EffectAutomationParameters becomes CommandAutomationParameters
- PluginType is now a bit field.

This way we can search for related types at the same time.

- Most old batch commands made into AudacityCommands.
The ones that weren't are for a reason.  They are used by mod-script-pipe
to carry commands and responses across from a non-GUI thread to the GUI
thread.

- Major tidy up of ScreenshotCommand
- Reworking of SelectCommand
- GetPreferenceCommand and SetPreferenceCommand
- GetTrackInfo and SetTrackInfo
- GetInfoCommand
- Help, Open, Save, Import and Export commands.
- Removed obsolete commands ExecMenu, GetProjectInfo and SetProjectInfo
  which are now better handled by other commands.

- JSONify "GetInfo: Commands" output, i.e. commas in the right places.

- General work on better Doxygen.
    - Lyrics -> LyricsPanel
    - Meter -> MeterPanel
- Updated Linux makefile.
- Scripting commands added into Extra menu.
- Distinct names for previously duplicated find-clipping parameters.
- Fixed longstanding error with erroneous status field number which
  previously caused an ASSERT in debug.
- Sensible formatting of numbers in Chains, 0.1 not 0.1000000000137
2018-02-24 14:20:22 -05:00
Steve Daulton
b7b01d48e0 Replace 2.2.2 'Easter Egg' with place-holder 2018-02-24 16:05:41 +00:00
Paul Licameli
bab8ea8393 Thanks for nothing, MSVC std::list<T>::iterator implementation...
... I worked around the unhelpful helps that made gratuitous runtime errors,
in debug builds but not in release.
2018-02-23 14:58:12 -05:00
Paul Licameli
e094dcbaf2 Fix unbalanced #pragma warning since commit 080dd34 2018-02-22 21:01:20 -05:00
David Bailes
a1c03d0f7d Bug 1786: duplicate shortcuts can be created
Problem: When [gui/shortcuts]fulldefaults is true, then you can't clear the shortcut of a command which is only in the full set.
In bool KeyConfigPrefs::Commit(), for a command only in the full set, dkey = "", so if the key is set to "", there will be no entry in NewKeys for this.

In CommandListEntry *CommandManager::NewIdentifier, if [gui/shortcuts]fulldefaults is true, then for all commands the key is initially set to the default. For the shortcut that should have been cleared, there is no entry in NewKeys to override this, so it is in fact not cleared.

Fix: In bool KeyConfigPrefs::Commit(), when [gui/shortcuts]fulldefaults is true, use the full set of defaults to find the default key.
2018-02-22 18:36:39 +00:00
Paul Licameli
2a08a3cc07 Fix windows build...
Defaulted move constructors and assignments introduced at 080dd34 are not
essential but might give a bit more efficiency in std::vector on non-Windows.

Previous compilation fix was incorrect!  Excpliticly defined move assignments
should not have had no-effect bodies!
2018-02-22 12:32:53 -05:00
James Crook
e3f2a3e3ff
Merge pull request #254 from GitHaarek/patch-1
Updated and migrated the file to the latest appstream specs
2018-02-22 17:27:40 +00:00
James Crook
636e137ee8
Merge pull request #257 from Polynomial-C/no_midi
Fix --without-midi build
2018-02-22 17:26:56 +00:00
James Crook
2ece1acae9 Fix build
These changes needed to build on MSVC 2013.
2018-02-22 17:19:14 +00:00
Paul Licameli
e6d069787b Fix mistake in commit a1dc830 and add a comment 2018-02-22 01:10:10 -05:00
Grzegorz Pruchniakowski
47dab27df5 Update pl.po from Transifex - ready to merge
File fixes a two typos. Ready to merge.

Thanks and greetings,
Gootector
2018-02-22 00:57:30 -05:00
Paul Licameli
d77daa027e OnShowEffectsRack follows the unused argument convention 2018-02-22 00:17:30 -05:00
Steve Daulton
7134ca662f Fix typo 2018-02-21 22:46:29 -05:00
Paul Licameli
de568fc111 Avoid some needless repaints of AButton 2018-02-21 21:43:04 -05:00
Paul Licameli
44bf938948 indentation 2018-02-21 21:43:04 -05:00
Paul Licameli
5aca7b1759 Be careful about pluginsettings.cfg compatibility...
... Certain strings reported by PluginDescriptor are written into configuration
files, so these strings should NOT be carelessly changed between Audacity
versions.  And the source of some of these strings are overloads defined in
other classes in src/effects
2018-02-21 21:43:03 -05:00
Paul Licameli
942175f27b Comments which IdentInterface functions return persistent values 2018-02-21 21:43:03 -05:00
Paul Licameli
575070e9ae Remove PluginDescriptor::GetTranslatedEffectFamily...
... and instead look it up by ID, and find the effect's family name

Simplifying what was done at 4628d6afa7a553a242f00ee8c1be0e72c5692052
2018-02-21 21:43:02 -05:00
Paul Licameli
79a9f3f599 Simplify sorting of effects 2018-02-21 21:43:02 -05:00