![]() |
Ardour
9.0-pre0-822-g12e3bc5c20
|
#include <editor_drag.h>
Public Member Functions | |
RegionMotionDrag (Editor &, ArdourCanvas::Item *, RegionView *, std::list< RegionView * > const &, Temporal::TimeDomain td) | |
virtual | ~RegionMotionDrag () |
virtual void | start_grab (GdkEvent *, Gdk::Cursor *) |
virtual void | motion (GdkEvent *, bool) |
virtual void | finished (GdkEvent *, bool) |
virtual void | aborted (bool) |
virtual bool | regions_came_from_canvas () const =0 |
![]() | |
RegionDrag (Editor &, ArdourCanvas::Item *, RegionView *, std::list< RegionView * > const &, Temporal::TimeDomain, bool hide_snapped_cursor=true) | |
virtual | ~RegionDrag () |
![]() | |
EditorDrag (Editor &, ArdourCanvas::Item *, Temporal::TimeDomain td, ArdourCanvas::Item const *bounding_item, bool hide_snapped_cursor=true) | |
![]() | |
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 | x_movement_matters () const |
virtual bool | y_movement_matters () const |
virtual bool | mid_drag_key_event (GdkEventKey *) |
bool | initially_vertical () const |
virtual void | setup_pointer_offset () |
int | grab_button () const |
Protected Attributes | |
bool | _ignore_video_lock |
Temporal::timepos_t | _last_position |
last position of the thing being dragged More... | |
double | _total_x_delta |
int | _last_pointer_time_axis_view |
double | _last_pointer_layer |
std::vector< ArdourMarker * > | ripple_markers |
![]() | |
RegionView * | _primary |
the view that was clicked on (or whatever) to start the drag More... | |
std::list< DraggingView > | _views |
information about all views that are being dragged More... | |
std::vector< TimeAxisView * > | _time_axis_views |
int | _visible_y_low |
int | _visible_y_high |
uint32_t | _ntracks |
![]() | |
Editor & | _editor |
![]() | |
EditingContext & | editing_context |
DragManager * | _drags |
ArdourCanvas::Item * | _item |
our item More... | |
ArdourCanvas::Item const * | _bounding_item |
our coordinate reference (normally null) More... | |
Temporal::timecnt_t | _pointer_offset |
Temporal::timecnt_t | _video_offset |
bool | _preview_video |
bool | _x_constrained |
true if x motion is constrained, otherwise false More... | |
bool | _y_constrained |
true if y motion is constrained, otherwise false More... | |
bool | _was_rolling |
true if the session was rolling before the drag started, otherwise false More... | |
ARDOUR::timepos_t | _earliest_time_limit |
time we cannot drag before (defaults to 0, indicating no such limit) More... | |
Private Attributes | |
uint32_t | _ndropzone |
uint32_t | _pdropzone |
uint32_t | _ddropzone |
Drags involving region motion from somewhere
Definition at line 465 of file editor_drag.h.
RegionMotionDrag::RegionMotionDrag | ( | Editor & | , |
ArdourCanvas::Item * | , | ||
RegionView * | , | ||
std::list< RegionView * > const & | , | ||
Temporal::TimeDomain | td | ||
) |
|
inlinevirtual |
Definition at line 470 of file editor_drag.h.
|
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.
Reimplemented in RegionInsertDrag, and RegionMoveDrag.
|
protected |
|
protected |
|
virtual |
Called when a drag has finished.
e | Event describing the finish. |
m | true if some movement occurred, otherwise false. |
Implements Drag.
Reimplemented in RegionInsertDrag, and RegionMoveDrag.
|
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.
Reimplemented in RegionMoveDrag.
|
pure virtual |
Implemented in RegionInsertDrag, and RegionMoveDrag.
|
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.
|
protectedvirtual |
|
private |
Definition at line 498 of file editor_drag.h.
|
protected |
Definition at line 488 of file editor_drag.h.
|
protected |
Definition at line 492 of file editor_drag.h.
|
protected |
Definition at line 491 of file editor_drag.h.
|
protected |
last position of the thing being dragged
Definition at line 489 of file editor_drag.h.
|
private |
Definition at line 496 of file editor_drag.h.
|
private |
Definition at line 497 of file editor_drag.h.
|
protected |
Definition at line 490 of file editor_drag.h.
|
protected |
Definition at line 493 of file editor_drag.h.