1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 09:09:47 +02:00

7060 Commits

Author SHA1 Message Date
Paul Licameli
708d84ac22 CommonTrackPanelCell::FindTrack returns shared_ptr 2017-06-27 23:09:35 -04:00
Paul Licameli
b3208ab12d Restore status message "Click and drag to select audio" 2017-06-27 22:35:19 -04:00
Paul Licameli
1c0af82903 Changed hit test priorities; message, cursor for text box mouse-over 2017-06-27 08:34:51 -04:00
Paul Licameli
bce3571372 Redo hit test priorities in TrackPanel...
Zoom tool takes precedence;

Otherwise do special hits appropriate to the track subclass -- and only
WaveTrack here uses Tools toolbar state, and now disallows clicks on things
when they are not drawn because the view is spectrogram;

Finally, default to right button zooming in Multi tool, or to time shift in
that tool, or to selection adjustment in Multi or in Select tool.
2017-06-27 08:26:07 -04:00
Paul Licameli
9e0010ec5f Time track editing requires click on the curve in multi tool...
... and it will also work so, later, in all tools besides Zoom.
2017-06-27 08:26:07 -04:00
Paul Licameli
24ebf27bb6 Cursor change and status message for mouse over label text boxes 2017-06-27 08:16:09 -04:00
Paul Licameli
828d9c3ccd Simplify label track hit tests 2017-06-27 08:16:09 -04:00
Paul Licameli
34da6e6ad3 Mouse-over highlighting of slider thumbs in toolbar & mixer board 2017-06-27 06:38:53 -04:00
Paul Licameli
adf4c61052 New highlighed slider thumb images, distinct only in Classic theme 2017-06-27 06:38:53 -04:00
James Crook
7358c12e23 Default spectrum FFT size now 1024 (was 256) 2017-06-26 22:48:54 +01:00
James Crook
6dc52c3d7a Fix Windows build. 2017-06-26 22:47:38 +01:00
Paul Licameli
f0f4f03b42 Manage all TrackPanelCell objects by shared_ptr 2017-06-26 17:16:32 -04:00
Paul Licameli
f8b74db76e Iterators over TrackPanelCell give shared_ptr 2017-06-26 17:14:33 -04:00
Paul Licameli
58fea6d520 null check uses of CommonTrackPanelCell::FindTrack 2017-06-26 16:39:14 -04:00
Paul Licameli
28b40e02fb Manage TrackPanelResizerCell by shared_ptr, no singleton 2017-06-26 16:39:07 -04:00
Paul Licameli
35ce499ce1 Manage TrackControls and TrackVRulerControls by shared_ptr; ...
... they are not singletons; and the back-pointers to their Tracks are weak.
2017-06-26 16:34:10 -04:00
Paul Licameli
c355b82dc6 Remove a comment 2017-06-26 16:03:15 -04:00
Paul Licameli
2806b509e2 Fix crashes in repainting, and update first visible track correctly 2017-06-26 15:20:35 -04:00
James Crook
30ec8a1c90 Overdub off by default only in DA. 2017-06-26 19:44:39 +01:00
Paul Licameli
bbab89b52c Cut then paste has no net effect on envelope in some more cases...
... whereas before, some incorrect disconituities could remain near the start
of the selection.

To find reproducible cases before this commit might involve varying the left
edge of the selection by small amounts, because this problem depended on
little roundoff errors.
2017-06-26 12:04:21 -04:00
Paul Licameli
6373a5085c Select, cut, paste, undo: selection should be a point as after cut 2017-06-26 11:13:53 -04:00
James Crook
869de7d6f4 Overdub off by default.
Confused many new users in the past.  Experienced users can be expected to find it in preferences (or on menu) and turn it on, if they need it.
2017-06-26 15:31:11 +01:00
Paul Licameli
44a081c7a0 Fix pasting of envelope from expanded cutline 2017-06-26 10:23:34 -04:00
Paul Licameli
d6e09e142f more build fixes 2017-06-25 21:11:33 -04:00
Paul Licameli
8349888460 Permute the list of source files in XCode project 2017-06-25 16:16:26 -04:00
Paul Licameli
f79a4c3c4f Revert "XCode project won't forgive missing return values"
This reverts commit a2192b3734565002dbfbee52371561a76d218cf6.
2017-06-25 16:00:48 -04:00
Paul Licameli
d635535241 Fix another error in Mac build 2017-06-25 16:00:30 -04:00
Paul Licameli
a5d718f79a Fix error in Mac build uncovered by the previous 2017-06-25 15:36:32 -04:00
Paul Licameli
a2192b3734 XCode project won't forgive missing return values 2017-06-25 15:32:12 -04:00
Paul Licameli
52322da695 Fix Windows build again 2017-06-25 15:26:30 -04:00
Paul Licameli
d3c9a1decb JAWS fix?: Now do the delay of event handling...
... Queue, don't immediately process, TrackList events, and if listeners want
to hold pointers to tracks, let them use weak_ptr or shared_ptr
2017-06-25 13:35:17 -04:00
Paul Licameli
fb18f6a812 JAWS fix?: Make things safe to delay TrackList event handling...
... Re-fixing by different means the problem mentioned in commit
721faf89c63f3623a17d69c3c16eedd98a9daeec

