James Crook
f463eda36c
Clean up some dead code and MSVC warnings.
...
- Dead code from experiments in SelectionBar removed.
- Many warnings about unused parameters fixed with WXUNUSED()
- Many warnings about signed / unsigned comparisons cleaned up.
- Several 'local variable declared but not used' warnings fixed.
2017-12-08 15:20:39 +00:00
James Crook
dc05b94fd1
Bug 1701 - Mac: Text descriptors in Selection Toolbar become invisible after Open command
...
Problem was that on mac enable/disable clears the colour back to black.
The easiest workaround was to create a new class auStaticText that does all that we
need for wxStaticText.
2017-08-13 23:04:13 +01:00
James Crook
00495937f2
Style MixerBoard Mute/Solo as on TCP.
2017-06-22 19:08:44 +01:00
Paul Licameli
e37c337af8
Don't duplicate stereo track in mixer board
2017-06-22 11:40:05 -04:00
James Crook
389e286c78
Set font colour later.
...
Set font colour for MemDC AFTER having selected the bitmap object into it. Not needed on Windows, but is needed on Mac and Linux.
2017-06-22 15:59:44 +01:00
James Crook
86901a00a1
Fix MixerBoard Theming
...
Fixed so that updates to theme are applied immediately. Previously theming only worked properly after a restart with the new theme. Paul found that you could create a Chimera MixerBoard with a track in each of the four different themes.
I chose to completely recreate the MixerBoard on a prefs update, rather than the more fiddly detail of retheming each component of it.
2017-06-22 11:53:49 +01:00
Paul Licameli
bd0603b66a
Remove the duplicate button-drawing functions that are now unused
2017-06-15 08:21:37 -04:00
Paul Licameli
e2d77b399d
Move one more selection function out of TrackPanel
2017-06-11 16:14:26 -04:00
James Crook
a9c417854c
Bug 509 - Soloing/unsoloing in Mixer Board does not repaint waveform colour until window or Track Panel refresh
2017-05-14 18:14:39 +01:00
James Crook
18cec363c3
Bug 1607 - 2nd Screen issue with MixerBoard and Karaoke Window
...
Also Screenshot tools. No joy for log-window, as that is created before Audacity starts up and recognises it is on the second screen.
2017-05-14 17:59:45 +01:00
Paul Licameli
a3b9dbd341
Remove unused variable
2017-04-29 06:24:34 -04:00
James Crook
52f0f750d9
Add Tracks->Pan->Left/Right/Center
2017-04-03 22:35:19 +01:00
James Crook
028ed19d90
Sync with DarkAudacity
2017-04-02 23:07:13 +01:00
Pokechu22
1c93198d08
Re-implement note tracks in MixerBoard
...
This commit adds note tracks into the mixerboard. It's done as a separate
slider this time instead of via subclasses (as PRL requested), so which
should be easier to use.
This also changes some of the gaurds to EXPERIMENTAL_MIDI_OUT from
USE_MIDI, as it's meaningless to have the note track code in mixerboard
when it cannot do anything (depends on methods that exist behind
EXPERIMENTAL_MIDI_OUT).
2017-04-01 12:48:44 -04:00
Paul Licameli
8928bd4d7b
Correct MixerTrackCluster::GetRight()
2017-03-31 00:48:04 -04:00
Paul Licameli
82f909fe31
Again, fix compilation without USE_MIDI
2017-03-30 10:22:20 -04:00
Paul Licameli
6c4cf46c06
Move mute and solo state into PlayableTrack
2017-03-29 13:45:08 -04:00
Paul Licameli
ed0088491c
Remove MixerTrackClusters right to left, remove assertion
2017-03-29 13:45:07 -04:00
Paul Licameli
b2ab9b5087
Simplify MixerBoard.cpp using the PlayableTrack type
2017-03-29 13:42:51 -04:00
Paul Licameli
80984c9f1d
From Pokechu22: Rename gain to velocity on note tracks
...
"Velocity" is the technical term, and it's the term that's used everywhere.
"Gain" was probably only used because "gain" is used on wave tracks; since
note tracks aren't wave tracks (and shouldn't be treated as them) the
corresponding variables should be named velocity.
2017-03-29 13:27:22 -04:00
Paul Licameli
9dadc5af6d
Revert "Needed to compile Pokechu22's fix-midi-output on Mac"
...
This reverts commit 5badb9174aa3ca3159c9b2bc97dc35e2c294044f.
2017-03-27 23:40:10 -04:00
Paul Licameli
5badb9174a
Needed to compile Pokechu22's fix-midi-output on Mac
2017-03-27 01:37:38 -04:00
Pokechu22
2d912f3c93
Replace assert calls with wxASSERT
2017-03-27 01:26:42 -04:00
Paul Licameli
39b8d99a56
WaveTrack::Get, WaveClip::GetSamples take a mayThrow=true argument...
...
... and pass non-default in all needed places.
Don't throw, don't put up error dialogs, in drawing or hit-test code.
2017-03-21 17:23:34 -04:00
Paul Licameli
692a033968
Remove naked new[] in: various
2017-03-17 17:52:47 -04:00
Paul Licameli
0eb2f85bfb
Use DBL_MAX, not arbitrary 1000000000.0, as "infinite" time interval
2016-09-19 10:38:42 -04:00
Paul Licameli
078ff056e2
Make many conversions sampleCount->size_t are explicit and checked...
...
... with run-time assertions.
I examined each place and reasoned that the narrowing was safe, and commented
why so.
Again, there are places where the sampleCount variable will later be changed
to have a different type, and they are not changed here.
2016-09-15 21:02:32 -04:00
Paul Licameli
88611a4530
Fewer C-style pointer casts of tracks; comments justify static_cast
2016-09-15 12:12:43 -04:00
Paul Licameli
79c79f9cd3
Remove many mentions of sampleCount with auto and decltype...
...
... This makes much code agnostic about how other things (functions and
arguments) are typed.
Many of these neeed to become size_t instead of sampleCount.
2016-08-24 14:50:45 -04:00
Paul Licameli
32f24eabb2
Review uses of safenew...
...
... add comments and assertions, and use make_unique instead where possible
2016-08-13 23:16:05 -04:00
Paul Licameli
23516a7732
Remove some naked new amd delete in: Mixer Board
2016-08-08 07:51:24 -04:00
Paul Licameli
4823244050
Bug1426: Better selection for key-modified clicks in TCP, Mixer board
2016-06-26 12:03:45 -04:00
Paul Licameli
ee7b3b2b89
Bug1426: Update mixer board for change of set of selected tracks
2016-06-26 11:24:11 -04:00
Paul Licameli
4739f3e27b
Compensate for wxW 3 tab navigation deficiencies on Mac...
...
... using char hook event handlers. We don't need to go the extreme length
of patching wxWidgets source.
2016-06-25 19:14:05 -04:00
Paul Licameli
d5915491b3
Bug1342: Loop-play (and other things) before scrub (and other things)...
...
... should not disable auto-scrolling of the window during playback.
2016-04-18 17:50:17 -04:00
Paul Licameli
b28ec2957a
Make EXPERIMENTAL_MIDI_OUT compilable, but it doesn't link
2016-04-09 15:10:05 -04:00
Paul Licameli
cd9bd79d83
Use an enumeration for UndoManager::PushState
2016-02-24 19:10:35 -05:00
Paul Licameli
73ced7b93f
Remove UndoManager.h from other headers
2016-02-24 19:10:34 -05:00
Paul Licameli
9bf098c7d9
Sweep unnecessary wxString copies: rest
2016-02-23 02:15:56 -05:00
Paul Licameli
1c07741d57
Sizers are owned by wxWindow objects when added, so use safenew, or...
...
... use unique_ptr in the interim between building them and adding.
This checks eliminates some naked news, which were not paired with deletes.
2016-02-18 18:58:38 -05:00
Paul Licameli
4d78e353c3
Revert "sizers"
...
This reverts commit 84c0a0b6663a1210be502a76ab9c48dd330b3919.
2016-02-18 14:50:52 -05:00
Paul Licameli
84c0a0b666
sizers
2016-02-18 02:54:50 -05:00
Paul Licameli
dbaa811577
Stack-allocate where possible! ...
...
... Removed many unnecessary naked news and deletes.
2016-02-17 18:15:57 -05:00
Paul Licameli
df6a7c5464
More uses of safenew for classes we derive from wxWindow classes...
...
... Also removed some unnecessary deletes of widgets that are managed by parent
windows
2016-02-14 20:39:28 -05:00
Paul Licameli
3f237daddc
Use macro safenew for many allocations of wxWindow subclasses
2016-02-14 20:20:19 -05:00
Paul Licameli
7c4c45a0d5
"new"->"NEW" in comments, easier to find remaining naked operator new
2016-02-14 18:52:41 -05:00
Paul Licameli
56e7653343
"delete"->"DELETE" in comments, easier to find remaining naked operator delete
2016-02-14 18:50:45 -05:00
Paul Licameli
ad586b3e69
Bug36, partial: Redraw mixer board when meter range preference changes
2016-01-21 10:22:24 -05:00
Leland Lucius
6a9dae20f5
Appearance on OSX is now back to normal or better
...
Some additional wx3 cleanup as well.
2015-08-23 20:25:01 -05:00
Leland Lucius
2a0f9da32d
Fix keyboard handling in Lyrics and MixerBoard windows
...
Apparently, this hasn't worked for a while. At least back to 2.0.6
anyway.
2015-08-09 18:23:32 -05:00