mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-27 07:01:12 +01:00
Paul L's new SelectedRegion class replacing use of t0 and t1. Also LabelTrack.h no longer in TrackPanel.h includes.
This change is believed to be a direct refactoring that does not change functionality. It paves the way for more complex kinds of selection, such as selections involving frequency as well as time. It also reduces risk of left and right edges being swapped in future code using SelectedRegion, as the default is to swap on assignment if needed.
This commit is contained in:
@@ -134,8 +134,8 @@ class AUDACITY_DLL_API AudacityProject: public wxFrame,
|
||||
|
||||
double GetRate() { return mRate; }
|
||||
double GetZoom() { return mViewInfo.zoom; }
|
||||
double GetSel0() { return mViewInfo.sel0; }
|
||||
double GetSel1() { return mViewInfo.sel1; }
|
||||
double GetSel0() { return mViewInfo.selectedRegion.t0(); }
|
||||
double GetSel1() { return mViewInfo.selectedRegion.t1(); }
|
||||
|
||||
Track *GetFirstVisible();
|
||||
void UpdateFirstVisible();
|
||||
|
||||
Reference in New Issue
Block a user