1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 00:03:52 +02:00

Stem Plot option when displaying samples

Initial commit.
This commit is contained in:
Steve Daulton
2017-04-18 14:52:16 +01:00
parent 7f98672e22
commit 53a64757e7
5 changed files with 51 additions and 8 deletions

View File

@@ -89,6 +89,15 @@ void TracksPrefs::Populate()
mViewChoices.Add(_("Spectrogram"));
mViewCodes.Add(WaveTrack::Spectrum);
// How samples are displayed when zoomed in:
mSampleDisplayChoice.Add(_("Connect dots"));
mSampleDisplayCodes.Add((int) WaveTrack::LinarInterpolate);
mSampleDisplayChoice.Add(_("Stem plot"));
mSampleDisplayCodes.Add((int) WaveTrack::StemPlot);
//------------------------- Main section --------------------
// Now construct the GUI itself.
// Use 'eIsCreatingFromPrefs' so that the GUI is
@@ -125,6 +134,13 @@ void TracksPrefs::PopulateOrExchange(ShuttleGui & S)
mViewCodes);
S.SetSizeHints(mViewChoices);
S.TieChoice(_("Display samples:"),
wxT("/GUI/SampleView"),
0,
mSampleDisplayChoice,
mSampleDisplayCodes);
S.SetSizeHints(mSampleDisplayChoice);
S.TieTextBox(_("Default audio track &name:"),
wxT("/GUI/TrackNames/DefaultTrackName"),
_("Audio Track"),