1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 08:29:27 +02:00

Change some argument names. I don't like one-letter variable names.

This commit is contained in:
Paul Licameli 2015-06-08 21:19:41 -04:00
parent 68174ad657
commit 9a22b94d99
2 changed files with 269 additions and 269 deletions

File diff suppressed because it is too large Load Diff

View File

@ -52,17 +52,17 @@ class AUDACITY_DLL_API TrackArtist {
void SetColours(); void SetColours();
void DrawTracks(TrackList *tracks, Track *start, void DrawTracks(TrackList *tracks, Track *start,
wxDC & dc, wxRegion & reg, wxDC & dc, wxRegion & reg,
wxRect & r, wxRect & clip, ViewInfo *viewInfo, wxRect & rect, wxRect & clip, ViewInfo *viewInfo,
bool drawEnvelope, bool drawSamples, bool drawSliders); bool drawEnvelope, bool bigPoints, bool drawSliders);
void DrawTrack(const Track *t, void DrawTrack(const Track *t,
wxDC & dc, const wxRect & r, const ViewInfo *viewInfo, wxDC & dc, const wxRect & rect, const ViewInfo *viewInfo,
bool drawEnvelope, bool drawSamples, bool drawSliders, bool drawEnvelope, bool bigPoints, bool drawSliders,
bool hasSolo); bool hasSolo);
void DrawVRuler(Track *t, wxDC *dc, wxRect & r); void DrawVRuler(Track *t, wxDC *dc, wxRect & rect);
void UpdateVRuler(Track *t, wxRect & r); void UpdateVRuler(Track *t, wxRect & rect);
void SetInset(int left, int top, int right, int bottom); void SetInset(int left, int top, int right, int bottom);
@ -90,10 +90,10 @@ class AUDACITY_DLL_API TrackArtist {
} }
// Helper: draws the "sync-locked" watermark tiled to a rectangle // Helper: draws the "sync-locked" watermark tiled to a rectangle
static void DrawSyncLockTiles(wxDC *dc, wxRect r); static void DrawSyncLockTiles(wxDC *dc, wxRect rect);
// Helper: draws background with selection rect // Helper: draws background with selection rect
static void DrawBackgroundWithSelection(wxDC *dc, const wxRect &r, static void DrawBackgroundWithSelection(wxDC *dc, const wxRect &rect,
Track *track, wxBrush &selBrush, wxBrush &unselBrush, Track *track, wxBrush &selBrush, wxBrush &unselBrush,
double sel0, double sel1, double h, double pps); double sel0, double sel1, double h, double pps);
@ -104,67 +104,67 @@ class AUDACITY_DLL_API TrackArtist {
// //
void DrawWaveform(WaveTrack *track, void DrawWaveform(WaveTrack *track,
wxDC & dc, const wxRect & r, const ViewInfo *viewInfo, wxDC & dc, const wxRect & rect, const ViewInfo *viewInfo,
bool drawEnvelope, bool drawSamples, bool drawSliders, bool drawEnvelope, bool bigPoints, bool drawSliders,
bool dB, bool muted); bool dB, bool muted);
void DrawSpectrum(WaveTrack *track, void DrawSpectrum(WaveTrack *track,
wxDC & dc, const wxRect & r, const ViewInfo *viewInfo); wxDC & dc, const wxRect & rect, const ViewInfo *viewInfo);
#ifdef USE_MIDI #ifdef USE_MIDI
int GetBottom(NoteTrack *t, const wxRect &r); int GetBottom(NoteTrack *t, const wxRect &rect);
void DrawNoteBackground(NoteTrack *track, wxDC &dc, void DrawNoteBackground(NoteTrack *track, wxDC &dc,
const wxRect &r, const wxRect &sel, const wxRect &rect, const wxRect &sel,
const ViewInfo *viewInfo, const ViewInfo *viewInfo,
const wxBrush &wb, const wxPen &wp, const wxBrush &wb, const wxPen &wp,
const wxBrush &bb, const wxPen &bp, const wxBrush &bb, const wxPen &bp,
const wxPen &mp); const wxPen &mp);
void DrawNoteTrack(NoteTrack *track, void DrawNoteTrack(NoteTrack *track,
wxDC & dc, const wxRect & r, const ViewInfo *viewInfo, wxDC & dc, const wxRect & rect, const ViewInfo *viewInfo,
bool muted); bool muted);
#endif // USE_MIDI #endif // USE_MIDI
void DrawLabelTrack(LabelTrack *track, void DrawLabelTrack(LabelTrack *track,
wxDC & dc, const wxRect & r, const ViewInfo *viewInfo); wxDC & dc, const wxRect & rect, const ViewInfo *viewInfo);
void DrawTimeTrack(TimeTrack *track, void DrawTimeTrack(TimeTrack *track,
wxDC & dc, const wxRect & r, const ViewInfo *viewInfo); wxDC & dc, const wxRect & rect, const ViewInfo *viewInfo);
void DrawTimeSlider(wxDC & dc, const wxRect & r, void DrawTimeSlider(wxDC & dc, const wxRect & rect,
bool rightwards); bool rightwards);
void DrawClipWaveform(WaveTrack *track, WaveClip *clip, void DrawClipWaveform(WaveTrack *track, WaveClip *clip,
wxDC & dc, const wxRect & r, const ViewInfo *viewInfo, wxDC & dc, const wxRect & rect, const ViewInfo *viewInfo,
bool drawEnvelope, bool drawSamples, bool drawEnvelope, bool bigPoints,
bool dB, bool muted); bool dB, bool muted);
void DrawClipSpectrum(WaveTrackCache &cache, WaveClip *clip, void DrawClipSpectrum(WaveTrackCache &cache, WaveClip *clip,
wxDC & dc, const wxRect & r, const ViewInfo *viewInfo); wxDC & dc, const wxRect & rect, const ViewInfo *viewInfo);
// Waveform utility functions // Waveform utility functions
void DrawWaveformBackground(wxDC & dc, const wxRect &r, const double env[], void DrawWaveformBackground(wxDC & dc, const wxRect &rect, const double env[],
float zoomMin, float zoomMax, bool dB, float zoomMin, float zoomMax, bool dB,
const sampleCount where[], const sampleCount where[],
sampleCount ssel0, sampleCount ssel1, sampleCount ssel0, sampleCount ssel1,
bool drawEnvelope, bool bIsSyncLockSelected); bool drawEnvelope, bool bIsSyncLockSelected);
void DrawMinMaxRMS(wxDC &dc, const wxRect &r, const double env[], void DrawMinMaxRMS(wxDC &dc, const wxRect &rect, const double env[],
float zoomMin, float zoomMax, bool dB, float zoomMin, float zoomMax, bool dB,
const WaveDisplay &display, bool /* showProgress */, bool muted const WaveDisplay &display, bool /* showProgress */, bool muted
#ifdef EXPERIMENTAL_OUTPUT_DISPLAY #ifdef EXPERIMENTAL_OUTPUT_DISPLAY
, const float gain , const float gain
#endif #endif
); );
void DrawIndividualSamples(wxDC & dc, const wxRect & r, void DrawIndividualSamples(wxDC & dc, const wxRect & rect,
float zoomMin, float zoomMax, bool dB, float zoomMin, float zoomMax, bool dB,
WaveClip *clip, WaveClip *clip,
double t0, double pps, double h, double t0, double pps, double h,
bool drawSamples, bool showPoints, bool muted); bool bigPoints, bool showPoints, bool muted);
void DrawNegativeOffsetTrackArrows(wxDC & dc, const wxRect & r); void DrawNegativeOffsetTrackArrows(wxDC & dc, const wxRect & rect);
void DrawEnvelope(wxDC & dc, const wxRect & r, const double env[], void DrawEnvelope(wxDC & dc, const wxRect & rect, const double env[],
float zoomMin, float zoomMax, bool dB); float zoomMin, float zoomMax, bool dB);
void DrawEnvLine(wxDC & dc, const wxRect & r, int x, int y, int cy, bool top); void DrawEnvLine(wxDC & dc, const wxRect & rect, int x, int y, int cy, bool top);
// Preference values // Preference values
float mdBrange; // "/GUI/EnvdBRange" float mdBrange; // "/GUI/EnvdBRange"