mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-11 15:16:27 +01:00
Abstract TrackPanel::GetSnapLeft() and ::GetSnapRight()
This commit is contained in:
@@ -702,10 +702,16 @@ protected:
|
||||
// are the horizontal index of pixels to display user feedback
|
||||
// guidelines so the user knows when such snapping is taking place.
|
||||
std::unique_ptr<SnapManager> mSnapManager;
|
||||
wxInt64 mSnapLeft;
|
||||
wxInt64 mSnapRight;
|
||||
wxInt64 mSnapLeft { -1 };
|
||||
wxInt64 mSnapRight { -1 };
|
||||
bool mSnapPreferRightEdge;
|
||||
|
||||
public:
|
||||
wxInt64 GetSnapLeft () const { return mSnapLeft ; }
|
||||
wxInt64 GetSnapRight() const { return mSnapRight; }
|
||||
|
||||
protected:
|
||||
|
||||
NumericConverter mConverter;
|
||||
|
||||
WaveTrack * mDrawingTrack; // Keeps track of which track you are drawing on between events cf. HandleDraw()
|
||||
|
||||
Reference in New Issue
Block a user