1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-27 07:01:12 +01:00

Bug 275 - Snap-To status/quantisation are global, leading to incorrect indications in multiple projects

This adds (I believe) project specific selection format.
This commit is contained in:
lllucius
2013-10-27 01:58:35 +00:00
parent ded45eb85e
commit 3d95126e0e
7 changed files with 42 additions and 14 deletions

View File

@@ -306,6 +306,11 @@ class AUDACITY_DLL_API AudacityProject: public wxFrame,
void SetSnapTo(bool state);
bool GetSnapTo();
// Selection Format
void SetSelectionFormat(const wxString & format);
const wxString & GetSelectionFormat();
// Scrollbars
void OnScrollLeft();
@@ -364,6 +369,8 @@ class AUDACITY_DLL_API AudacityProject: public wxFrame,
virtual void AS_SetRate(double rate);
virtual bool AS_GetSnapTo();
virtual void AS_SetSnapTo(bool state);
virtual const wxString & AS_GetSelectionFormat();
virtual void AS_SetSelectionFormat(const wxString & format);
virtual void AS_ModifySelection(double &start, double &end, bool done);
void SetStateTo(unsigned int n);
@@ -439,6 +446,7 @@ class AUDACITY_DLL_API AudacityProject: public wxFrame,
TrackList *mTracks;
bool mSnapTo;
wxString mSelectionFormat;
TrackList *mLastSavedTracks;