ardour
|
#include <editor_drag.h>
Public Member Functions | |
ControlPointDrag (Editor *, ArdourCanvas::Item *) | |
void | start_grab (GdkEvent *, Gdk::Cursor *c=0) |
void | motion (GdkEvent *, bool) |
void | finished (GdkEvent *, bool) |
void | aborted (bool) |
bool | active (Editing::MouseMode m) |
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 std::pair < ARDOUR::framecnt_t, int > | move_threshold () const |
virtual bool | allow_vertical_autoscroll () const |
virtual bool | x_movement_matters () const |
virtual bool | y_movement_matters () const |
bool | initially_vertical () const |
virtual void | setup_pointer_frame_offset () |
Private Attributes | |
ControlPoint * | _point |
double | _fixed_grab_x |
double | _fixed_grab_y |
double | _cumulative_x_drag |
double | _cumulative_y_drag |
bool | _pushing |
uint32_t | _final_index |
Static Private Attributes | |
static double | _zero_gain_fraction = -1.0 |
Additional Inherited Members | |
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 &) |
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... | |
Control point drag
Definition at line 809 of file editor_drag.h.
ControlPointDrag::ControlPointDrag | ( | Editor * | e, |
ArdourCanvas::Item * | i | ||
) |
Definition at line 3942 of file editor_drag.cc.
|
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.
Definition at line 4055 of file editor_drag.cc.
|
virtual |
m | Mouse mode. |
Reimplemented from Drag.
Definition at line 4061 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. |
Implements Drag.
Definition at line 4036 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. |
Implements Drag.
Definition at line 3982 of file editor_drag.cc.
|
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.
Definition at line 3959 of file editor_drag.cc.
|
private |
Definition at line 826 of file editor_drag.h.
|
private |
Definition at line 827 of file editor_drag.h.
|
private |
Definition at line 829 of file editor_drag.h.
|
private |
Definition at line 824 of file editor_drag.h.
|
private |
Definition at line 825 of file editor_drag.h.
|
private |
Definition at line 823 of file editor_drag.h.
|
private |
Definition at line 828 of file editor_drag.h.
|
staticprivate |
Definition at line 830 of file editor_drag.h.