Paul Licameli
9bbbf555c5
Bug1115: click below vertical ruler deselects track now, just as...
...
... clicks below the control panel or the track area do.
2015-08-03 16:56:03 -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
60983f6bf7
Revert "Cascade the four move commands of the track control menu..."
...
This reverts commit 413edf2820a861737efc920df97d8d9d82e4987e.
2015-08-02 13:27:23 -04:00
Paul Licameli
d6b76e3589
Revert "Make a Channels sub-menu, and change accelerators to be more mnemonic..."
...
This reverts commit cc08bba27a8ae4c6d30387c13f35a8edd434e663.
Conflicts:
src/TrackPanel.cpp
2015-08-02 13:27:22 -04:00
Paul Licameli
0c8ee32050
Revert "Channel cascade -- yes. Move cascade -- no."
...
This reverts commit d0071fc92ed049ef17119f35f42b440705e3a718, reversing
changes made to 5a4d28dba3a7957d4857ae866b3e6d3e0b526c16.
2015-08-02 13:17:56 -04:00
Paul Licameli
03788a58a6
Channel cascade -- yes. Move cascade -- no.
2015-08-02 04:50:39 -04:00
Paul Licameli
fee41b79b2
Do not allow independent variation of vertical scales of stereo channels...
...
... using the pop-up menu.
2015-08-01 16:30:40 -04:00
Paul Licameli
a7adbb54fc
Bug1033: Swap-channels command will not lose the track focus
2015-08-01 16:12:28 -04:00
Paul Licameli
47e1df2525
Shorten remaining names in Wave Track Control menu, change accelerators....
...
... also changed "Set Range" in Time track to R to avoid conflict
2015-08-01 13:38:14 -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
Paul Licameli
413edf2820
Cascade the four move commands of the track control menu...
...
... Note that "M" accelarator conflicts for now with "Mono" for wave tracks,
but there is no conflict with time and label tracks.
2015-08-01 13:38:10 -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
Leland Lucius
1b07ae1ad1
Some wx3 fixes
2015-07-28 15:47:19 -05:00
Leland Lucius
37168ebbf6
Merge remote-tracking branch 'upstream/master' into wx3
2015-07-28 15:06:25 -05:00
Leland Lucius
5bdfcff97d
Menu shortcut hiding has been removed
...
It had been causing problems in Unity for a while now and they
were missing on OSX as well in wx3. So, the old menu Open/Close
method of hiding has been removed and replaced with an event
filter/monitor which looks for wxEVT_CHAR_HOOK events to pass
key events to the handler that has the keyboard captured.
2015-07-28 14:35:09 -05:00
Paul Licameli
0fcfbdd599
Bug1059 (rest of): disallow rearrange-drag during play
2015-07-28 12:14:42 -04: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
e553837832
Bug1078: click and drag at the bottom of a stereo track control can resize it...
...
... just as it does for unlinked tracks.
2015-07-28 11:55:56 -04:00
Paul Licameli
0b711e1594
Capture mouse for button-down only after deciding on the drag mode.
2015-07-28 11:55:55 -04:00
Paul Licameli
525b22d63d
Let MakeCursor be called elsewhere than from TrackPanel.cpp
2015-07-28 11:55:54 -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
54740c348b
Remove an unreachable piece of scrubbing code
2015-07-28 11:49:50 -04:00
Paul Licameli
08790d2243
Remove unnecessary member variable assignments
2015-07-28 11:49:49 -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
d39eaa4e65
Remove WaveTrack.h from other headers
2015-07-28 10:02:05 -04:00
Paul Licameli
b89c2a130c
Remove Track.h from other headers
2015-07-28 10:02:03 -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
1fda7eb5c3
Waveform and Spectrum menu items are a radio group, neither ever disabled.
2015-07-28 08:08:15 -04:00
Paul Licameli
5abbd463b2
Waveform dB is not a track type. Logarithmic is a Wavetrack scale type...
...
... Also removed one line from the track control drop-down, and changed
accelerators to more mnemonic choices.
Also the open page of View Settings... determines track view type after OK
2015-07-28 08:08:13 -04:00
Paul Licameli
5b72b1f23b
Open the appropriate initial page in View Settings dialog
2015-07-28 08:08:11 -04:00
Paul Licameli
0c4418af22
Boilerplate for empty waveform preferences, analogous to Spectra
2015-07-28 08:08:10 -04:00
Paul Licameli
adb4a534e8
Pitch is no longer a special view type... && bug fixes 1040, 1041
...
... It is a choice of algorithm in spectrogram settings, and any frequency
scale may be chosen with it. Spectral selection works in it.
2015-07-27 23:01:20 -04:00
Paul Licameli
66e939275f
Vertical ruler zooming uses NumberScale in a generalized way
2015-07-27 23:01:13 -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
7d379cde13
Conditional compilation (disabled) to make Spectral selection choice global...
...
... not per track,
and the preferences or View Settings page has a separate static box for
global settings as opposed to track settings. This is the only global setting
for now.
2015-07-27 23:01:06 -04:00
Paul Licameli
f74713f020
WaveTrack::WaveTrackDisplay does not encode scale or spectral selection...
...
... SpectrogramSettings does that instead, and Preferences or View Settings
are the user interface for changing it.
Handle invalidation of spectrogram pixel cache for scale type changes,
just as for other changes of settings. No more
TrackArtist::InvalidateSpectrumCache().
View type of track now switches to Spectrum when applying or OKing the
View Settings... dialog and the Spectrogram page is open (and for now
it is still the only page)
2015-07-27 23:01:04 -04:00
Paul Licameli
714f4ce0f1
Put track name in the title of the View Settings dialog, as Gale suggested
2015-07-27 07:19:48 -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
786c1da645
Move class SpectrogramSettings to its own file
2015-07-26 21:10:13 -04:00
Paul Licameli
d3c9a9fd80
Bug1093: Now selection in Waveform view will not delete frequency selection
2015-07-25 13:53:39 -04:00
Steve Daulton
df8ddde874
Added dB - linear amplitude conversion macros.
2015-07-24 21:59:34 +01:00
Paul Licameli
0eca155060
Bug 1089: Spectrogram and Spectrogram log(f) views cannot be selected
2015-07-23 03:52:42 -04:00