move Drag::_earliest_time_limit to be protected, not private

This commit is contained in:
Paul Davis 2021-06-18 12:45:09 -06:00
parent fbd6c7eaee
commit b04ea33f18
2 changed files with 2 additions and 2 deletions

View File

@ -260,6 +260,7 @@ Drag::Drag (Editor* e, ArdourCanvas::Item* i, bool trackview_only)
, _x_constrained (false)
, _y_constrained (false)
, _was_rolling (false)
, _earliest_time_limit (0)
, _trackview_only (trackview_only)
, _move_threshold_passed (false)
, _starting_point_passed (false)
@ -272,7 +273,6 @@ Drag::Drag (Editor* e, ArdourCanvas::Item* i, bool trackview_only)
, _raw_grab_sample (0)
, _grab_sample (0)
, _last_pointer_sample (0)
, _earliest_time_limit (0)
, _snap_delta (0)
, _snap_delta_music (0.0)
, _constraint_pressed (false)

View File

@ -289,6 +289,7 @@ protected:
bool _x_constrained; ///< true if x motion is constrained, otherwise false
bool _y_constrained; ///< true if y motion is constrained, otherwise false
bool _was_rolling; ///< true if the session was rolling before the drag started, otherwise false
ARDOUR::samplepos_t _earliest_time_limit; ///< time we cannot drag before (defaults to 0, indicating no such limit)
private:
bool _trackview_only; ///< true if pointer y value should always be relative to the top of the trackview group
@ -303,7 +304,6 @@ private:
ARDOUR::samplepos_t _raw_grab_sample; ///< unsnapped sample that the mouse was at when start_grab was called, or 0
ARDOUR::samplepos_t _grab_sample; ///< adjusted_sample that the mouse was at when start_grab was called, or 0
ARDOUR::samplepos_t _last_pointer_sample; ///< adjusted_sample the last time a motion occurred
ARDOUR::samplepos_t _earliest_time_limit; ///< time we cannot drag before (defaults to 0, indicating no such limit)
/* difference between some key position's snapped and unsnapped
* samplepos. used for relative snap.