1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-22 16:41:18 +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

@@ -36,6 +36,8 @@ class AUDACITY_DLL_API SelectionBarListener {
virtual void AS_SetRate(double rate) = 0;
virtual bool AS_GetSnapTo() = 0;
virtual void AS_SetSnapTo(bool state) = 0;
virtual const wxString & AS_GetSelectionFormat() = 0;
virtual void AS_SetSelectionFormat(const wxString & format) = 0;
virtual void AS_ModifySelection(double &start, double &end, bool done) = 0;
};
@@ -58,6 +60,7 @@ class SelectionBar:public ToolBar {
double GetRightTime();
void SetField(const wxChar *msg, int fieldNum);
void SetSnapTo(bool state);
void SetSelectionFormat(const wxString & format);
void SetRate(double rate);
void SetListener(SelectionBarListener *l);