* 'shared_ptrs' (early part):
  Use weak_ptr in track selection state
  weak_ptr not events to avoid dangling track pointers in UIHandles
  Use weak_ptr to remember focused track, don't ask for trouble
  Accessor for shared pointer to track, given only a bare pointer
  Remove oudated comment
2017-06-25 13:35:16 -04:00
Paul Licameli
4ac40d12c0 Use weak_ptr in track selection state 2017-06-25 13:35:16 -04:00
Paul Licameli
fa5a742e22 weak_ptr not events to avoid dangling track pointers in UIHandles 2017-06-25 13:35:15 -04:00
Paul Licameli
321919301e Use weak_ptr to remember focused track, don't ask for trouble 2017-06-25 13:35:15 -04:00
Paul Licameli
bd5d2bf114 Accessor for shared pointer to track, given only a bare pointer 2017-06-25 13:35:15 -04:00
Paul Licameli
1fce8b54f2 Remove oudated comment 2017-06-25 13:35:14 -04:00
Paul Licameli
30317efa03 fix Windows build 2017-06-25 13:34:29 -04:00
Paul Licameli
3f670118c7 Rollback preview in Spectrogram settings or preferences if cancelled
* commit '5b229847d5205597e2eaf447bf9bdaba03e5dde7':
  Do rollback of cancelled Preview for Spectrogram settings/prefs
  Change virtual function interface of PrefsPanel
  Rename Apply in spectrum settings & prefs dialogs, reposition it too
2017-06-25 11:48:40 -04:00
Paul Licameli
5b229847d5 Do rollback of cancelled Preview for Spectrogram settings/prefs 2017-06-25 11:43:38 -04:00
Paul Licameli
48202284b2 Change virtual function interface of PrefsPanel 2017-06-25 11:42:20 -04:00
Paul Licameli
aa924b54a9 Rename Apply in spectrum settings & prefs dialogs, reposition it too 2017-06-25 11:39:30 -04:00
James Crook
6cea9822c3 Bug 383 - Residual: Don't reset toolbars on a resize either. 2017-06-25 11:22:42 +01:00
Paul Licameli
750fc34fac Clarify what the TrackList events are for...
Also fixes this bug:

Vertical rulers did not narrow as needed after deletion of the lowest track.
2017-06-25 03:00:28 -04:00
Paul Licameli
c48bf4f37d Fix old unreported minor bug with vertical rulers of Label tracks...
New project; create a label track; undo; redo.  Used to see no vertical ruler.
2017-06-25 01:46:20 -04:00
Paul Licameli
a0a6d33b4b Bug1655: Sequence inconsistency in cut or copy...
... I didn't figure out why reproducibility seemed to vary after startup
or on Linux or in Release build, but I am satisfied a real mistake is fixed
here.
2017-06-24 12:34:36 -04:00
Paul Licameli
21b429e2b5 Update Mixer Board moving Note Track with TCP menu item, if MIDI_OUT 2017-06-24 11:52:12 -04:00
Paul Licameli
e771d6d9b5 Restore a NULL check in OnSplitNew, don't crash if non-wave selected 2017-06-24 11:36:19 -04:00
Paul Licameli
4fab7365e5 Fix errors in post build step on Mac
Was, Xcode ended the build, or even a clean, of either Debug or Release,
building the target 'Create Info Header'

This were introduced at commit 0361169839bca65d67ae2aca08bcc973c7faf4b7
2017-06-23 22:53:53 -04:00
Paul Licameli
68dfdab843 Store tracks in TrackList with shared_ptr ...
... but still use unique_ptr from track factories and importers.
2017-06-23 15:05:50 -04:00