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

379 Commits

Author SHA1 Message Date
Paul-Licameli
1f9113f5cc Label track event handler does not directly use zoom (pps) values 2015-07-19 11:44:07 -04:00
Paul-Licameli
fe36b636cb Rewrite SnapManager to avoid using ZoomInfo::zoom 2015-07-19 11:44:05 -04:00
Paul-Licameli
5418ce377b Move PositionToTime, TimeToPosition into class ZoomInfo ...
... and use them in many more places in TrackPanel.cpp, so there are fewer
direct uses of ZoomInfo::zoom.

Also use then in horizontal scrolling code
2015-07-19 11:44:04 -04:00
Paul-Licameli
5a6d5d1443 Add and use some ZoomInfo and ViewInfo member functions, so we can eliminate...
... miscellaneous direct uses of ZoomInfo::zoom to test and set zoom level.

This includes all the remaining assignments to it.

But moving TrackInfo::PositionToTime and TrackInfo::TimeToPosition into
ZoomInfo and using them is needed to eliminate many more uses.

Also #if'd out the unused AudacityProject::OnZoomToggle().
2015-07-19 11:44:02 -04:00
Paul Licameli
508abda309 Bugs 1043, 1044 -- Even better fix...
... With a careful sweep of uses of WaveTrack::GetDisplay() to remove
assumptions about the ordering of the values.

Using < and <= on enum values is mostly a bad idea.
2015-07-18 23:56:30 -04:00
Paul Licameli
b25994a82d Throw away EXPERIMENTAL_FFT_SKIP_POINTS...
... with James' consent.
2015-07-18 23:21:27 -04:00
Paul Licameli
9c957d43b1 Bug1013: normalize keystroke named in status bar, for Mac 2015-06-24 13:34:02 -04:00
Paul Licameli
ccebaf9d95 Bugs 1043, 1044 -- Be careful with new display modes in preferences
Write a new key so version 2.1.0 isn't confused by the reordered values

Add some future proofing against similar to 2.1.1 code
2015-06-23 13:12:07 -04:00
Paul Licameli
60956bad79 Merge: Fix hit test for samples in multi tool in Waveform dB view 2015-06-12 12:25:28 -04:00
Paul Licameli
a585b3bbac Fix hit test for samples in multi tool in Waveform dB view 2015-06-12 12:22:51 -04:00
Paul Licameli
0bed89419f More for bug 1014: stop scrubbing when switching out of select tool...
... Verified that this works for presses on tool buttons, and keys A, D, F1,
..., F6.

Also fix conditional compilation with EXPERIMENTAL_SCRUBBING_BASIC not defined.
2015-06-08 09:56:17 -04:00
Paul Licameli
e943382953 Bug1014: Do not change the cursor for selection adjustment while scrubbing.
(Cursor may still change to the "forbidden" symbol at a boundary between clips.)
2015-06-07 17:11:50 -04:00
Paul Licameli
952a22c8b1 Created a global structure to hold spectrogram preferences...
Don't read "/Spectrum/" preferences anywhere but in SpectrumPrefs.cpp.
Don't store global values in TrackArtist.

Possibly some day, there will be other instances of SpectrogramSettings so we
can have independent per-track settings.
2015-06-04 11:29:17 -04:00
Paul Licameli
1b57335dca Enable draw tool in Waveform dB view 2015-06-03 02:38:17 -04:00
Paul Licameli
00ab193246 Bug1005: draw tool performance 2015-06-03 02:38:13 -04:00
Paul Licameli
6faf4c98c1 Bug1003: Use correct envelope value in pencil tool drag 2015-06-03 02:38:12 -04:00
Paul Licameli
7c48a76d18 Bug1002: Alt-click in pencil tool never starts a drag 2015-06-03 02:38:11 -04:00
Paul Licameli
a2bceee698 Bug1004: undo history message 2015-06-03 02:38:02 -04:00
Paul Licameli
f332df1f36 Pulled repeated code into a function; share some calcs with Envelope editor 2015-06-03 02:37:42 -04:00
Paul Licameli
85a533be79 Remove unused variables; fewer casts 2015-06-03 02:37:41 -04:00
James Crook
bca81066bb Bug 855 - Data loss undoing sample edit while mouse is down
Chose the simple fix.  Escape does not interrupt sample dragging now.
2015-06-01 22:09:57 +01:00
Paul Licameli
6a1227f039 zero-padding factor for spectrograms, internals 2015-05-31 16:43:09 -04:00
Paul Licameli
4f5483b4af Scroll-seek improvements 2015-05-30 14:28:33 -04:00
Steve Daulton
2593331399 Update TrackPanel.cpp
Update access keys for Spectral Selection
2015-05-30 16:51:10 +01:00
James Crook
88a9e434f5 Select Spectral Edit from Track DropDown 2015-05-30 11:04:45 +01:00
Paul Licameli
bf931fcb0b Do not show scrub speed during scroll scrub when left button is held 2015-05-30 00:11:20 -04:00
Paul Licameli
6ae8a656ab Rewrote escape key handling, more like other Track Panel key handlers
... and removed some abandoned spectral editing code
2015-05-29 21:13:59 -04:00
Leland Lucius
0ef7ccb1d1 Fix permissions...not sure why this was happening though 2015-05-29 19:49:28 -05:00
Paul Licameli
8d2a29d376 Bug989, and scrub UI uses left button to seek, not Shift key
Updated mouse preferences and status bar message accordingly

