1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 22:28:57 +02:00

65 Commits

Author SHA1 Message Date
freddii
2593a84d56 Fix some spelling mistakes. 2021-01-12 09:55:31 +00:00
Leland Lucius
8f1e52c1c2 Fix Windows build when not using precompiled headers
Should we turn of precompiled headers in our Release builds???
2020-07-25 15:34:33 -05:00
Paul Licameli
2570b56176 Rename Maybe and its members more like std::optional of C++17 2020-01-19 11:38:12 -05:00
Paul Licameli
961882838f Move definition of std::hash< wxString > 2019-05-16 12:30:26 -04:00
Paul Licameli
d261ea2558 Define and use utility template ValueIterator...
... generalizing the fix of commit 7591891 to other cases, making the iterators
safe for adaptation with std::reverse_iterator should the need ever arise
2019-03-18 08:44:40 -04:00
Henric Jungheim
d06abcd27e Enable conformance mode for the FileDialog and Audacity projects. 2019-03-15 10:13:27 +00:00
Paul Licameli
6d5bc21d50 Define and use wxArrayStringEx...
reducing verbosity where there were repeated calls of Add(), and defining
move construction and assignment for efficient returns from functions
2019-03-10 16:23:44 -04:00
Paul Licameli
52642e49a5 Define and use utilities transform_range, transform_container 2019-03-10 14:43:47 -04:00
Paul Licameli
0524dc5880 A comment about Maybe resembling std::optional...
... which should replace it if we migrate to C++17.
2018-11-04 10:55:21 -05:00
James Crook
b5d4a828d1 More doxygen 2018-11-04 14:21:00 +00:00
Paul Licameli
2ff75acffa Remove transform_iterator and related, no clear need for it yet 2018-09-29 12:58:41 -04:00
Paul Licameli
d6dea3d224 Correct transform_iterator ? 2018-09-29 12:57:57 -04:00
Paul Licameli
7ab97c969c Use std::numeric_limits<...>::lowest...
... not the negation of max(), which is wrong for unsigned types, and not
min(), which gives least normalized positive value for floating point types.

lowest() wasn't available before C++11.
2018-09-29 12:57:53 -04:00
Paul Licameli
20947efecf Remove more vestiges of pre-C++11 Mac library workarounds 2018-09-14 14:11:00 -04:00
Paul Licameli
8935fa106f Replace deprecated std::mem_fun and mem_fun_ref with mem_fn...
... which is easier to type and works whether you pass object pointers or
references to its operator ().
2018-07-28 10:59:08 -04:00
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