1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 14:52:34 +02:00

7974 Commits

Author SHA1 Message Date
Steve Daulton
0a93172265 Cautions re. size of Preference pages
Clarify meaning / purpose of assert in PrefsDialog
and add scrollers to pages that may grow in future versions.
2018-01-15 22:23:59 +00:00
Paul Licameli
b4ee17ed82 a translation hint 2018-01-15 15:16:15 -05:00
Paul Licameli
9777d3e880 Alert user to drop-outs during recording...
1) When the program detects this, insert zeroes into the recording to keep the
other good parts synchronized.

2) When recording stops, a message box alerts the user, and a label track is
added showing the lost parts, labelled with consecutive numbers.

3) A menu item visible in alpha builds only is added to Tools, to simulate
recording errors at random times and test the reporting feature.
2018-01-15 14:48:39 -05:00
Paul Licameli
4ef8da8f16 Revert "Preliminaries to support better interaction of undo and recording"
This reverts commit 6e75ae58ac56d9c94af5a4ce97951f627808473a, reversing
changes made to 714d53e00f803643131bb775858ac930b39dd5b8.
2018-01-14 21:36:33 -05:00
Paul Licameli
950898dcb9 Revert "Bug 1823: Better interaction of undo and record..."
This reverts commit 1e8aba968da56374d74fb5589caa56caf5fe1283, reversing
changes made to 6e75ae58ac56d9c94af5a4ce97951f627808473a.
2018-01-14 21:27:41 -05:00
Paul Licameli
1e8aba968d Bug 1823: Better interaction of undo and record...
... If you record or append-record, and do things during it that affect
the undo stack, and then complete recording -- then the last undo item will
undo the recording completely, and the other changes will belong to earlier
undo items that contain no part of the new recording.

Things that affect the undo stack during recording can include new undo items
such as movement of pan and gain sliders or adding and editing of labels
with Ctrl+M or Command+.

But such things also include certain changes of view that do not create new
undo items but rather update the most recent undo item to include that change.
Examples are change of mute or solo, resizing of tracks, changes of selection,
zooming (horizontally or vertically), switch among wave track view types, etc.

Fixing this was a rather involved project.  This ought to be tested
thoroughly to be sure there are no other odd surprises in the behavior of
undo.
2018-01-14 19:51:59 -05:00
Paul Licameli
2409d46d4c Prohibit copy of TrackList, no longer needed; allow swap and move 2018-01-14 19:33:39 -05:00
Paul Licameli
91f5446eb1 Fix interaction of recording and undo...
... in case you also do things, concurrent with the recording, that affect the
undo stack, either by pushing it (such as by changing the gain on one of the
playing tracks, or making a label) or by "Modifying state" without a new undo
item (such as when you change its size or mute or solo).
2018-01-14 19:33:39 -05:00
Paul Licameli
89d8fe18b1 Define WaveTrack::Reinit() 2018-01-14 19:33:39 -05:00
Paul Licameli
6e75ae58ac Preliminaries to support better interaction of undo and recording 2018-01-14 19:32:40 -05:00
Paul Licameli
ce5a67a9e9 Iterate over the pending tracks for drawing 2018-01-14 19:04:03 -05:00
Paul Licameli
7d57a17ff4 Change details of focusing of tracks in presence of pending ones...
... Don't focus a pending changed track but remap it to the original.

You can focus a pending added track.
2018-01-14 19:04:01 -05:00
Paul Licameli
4ccb695c61 Disable Undo and Redo while there are pending changes in TrackList...
... But perhaps we are developing the means to relax even this ban safely.

For instance, why not undo a mistaken AddLabelPlaying command (Ctrl+M) without
stopping the recording?
2018-01-14 19:03:59 -05:00
Paul Licameli
a0c3a4b43c Add machinery to TrackList for pending changes to tracks 2018-01-14 19:03:57 -05:00
Paul Licameli
bd2c7e6abc Define TrackId to identify tracks across undo states 2018-01-14 19:03:54 -05:00
Paul Licameli
8b60e7f02d Split "Do" functions out of the "Set" functions for some Track settings 2018-01-14 19:03:52 -05:00
Paul Licameli
92ba1f10e1 Some reimplementation of track iterators and GetLink() ...
... avoiding direct usage of the inherited end() and of the increment and
decrement of the std::list iterators
2018-01-14 19:03:50 -05:00
Paul Licameli
714d53e00f Big1822: Discard button of History window should remain disabled...
... during recording, even though Undo history might lengthen, such as for
Ctrl+M (or Command+.) to drop a label, or moving of a Pan or Gain slider.
2018-01-14 19:03:47 -05:00
Paul Licameli
0265b8792d More stl idiom for TrackList and its iterators 2018-01-14 16:58:19 -05:00
Paul Licameli
ba61e30cb2 More cautions with std::list::iterator on Windows 2018-01-14 15:37:21 -05:00
Paul Licameli
a30defe8ca Redo "Provide STL idiom for iterating tracks..." ...
... Being careful not to use operator == on a default-constructed
std::list::iterator, which violates assertions in the MSVC libraries.

