1
0
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:
Paul Licameli
2017-05-15 19:12:18 -04:00
parent d36ac2cedb
commit 282abfce7f
2 changed files with 17 additions and 17 deletions

View File

@@ -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()