ProjectSettings.cpp does not depend on Snap, is free of cycles
This commit is contained in:
parent
490544cfd4
commit
d69a76dc6f
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -47,13 +47,6 @@ public:
|
|||
|
||||
class TrackClipArray : public std::vector < TrackClip > {};
|
||||
|
||||
enum
|
||||
{
|
||||
SNAP_OFF,
|
||||
SNAP_NEAREST,
|
||||
SNAP_PRIOR
|
||||
};
|
||||
|
||||
const int kPixelTolerance = 4;
|
||||
|
||||
class SnapPoint
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user