ProjectSettings.cpp does not depend on Snap, is free of cycles

This commit is contained in:
Paul Licameli 2019-06-04 12:47:44 -04:00
parent 490544cfd4
commit d69a76dc6f
4 changed files with 9 additions and 8 deletions

View File

@ -14,8 +14,8 @@ Paul Licameli split from AudacityProject.cpp
#include "AudioIOBase.h"
#include "Project.h"
#include "Snap.h"
#include "prefs/QualityPrefs.h"
#include "widgets/NumericTextCtrl.h"
wxDEFINE_EVENT(EVT_PROJECT_SETTINGS_CHANGE, wxCommandEvent);

View File

@ -22,6 +22,13 @@ class AudacityProject;
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
EVT_PROJECT_SETTINGS_CHANGE, wxCommandEvent);
enum
{
SNAP_OFF,
SNAP_NEAREST,
SNAP_PRIOR
};
///\brief Holds various per-project settings values, including the sample rate,
/// and sends events to the project when certain values change
class ProjectSettings final

View File

@ -47,13 +47,6 @@ public:
class TrackClipArray : public std::vector < TrackClip > {};
enum
{
SNAP_OFF,
SNAP_NEAREST,
SNAP_PRIOR
};
const int kPixelTolerance = 4;
class SnapPoint

View File

@ -56,6 +56,7 @@ with changes in the SelectionBar.
#include "../AColor.h"
#include "../KeyboardCapture.h"
#include "../Prefs.h"
#include "../ProjectSettings.h"
#include "../Snap.h"
#include "../AllThemeResources.h"