Ardour
9.0-pre0-822-g12e3bc5c20
|
#include <editor_drag.h>
Classes | |
struct | Line |
Public Member Functions | |
AutomationRangeDrag (EditingContext &, AutomationTimeAxisView *, float initial_value, std::list< ARDOUR::TimelineRange > const &) | |
AutomationRangeDrag (EditingContext &, std::list< RegionView * > const &, std::list< ARDOUR::TimelineRange > const &, double y_origin, double y_height) | |
void | start_grab (GdkEvent *, Gdk::Cursor *c=0) |
void | motion (GdkEvent *, bool) |
void | finished (GdkEvent *, bool) |
void | aborted (bool) |
bool | x_movement_matters () const |
Public Member Functions inherited from Drag | |
Drag (EditingContext &, ArdourCanvas::Item *, Temporal::TimeDomain td, ArdourCanvas::Item const *bounding_item, bool hide_snapped_cursor=true) | |
virtual | ~Drag () |
void | set_manager (DragManager *m) |
void | set_bounding_item (ArdourCanvas::Item const *i) |
ArdourCanvas::Item * | item () const |
Temporal::TimeDomain | time_domain () const |
void | set_time_domain (Temporal::TimeDomain) |
void | swap_grab (ArdourCanvas::Item *, Gdk::Cursor *, uint32_t) |
bool | motion_handler (GdkEvent *, bool) |
void | abort () |
Temporal::timepos_t | adjusted_time (Temporal::timepos_t const &, GdkEvent const *, bool snap=true) const |
Temporal::timepos_t | adjusted_current_time (GdkEvent const *, bool snap=true) const |
bool | was_double_click () const |
void | set_double_click (bool yn) |
void | set_grab_button_anyway (GdkEvent *) |
virtual bool | end_grab (GdkEvent *) |
virtual bool | active (Editing::MouseMode m) |
bool | preview_video () const |
std::pair< Temporal::timecnt_t, int > | move_threshold () const |
virtual bool | allow_vertical_autoscroll () const |
virtual bool | allow_horizontal_autoscroll () const |
virtual bool | y_movement_matters () const |
virtual bool | mid_drag_key_event (GdkEventKey *) |
bool | initially_vertical () const |
virtual void | setup_pointer_offset () |
virtual void | setup_video_offset () |
int | grab_button () const |
Private Member Functions | |
void | setup (std::list< std::shared_ptr< AutomationLine > > const &) |
double | y_fraction (double global_y_position) const |
double | value (std::shared_ptr< ARDOUR::AutomationList > list, Temporal::timepos_t const &x) const |
Private Attributes | |
std::list< ARDOUR::TimelineRange > | _ranges |
std::list< Line > | _lines |
double | _y_origin |
double | _y_height |
bool | _nothing_to_drag |
bool | _integral |
float_t | _initial_value |
Drag of a range of automation data (either on an automation track or region gain), changing value but not position.
Definition at line 1462 of file editor_drag.h.
AutomationRangeDrag::AutomationRangeDrag | ( | EditingContext & | , |
AutomationTimeAxisView * | , | ||
float | initial_value, | ||
std::list< ARDOUR::TimelineRange > const & | |||
) |
AutomationRangeDrag::AutomationRangeDrag | ( | EditingContext & | , |
std::list< RegionView * > const & | , | ||
std::list< ARDOUR::TimelineRange > const & | , | ||
double | y_origin, | ||
double | y_height | ||
) |
|
virtual |
Called to abort a drag and return things to how they were before it started.
m | true if some movement occurred, otherwise false. |
Implements Drag.
|
virtual |
Called when a drag has finished.
e | Event describing the finish. |
m | true if some movement occurred, otherwise false. |
Implements Drag.
|
virtual |
Called when a drag motion has occurred.
e | Event describing the motion. |
f | true if this is the first movement, otherwise false. |
Implements Drag.
|
private |
|
virtual |
Called to start a grab of an item.
e | Event that caused the grab to start. |
c | Cursor to use, or 0. |
Reimplemented from Drag.
|
private |
|
inlinevirtual |
Reimplemented from Drag.
Definition at line 1473 of file editor_drag.h.
|
private |
|
private |
Definition at line 1497 of file editor_drag.h.
|
private |
Definition at line 1496 of file editor_drag.h.
|
private |
Definition at line 1492 of file editor_drag.h.
|
private |
Definition at line 1495 of file editor_drag.h.
|
private |
Definition at line 1482 of file editor_drag.h.
|
private |
Definition at line 1494 of file editor_drag.h.
|
private |
Definition at line 1493 of file editor_drag.h.