1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-31 17:08:45 +01:00
Commit Graph

50 Commits

Author SHA1 Message Date
Paul Licameli
83421e8b17 Replicated C++11 library things no longer needed 2018-05-10 00:56:37 -04:00
Paul Licameli
7a0475e39f Remove most uses of AUDACITY_OLD_STD 2018-05-10 00:56:36 -04:00
James Crook
a2a68d9a3b Add Comment: C++11 polyfiller is on the way out. 2018-04-13 20:24:52 +01:00
James Crook
effab49a6f Improve Mac wx3.1.1 compatibility
1. Qualify hash as std::hash.
2. Ensure we have a header for the function 'free'
2018-04-12 20:10:41 +01:00
James Crook
9015dece06 Compile with wxWidgets 3.1.1 (on Windows).
3.1.1 includes hash<wxString> so we don't need to.
git now ignores the win-alt-build subdirectory, which can be used for an alternative set of
windows build files.  So for example, can keep an old 3.0.2 set up there whilst working on 3.1.1
2018-03-28 12:40:19 +01:00
James Crook
2ccc8eec9b Revert "Don't use c++11 fix ups on OSX 10.6"
More is needed for this to work correctly on Mac.
2018-03-21 10:40:39 +00:00
James Crook
47451da0e0 Don't use c++11 fix ups on OSX 10.6 (requested by macrports.org) 2018-03-21 08:45:59 +00:00
Paul Licameli
29b214367d Make std::tuple known in Mac build 2018-03-01 22:21:55 -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
Paul Licameli
fa53d521a2 IteratorRange utilities 2018-01-10 07:44:36 -05:00
Paul Licameli
bec6f237bc Fix compilation warnings on Mac 2018-01-08 19:09:13 -05: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
0df4cd6c3f Fix transform iterator code. It was only a missing #include. 2018-01-02 08:31:41 -05:00
James Crook
26a18679f2 Comment out iterator transform code
It was causing a problem on MSVC2013.
2018-01-01 16:15:40 +00:00
Paul Licameli
2cdf931e5a More IteratorRange utility functions and member functions 2018-01-01 09:59:35 -05:00
Paul Licameli
86b9c5c5fe Can use std::function on Mac too 2017-12-31 16:18:51 -05:00
Paul Licameli
5ca8766c52 define freer 2017-03-17 17:52:44 -04:00
Paul Licameli
1eff721f09 Define some useful type aliases for arrays of floats and doubles 2017-03-17 17:52:43 -04:00
Paul Licameli
aebaaf46a0 require unsigned arguments for Array(s)Of::reinit 2017-03-17 17:52:43 -04:00
Paul Licameli
ef2b747c16 Define ValueRestorer for a frequent kind of RAII action 2017-03-17 17:52:43 -04:00
Paul Licameli
a9396b912d Change required to compile certain uses of finally, I don't know why 2017-03-17 17:52:23 -04:00
Paul Licameli
3b7b7e1481 avoid bogus warning about C99 compound literals 2016-09-18 10:36:54 -04:00
Paul Licameli
52cb094f0f A safenew and comment changes 2016-08-16 13:00:07 -04:00
Paul Licameli
8b72bd2f92 Manage block files with std::shared_ptr, BlockHash stores weak_ptr 2016-08-16 12:29:59 -04:00
Paul Licameli
c9204af7fe Rewrite functions managing the missing block file...
... removing one ref and deref of block files.

This unblocks a future development that will manage all block files with
std::shared_ptr.
2016-08-15 13:04:19 -04:00
Paul Licameli
fe5ab9a462 Remove the naked new in allocation of AudacityProject 2016-08-14 15:24:59 -04:00
Paul Licameli
41efaeeef0 Fix Windows build 2016-08-14 09:35:04 -04:00
Paul Licameli
6909bdf398 Define and use IteratorRange 2016-08-13 16:31:31 -04:00
Paul Licameli
6e4e710d3b Remove seeming naked new and deletes in comments and uncompiled code 2016-08-10 11:05:51 -04:00
Paul Licameli
aaeaadff07 Define Destroy_ptr 2016-08-10 11:05:51 -04:00
Paul Licameli
9cc4eaadf8 Define swap for std::unique_ptr 2016-08-09 21:56:23 -04:00
Paul Licameli
3d222bcd87 Context menu for scrubbing in the ruler 2016-04-26 12:12:06 -04:00
Paul Licameli
48658097d6 Fix static_assert in default_delete and define move before unique_ptr 2016-04-12 00:55:59 -04:00
Paul Licameli
59af732763 Mac build fixes; and implement deleters for our imitation unique_ptr 2016-04-10 14:15:51 -04:00
Paul Licameli
7e8aad9148 Define finally 2016-04-09 20:44:38 -04:00
Paul Licameli
b6c4d579ca ArraysOf::reinit 2016-04-02 14:21:28 -04:00
Paul Licameli
61525264ae ArrayOf<X> move constructor 2016-04-02 14:17:20 -04:00
Paul Licameli
2d57549f0c Define ArrayOf<T>::reinit 2016-04-02 13:04:52 -04:00
Paul Licameli
4d90ed1e2e travis 2016-04-02 01:14:22 -04:00
Paul Licameli
3e155fb1e0 travis 2016-04-02 01:05:42 -04:00
Paul Licameli
b7f91e5674 Define movable_ptr_with_deleter 2016-04-02 00:50:19 -04:00
Paul Licameli
d9588dda9b travis 2016-04-02 00:41:53 -04:00
Paul Licameli
1aa9ddc76d Define ArrayOf<X>, ArraysOf<X> to hide uses of new[] and delete[]...
... but it's still unused.
2016-04-01 22:44:34 -04:00
Paul Licameli
1e641957ca Fix MemoryX.h 2016-03-26 11:50:08 -04:00
Paul Licameli
3c57e1fc0c Do that again without macros... I don't like macros if I can avoid 'em. 2016-03-26 00:06:51 -04:00
Paul Licameli
de75a00c10 Define movable_ptr and make_movable, use __AUDACITY_OLD_STD__ in fewer places 2016-03-25 20:27:25 -04:00
Paul Licameli
72705e8f31 Define reset for the array case of unique_ptr 2016-03-07 06:39:07 -05:00
Leland Lucius
9dc9348127 Fixes bug #1344 (mac build)
In addition, the Xcode project can now build against the 10.6
or 10.7 SDKs.  All that is needed is to change the SDK version
and the other settings will change automatically.
2016-03-07 00:29:26 -06:00
Paul Licameli
3afcde1a70 Try another definition of Maybe for xcode 5.1 2016-03-03 01:26:02 -05:00
Paul Licameli
0c9deb398c Fix mac build. No standard headers in Audacity.h. 2016-03-01 12:22:37 -05:00