1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-10 14:46:24 +01:00
Commit Graph

311 Commits

Author SHA1 Message Date
Paul Licameli
cf45a58fdc dB range is now in Waveforms preferences and view settings, and ...
... the preference is independent of those in Interface and Recording
preferences, which affect meters, sound activated recordings, time track,
and Plot Spectrum
2015-08-15 18:07:29 -04:00
Paul Licameli
5d2e877529 Scroll wheel with pointer in vertical ruler zooms in or out for wave track...
... regardless of the modifier keys; and does nothing in other tracks.
2015-08-14 20:34:06 -04:00
Paul Licameli
4cc064df8e Draw scrub speed like cursor or indicator: without a full refresh. 2015-08-13 19:49:09 -04:00
Paul Licameli
9ba6e03bd4 Reorganize code for drawing cursor and indicator, so it can generalize to...
... other things (like scrub speed)
2015-08-13 19:43:20 -04:00
Paul Licameli
5580aececc Untangle the control flow of mouse event handling in label tracks 2015-08-10 20:02:24 -04:00
Leland Lucius
300f0f05a0 Move TrackPanel keyboard handling out of AudacityProject...
...and into TrackPanel where it should be.
2015-08-09 18:26:29 -05:00
Paul Licameli
9a53625ceb Bug1134: Click and drag to move a track should make only one undo item 2015-08-08 18:55:31 -04:00
Paul Licameli
b0de2fa900 Show only the channel-related menu items appropriate to mono or stereo, and...
... Changed accelerators to avoid conflict:
for mono tracks, R&ight
for stereo tracks, Split Stereo to &Mono
2015-08-04 13:00:46 -04:00
Paul Licameli
eeaaadb530 Merge branch 'master'
* master:
  fewer #includes in TrackPanel.cpp
  Fix spacing on comment
  Add output gain control to Phaser effect
  Add output gain control to Wahwah effect
  Bug1115:  click below vertical ruler deselects track now, just as...
  Rename some variables
  Save overwrite choice in Export Multiple
2015-08-04 12:26:22 -04:00
Paul Licameli
db896e6511 Revert "Show only the appropriate channel-related track menu items for mono or stereo."
This reverts commit 7b737a99c7.
2015-08-04 12:23:50 -04:00
Paul Licameli
971fd38615 Rename some variables 2015-08-03 13:50:49 -04:00
Paul Licameli
7b737a99c7 Show only the appropriate channel-related track menu items for mono or stereo. 2015-08-02 14:29:56 -04:00
Paul Licameli
d6b76e3589 Revert "Make a Channels sub-menu, and change accelerators to be more mnemonic..."
This reverts commit cc08bba27a.

Conflicts:
	src/TrackPanel.cpp
2015-08-02 13:27:22 -04:00
Paul Licameli
cc08bba27a Make a Channels sub-menu, and change accelerators to be more mnemonic...
... Also removes the conflict at top menu level over M accelerator.

Make one Channel sub-menu for mono and one for stereo, and swap correct one
in, whenever the parent menu opens.
2015-08-01 13:38:12 -04:00
Leland Lucius
7877615454 Move label context menu handling to label track
Application key now brings up the context menu while editing labels
as it should.  This wasn't possible with the old keyboard handling.
2015-07-30 10:38:03 -05:00
Paul Licameli
fdf0759301 Bug1075, and define and use new event type for TrackPanel timer ticks...
... Thus allowing TrackPanel.cpp to work without including Lyrics headers.
Also eliminates some of its direct notification of MixerBoard.
2015-07-28 11:56:00 -04:00
Paul Licameli
4f0a2ee804 Bugs 1059, 1077: don't edit cut lines during play; show correct cursor...
... Don't show the arrow when in fact the click at the bottom of the track
will resize.
2015-07-28 11:55:59 -04:00
Paul Licameli
912cdb6c53 (most of) Bug 1077: Resizing cursor correctly appears, except...
... we still see an incorrect arrow cursor where the cutline meets the bottom
of the track.
2015-07-28 11:55:57 -04:00
Paul Licameli
7bba4500c4 Move mdBr from TrackPanel to ViewInfo, no more lookup of prefs in Envelope.cpp 2015-07-28 11:53:01 -04:00
Paul Licameli
edba89d704 Pass tooltips by wxString, not const wxChar* 2015-07-28 11:49:56 -04:00
Paul Licameli
4a4918a3f8 More uses if IsUnsafe() or IsAudioActive() 2015-07-28 11:49:53 -04:00
Paul Licameli
d8ce9f0d7d Move an array definition to Snap.h, use std::vector 2015-07-28 11:49:51 -04:00
Paul Licameli
87965cf164 Bug1076: Don't obliterate the point selection display during playback 2015-07-28 11:49:48 -04:00
Paul Licameli
f81231efae Remove Sequence.h from other headers 2015-07-28 10:02:08 -04:00
Paul Licameli
eaaab766db Remove WaveClip.h from other headers 2015-07-28 10:02:06 -04:00
Paul Licameli
d39eaa4e65 Remove WaveTrack.h from other headers 2015-07-28 10:02:05 -04:00
Paul Licameli
11f794d3fb Menu items for zooming in vertical ruler popup for wave tracks...
May be good for discoverability of the click actions.
2015-07-28 09:37:00 -04:00
Paul Licameli
197700967f pop-up menus for vertical ruler 2015-07-28 09:36:58 -04:00
Paul Licameli
43b7df701b Use class NumberScale in TrackArtist and spectral selection, abstracting...
... the details of mapping to and from pixel height
2015-07-27 23:01:11 -04:00
Paul Licameli
1f6f43bba7 Track control "View Settings..." makes alternative SpectrumPrefs accessible 2015-07-26 21:33:14 -04:00
Paul Licameli
1dffeace93 Access SpectrogramSettings via WaveTrack, which may be nondefault (no UI yet)...
... and add accessors to SpectrogramSettings, and remove TrackArtist functions
for getting and setting the globals.
2015-07-26 21:10:16 -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
ab21f75c77 ViewInfo is becoming a smart class, not a dumb struct
Now it has:
A constructor
XML attribute serializer functions (but no XML tag of its own)

Also removed unused lastZoom
2015-07-19 11:43:59 -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
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
Paul Licameli
4f5483b4af Scroll-seek improvements 2015-05-30 14:28:33 -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 841bca36ea.
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
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
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
593197c2db add commands for moving focused track up, down, to top, and to bottom 2015-04-24 16:19:28 +01:00
Leland Lucius
ed79e13fbf Merge pull request #36 from DanWin/performance
Performance improvements
2015-04-24 07:52:38 -05:00
David Bailes
0b2d5729c5 added two commands to move to first or last track 2015-04-24 11:38:55 +01:00