ardour
|
#include <editor_drag.h>
Public Member Functions | |
RegionMoveDrag (Editor *, ArdourCanvas::Item *, RegionView *, std::list< RegionView * > const &, bool, bool) | |
virtual | ~RegionMoveDrag () |
void | motion (GdkEvent *, bool) |
void | finished (GdkEvent *, bool) |
void | aborted (bool) |
bool | regions_came_from_canvas () const |
std::pair< ARDOUR::framecnt_t, int > | move_threshold () const |
void | setup_pointer_frame_offset () |
Public Member Functions inherited from RegionMotionDrag | |
RegionMotionDrag (Editor *, ArdourCanvas::Item *, RegionView *, std::list< RegionView * > const &, bool) | |
virtual | ~RegionMotionDrag () |
virtual void | start_grab (GdkEvent *, Gdk::Cursor *) |
Public Member Functions inherited from RegionDrag | |
RegionDrag (Editor *, ArdourCanvas::Item *, RegionView *, std::list< RegionView * > const &) | |
virtual | ~RegionDrag () |
Public Member Functions inherited from Drag | |
Drag (Editor *, ArdourCanvas::Item *, bool trackview_only=true) | |
virtual | ~Drag () |
void | set_manager (DragManager *m) |
ArdourCanvas::Item * | item () const |
void | swap_grab (ArdourCanvas::Item *, Gdk::Cursor *, uint32_t) |
bool | motion_handler (GdkEvent *, bool) |
void | abort () |
ARDOUR::framepos_t | adjusted_frame (ARDOUR::framepos_t, GdkEvent const *, bool snap=true) const |
ARDOUR::framepos_t | adjusted_current_frame (GdkEvent const *, bool snap=true) const |
bool | was_double_click () const |
void | set_double_click (bool yn) |
virtual bool | end_grab (GdkEvent *) |
virtual bool | active (Editing::MouseMode m) |
virtual bool | allow_vertical_autoscroll () const |
virtual bool | x_movement_matters () const |
virtual bool | y_movement_matters () const |
bool | initially_vertical () const |
Protected Types | |
typedef std::set < boost::shared_ptr < ARDOUR::Playlist > > | PlaylistSet |
Protected Member Functions | |
void | add_stateful_diff_commands_for_playlists (PlaylistSet const &) |
Protected Member Functions inherited from RegionMotionDrag | |
double | compute_x_delta (GdkEvent const *, ARDOUR::framepos_t *) |
virtual bool | y_movement_allowed (int, double, int skip_invisible=0) const |
Protected Member Functions inherited from RegionDrag | |
int | find_time_axis_view (TimeAxisView *) const |
int | apply_track_delta (const int start, const int delta, const int skip, const bool distance_only=false) const |
Protected Member Functions inherited from Drag | |
double | grab_x () const |
double | grab_y () const |
ARDOUR::framepos_t | raw_grab_frame () const |
ARDOUR::framepos_t | grab_frame () const |
double | last_pointer_x () const |
double | last_pointer_y () const |
double | last_pointer_frame () const |
double | current_pointer_x () const |
double | current_pointer_y () const |
boost::shared_ptr< ARDOUR::Region > | add_midi_region (MidiTimeAxisView *) |
void | show_verbose_cursor_time (framepos_t) |
void | show_verbose_cursor_duration (framepos_t, framepos_t, double xoffset=0) |
void | show_verbose_cursor_text (std::string const &) |
Private Member Functions | |
void | finished_no_copy (bool const, bool const, ARDOUR::framecnt_t const ) |
void | finished_copy (bool const, bool const, ARDOUR::framecnt_t const ) |
RegionView * | insert_region_into_playlist (boost::shared_ptr< ARDOUR::Region >, RouteTimeAxisView *, ARDOUR::layer_t, ARDOUR::framecnt_t, PlaylistSet &) |
void | remove_region_from_playlist (boost::shared_ptr< ARDOUR::Region >, boost::shared_ptr< ARDOUR::Playlist >, PlaylistSet &modified_playlists) |
void | collect_new_region_view (RegionView *) |
RouteTimeAxisView * | create_destination_time_axis (boost::shared_ptr< ARDOUR::Region >, TimeAxisView *original) |
Private Attributes | |
bool | _copy |
RegionView * | _new_region_view |
Additional Inherited Members | |
Protected Attributes inherited from RegionMotionDrag | |
bool | _brushing |
ARDOUR::framepos_t | _last_frame_position |
last position of the thing being dragged More... | |
double | _total_x_delta |
int | _last_pointer_time_axis_view |
double | _last_pointer_layer |
bool | _single_axis |
Protected Attributes inherited from RegionDrag | |
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 |
Protected Attributes inherited from Drag | |
Editor * | _editor |
our editor More... | |
DragManager * | _drags |
ArdourCanvas::Item * | _item |
our item More... | |
ARDOUR::framecnt_t | _pointer_frame_offset |
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... | |
Drags to move (or copy) regions that are already shown in the GUI to somewhere different.
Definition at line 350 of file editor_drag.h.
|
protected |
Definition at line 371 of file editor_drag.h.
RegionMoveDrag::RegionMoveDrag | ( | Editor * | e, |
ArdourCanvas::Item * | i, | ||
RegionView * | p, | ||
std::list< RegionView * > const & | v, | ||
bool | b, | ||
bool | c | ||
) |
b | true to brush, otherwise false. |
c | true to make copies of the regions being moved, otherwise false. |
Definition at line 1809 of file editor_drag.cc.
|
inlinevirtual |
Definition at line 354 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. |
Reimplemented from RegionMotionDrag.
Reimplemented in RegionRippleDrag, and RegionSpliceDrag.
Definition at line 1761 of file editor_drag.cc.
|
protected |
Definition at line 1747 of file editor_drag.cc.
|
private |
Definition at line 1741 of file editor_drag.cc.
|
private |
Definition at line 1351 of file editor_drag.cc.
|
virtual |
Called when a drag has finished.
e | Event describing the finish. |
m | true if some movement occurred, otherwise false. |
Reimplemented from RegionMotionDrag.
Reimplemented in RegionRippleDrag, and RegionSpliceDrag.
Definition at line 1290 of file editor_drag.cc.
|
private |
Definition at line 1387 of file editor_drag.cc.
|
private |
Definition at line 1475 of file editor_drag.cc.
|
private |
Insert a region into a playlist, handling the recovery of the resulting new RegionView, and clearing the playlist's diff history first if necessary.
region | Region to insert. |
dest_rtv | Destination RouteTimeAxisView. |
dest_layer | Destination layer. |
where | Destination position. |
modified_playlists | The playlist will be added to this if it is not there already; used to ensure that clear_changes () is only called once per playlist. |
Definition at line 1704 of file editor_drag.cc.
|
virtual |
Called when a drag motion has occurred.
e | Event describing the motion. |
f | true if this is the first movement, otherwise false. |
Reimplemented from RegionMotionDrag.
Reimplemented in RegionRippleDrag, and RegionSpliceDrag.
Definition at line 1197 of file editor_drag.cc.
|
inlinevirtual |
Reimplemented from Drag.
Definition at line 364 of file editor_drag.h.
|
inlinevirtual |
Implements RegionMotionDrag.
Definition at line 360 of file editor_drag.h.
|
private |
Remove a region from a playlist, clearing the diff history of the playlist first if necessary.
region | Region to remove. |
playlist | playlist To remove from. |
modified_playlists | The playlist will be added to this if it is not there already; used to ensure that clear_changes () is only called once per playlist. |
Definition at line 1677 of file editor_drag.cc.
|
virtual |
Set up the _pointer_frame_offset
Reimplemented from Drag.
Definition at line 1825 of file editor_drag.cc.
|
private |
Definition at line 405 of file editor_drag.h.
|
private |
Definition at line 406 of file editor_drag.h.