* samplepos. used for relative snap.
*/
samplepos_t _snap_delta;
- double _snap_delta_music;
+ double _snap_delta_music;
CursorContext::Handle _cursor_ctx; ///< cursor change context
bool _constraint_pressed; ///< if the keyboard indicated constraint modifier was pressed on start_grab()
};
bool y_movement_allowed (int delta_track, double delta_layer, int skip_invisible = 0) const;
private:
- TimeAxisView *prev_tav; // where regions were most recently dragged from
- TimeAxisView *orig_tav; // where drag started
+ TimeAxisView *prev_tav; // where regions were most recently dragged from
+ TimeAxisView *orig_tav; // where drag started
ARDOUR::samplecnt_t prev_amount;
ARDOUR::samplepos_t prev_position;
ARDOUR::samplecnt_t selection_length;
}
MidiRegionView* _region_view;
- samplepos_t _last_pos;
+ samplepos_t _last_pos;
double _y;
};
ARDOUR::MeterSection* _real_section;
bool _copy;
- Editing::SnapType _old_snap_type;
+ Editing::GridType _old_grid_type;
Editing::SnapMode _old_snap_mode;
XMLNode* before_state;
};
{
public:
AutomationRangeDrag (Editor *, AutomationTimeAxisView *, std::list<ARDOUR::AudioRange> const &);
- AutomationRangeDrag (Editor *, RegionView *, std::list<ARDOUR::AudioRange> const &);
+ AutomationRangeDrag (Editor *, std::list<RegionView*> const &, std::list<ARDOUR::AudioRange> const &, double y_origin, double y_height);
void start_grab (GdkEvent *, Gdk::Cursor* c = 0);
void motion (GdkEvent *, bool);
private:
void setup (std::list<boost::shared_ptr<AutomationLine> > const &);
- double y_fraction (boost::shared_ptr<AutomationLine>, double global_y_position) const;
+ double y_fraction (double global_y_position) const;
double value (boost::shared_ptr<ARDOUR::AutomationList> list, double x) const;
std::list<ARDOUR::AudioRange> _ranges;
std::list<ControlPoint*> points; ///< points to drag on the line
std::pair<ARDOUR::samplepos_t, ARDOUR::samplepos_t> range; ///< the range of all points on the line, in session samples
XMLNode* state; ///< the XML state node before the drag
- double original_fraction; ///< initial y-fraction before the drag
};
std::list<Line> _lines;
double _y_origin;
+ double _y_height;
bool _nothing_to_drag;
bool _integral;
};