This reverts commit 7fb5ec4b7ab4f9302bd94446db86924cd2b8d67f.
2018-01-14 14:25:02 -05:00
Paul Licameli
01718da4a2 Make a dynamic check of misuse of _ that works in Windows too...
see commit f57fdc99d7a1cd0cf4aa5818382b6b0ffcd2fa83
2018-01-14 14:23:58 -05:00
Steve Daulton
acbfa1387e Fix Assert on opening Prefs with high dpi 2018-01-14 15:34:24 +00:00
James Crook
f9f3da384c Update Perl pipe-test.pl script. 2018-01-14 15:26:42 +00:00
James Crook
7fb5ec4b7a Revert "Provide STL idiom for iterating tracks..."
Unsafe on MSVC 2013.
2018-01-14 14:24:21 +00:00
James Crook
549fa48a24 Fix order in which pipes are opened on linux. 2018-01-14 11:53:38 +00:00
Paul Licameli
f9dab3679c Provide STL idiom for iterating tracks...
... and require qualified name access to use the underlying std::list iterators
that return shared_ptr to Track.

Which should not be done very much outside of class TrackList, but a few
places need it.
2018-01-13 19:37:05 -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
5302dacf3d Revert the reversion of the elegant fix of wrong MSVC compiler warning
This reverts commit 57c68d144e21b7c683de057f9c89a0045ba06a23.
2018-01-13 14:04:25 -05:00
James Crook
ce697d052a mod-script-pipe python scripts working on linux too.
- Pipe names are different on Linux.
- End of line is different on linux.
- The pipe must be opened with 'w+' not just 'w'.
2018-01-13 13:54:44 +00:00
Paul Licameli
8e0cffb7f2 Simplify GuardedCall and default its return type to void 2018-01-13 01:32:41 -05:00
Paul Licameli
5407079c62 Remove EXPERIMENTAL_OUTPUT_DISPLAY...
... Maybe a good feature idea, but the implementation pollutes the code in
too many places.

It's a special case of the more general idea of many-to-one associations
between screen rectangles and track objects.  More generalized ways to
accommodate that should be sought.
2018-01-12 12:08:09 -05:00
James Crook
ad221b3e82 Travis - Remove deprecated-2017Q4
It isn't helping and might even be causing some of the recent build failures.
2018-01-11 19:28:23 +00:00
James Crook
34531b62fc Shift+Z for Zoom Toggle. Theme tweaks.
Dank and HiContrast themes now with improved Zoom Toggle icon.
Microphone and Speaker icon bolder, not greyed out, on Dark theme.
2018-01-11 19:24:26 +00:00
James Crook
1d5b373f7e Move Gale and Martyn to emeritus. 2018-01-11 19:22:14 +00:00
Paul Licameli
c975de8c5e More use of shared_ptr to Track, for safety...
... This even makes it possible to remove the prohibition of undo and redo
during transport, not that we want to though.  Playback and recording will
continue, using track objects that might not be in the current project.
2018-01-10 20:05:11 -05:00
Paul Licameli
0319d6ea68 Friendlier command names in the Edit Chains dialogs...
... Both the pane that lists the steps of the chain, and the selection dialog
for adding a new step.

NOT translating command names yet, though.
2018-01-10 09:09:05 -05:00
Paul Licameli
fa53d521a2 IteratorRange utilities 2018-01-10 07:44:36 -05:00
James Crook
5da84b74ae Zooming Tweaks (for repair work) and Wording changes.
Repair work involves lots of zooming in and out, to use the repair effect on up to 128 samples.
Ctrl Mouse-Wheel zooming now will zoom to ends of selection, if available, or mouse position otherwise.
Zoom-Toggle hyphen removed and Preset2 changed.
Button tooltips tweaked to match menu entries.
2018-01-10 12:00:27 +00:00
David Bailes
cfdb7950f1 Update fix for #1554
This is an update to commit 516af71. The Dock key is now retained in the config file, so that if a user goes back to a version before the fix, the toolbar layout remains unchanged.

Note that when ToolManager::ReadConfig() is called, InitPreferences has already been called which has set the version keys to the current version of Audacity. Therefore the initial values of these keys are stored in AudacityApp.
2018-01-10 11:33:05 +00:00
Paul Licameli
bfbc218a5b comments 2018-01-09 14:57:54 -05:00
Paul Licameli
bfa8a46ced Prohibit duplication of any metadata tag names (up to case); comments 2018-01-09 09:25:22 -05:00
Paul Licameli
44df6455aa Translate the special metadata tags in the edit dialog 2018-01-09 08:47:01 -05:00
Paul Licameli
d59592f862 Fix some Mac compilation warnings 2018-01-09 08:46:58 -05:00
Paul Licameli
ff40403937 Rewrite EqualMaps again, better. 2018-01-09 08:17:27 -05:00
David Bailes
6ca8cef34a Fix for select next/previous clip
Problem (at least on Windows 10): The commands no longer work properly. For a simple example, with one track selected, and the last clip selected, next clip moves to a non existant clip.
This was caused be commit baec816. In this commit, a member function was added to the struct FoundClip. Because FoundClip is no longer POD, statements such as:
AudacityProject::FoundClip result{}; no longer zero initialize the struct.

Fix: explicitly zero initialize the data members of FoundClip. I've also zero initialized the data members of FoundClipBoundary, where their are potentially similar problems, although there were no problems in my tests.
2018-01-09 11:24:57 +00:00
Paul Licameli
498747269c Correct test of equality of hash maps 2018-01-09 01:00:11 -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
cd8ec5e6a8 Try another fix for AppVeyor. 2018-01-08 16:44:59 -05:00