Also, use the term "Scroll-scrub" in status bar and mouse preferences
2015-05-29 20:29:44 -04:00
Paul Licameli
9f2dfbc70b Revert "Bug990 (seek key reponsiveness), and, change Scrub UI again, so Ctrl key seeks."
This reverts commit 841bca36ea321e6ea92578dd6668bc4011f1d30b.
2015-05-29 19:45:43 -04:00
Paul Licameli
841bca36ea Bug990 (seek key reponsiveness), and, change Scrub UI again, so Ctrl key seeks.
Includes changes to Mouse Preferences and status bar messages.
2015-05-29 17:30:19 -04:00
Paul Licameli
6810095509 Removed some functions never called, code never reached, fields never used 2015-05-29 00:13:50 -04:00
Paul Licameli
e60057fd85 Bug924, addendum: pause scrubbing when Audacity loses focus...
... And it resumes if Audacity regains focus.

Actually this fix causes pausing and resuming depending on whether Track Panel
has focus, so clicks in other parts of the Audacity window may also pause the
scrubbing.  I hope that is acceptable.
2015-05-27 20:14:32 -04:00
Paul Licameli
f07a487e47 Bug977: Enable new scrolling limits as a Tracks preference, default off. 2015-05-27 18:47:03 -04:00
Paul Licameli
41abedf09c Bug972, again: Recording into empty project aligns time 0 with left edge.
Also has this effect:  Generate sound, scroll left, then delete the (sole)
track.  Create new track from menu.  Formerly, the track did not align 0
to left edge.  Now it does.
2015-05-26 20:23:18 -04:00
Paul Licameli
e9830e727b Disable scrollwheel when there are no tracks. (Used to change the time ruler.) 2015-05-26 11:28:35 -04:00
Paul Licameli
4ee482dbd9 Bug973: don't use transcription toolbar setting in scrubbing 2015-05-25 10:12:38 -04:00
Paul Licameli
4b76db56b7 Bug972, partial fix: recording in new project, record head begins at left edge 2015-05-25 10:06:05 -04:00
Leland Lucius
8f77334286 Fix for bug #949
This removes the TrackInfo's slider "cache".

Originally, the cache would build to the maximum number of tracks you
had created in an Audacity session.  So, if you created 128 tracks
and then reduced that to 1, you'd still have 256 sliders, 1 gain and
1 pan per track.

But, the only real thing the cache did was prevent continuous allocations
of sliders since the allocated sliders position and values wer still
being updated nearly with ever interaction since they were redrawn each
time.

In April 2010, the slider cache was changed to reduce its size by
creating a sort of ring buffer based on how many tracks were displayed
and how many tracks were in the project (I guess).  Unfortunately, it
didn't really handle large number of tracks and this bug was born.

While trying to find the proper fix for this, I realized that the
cache really wasn't saving anything.  Maybe a little when dragging
the thumb, but during normal track redraws and interaction, it really
didn't serve a purpose, other than use additional memory.

So, I've removed the cache and have allocated a single gain and a
single pan slider.  As before, their position and value are changed
as needed when drawn and manipulated.
2015-05-24 22:54:10 -05:00
Paul Licameli
3c88f8ce4d Bugs 925, 926, 928 fixed again, better, for double click and shift too 2015-05-24 17:31:00 -04:00
Paul Licameli
5c62b80bc4 Defined EXPERIMENTAL_SCROLLING LIMITS
When it is enabled, the project can scroll up to one-half of a screenful
beyond time zero or the maximum track time.  I was careful to disable selection
of negative times.

This is motivated by the smooth scrolling scrub.  It behaves more sensibly at
the extremes.  It can still keep the play indicator centered.

Also removed an unused member of ViewInfo.
2015-05-24 13:38:54 -04:00
Paul Licameli
51fc1c96db Bugs 961, 962 fixed
Bug 961 - Play cursor broken after double-click scrub play

Bug 962 - Scrubbing gesture during recording places Audacity in scrubbing mode
when recording stops
2015-05-23 23:22:38 -04:00
Paul Licameli
2ce350dd20 Bug928, and probably Bug925, when trying to scrub left of time zero 2015-05-19 21:45:19 -04:00
Paul Licameli
51930f0cdd Bug926 -- do not scrub past right end of tracks 2015-05-19 21:13:36 -04:00
Paul Licameli
35ac843baf Scrub with ctrl-left clicks, not middle drags; also fix bug 937
Bug 937 was a consequence of mouse capture for drag, which no longer happens.

Scrubbing starts with ctrl- (or cmd-) left- (double-) click, after which mouse
movement and shift key and scroll wheel (undepressed) govern scrubbing.  No
buttons need be held.  Another ctrl/cmd-left click can stop scrubbing, and so
can SPACE or Stop button or other commands that stop normal playback.
2015-05-19 12:03:04 -05:00
David Bailes
f458df1c7b Changes to a number of dialogs so that the NVDA screen reader can read the titles. Missed these in my last patch. The accessibility name of the dialog is set to the title. 2015-05-18 13:57:05 +01:00
James Crook
b51d3b2055 Fix Red and Green in Scrubbing
We have a policy in how we use red and green in the UI, so these colors in scrubbing were changed to 'orange' and 'lime'.
2015-05-17 09:47:38 +01:00
Leland Lucius
ffc41f0f10 Fix bug #898 2015-05-16 04:55:34 -05:00
Steve Daulton
b9dd3e64c6 Fixes for bug 844 2015-05-15 21:17:24 +01:00
Steve Daulton
423bc8ac4d Fix for bug 851
Fix for bug 851
2015-04-30 00:34:32 +01:00