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

Make Snap To project specific

This makes the Snap To setting in the selection bar project specific.  Changing
it will no longer affect other open projects.

The state is saved to audacity.cfg when the checkbox is changed.  This means
that the next project window to open will start with the new value.  (As it
should be).
This commit is contained in:
lllucius
2013-10-23 17:47:00 +00:00
parent 4159bf3b8e
commit 0bee195b0e
5 changed files with 27 additions and 20 deletions

View File

@@ -360,10 +360,11 @@ class AUDACITY_DLL_API AudacityProject: public wxFrame,
// SelectionBar callback methods
virtual double AS_GetRate();
virtual void AS_SetRate(double rate);
virtual void AS_ModifySelection(double &start, double &end);
virtual void AS_SetSnapTo(bool state);
virtual bool AS_GetSnapTo();
virtual void AS_SetSnapTo(bool state);
virtual void AS_ModifySelection(double &start, double &end);
void SetStateTo(unsigned int n);