![]() |
Ardour
9.0-pre0-985-gdd3683bc06
|
#include <editing_context.h>
Classes | |
struct | CursorRAII |
struct | TempoMapScope |
struct | VisualChange |
Static Public Member Functions | |
static MouseCursors const * | cursors () |
Public Attributes | |
sigc::signal< void > | ZoomFocusChanged |
sigc::signal< void > | ZoomChanged |
PBD::Signal< void()> | SnapChanged |
PBD::Signal< void()> | MouseModeChanged |
ArdourCanvas::Rectangle * | rubberband_rect |
Static Public Attributes | |
static sigc::signal< void > | DropDownKeys |
Protected Types | |
enum | BBTRulerScale { bbt_show_many , bbt_show_64 , bbt_show_16 , bbt_show_4 , bbt_show_1 , bbt_show_quarters , bbt_show_eighths , bbt_show_sixteenths , bbt_show_thirtyseconds , bbt_show_sixtyfourths , bbt_show_onetwentyeighths } |
Static Protected Member Functions | |
static int | _idle_visual_changer (void *arg) |
static Glib::RefPtr< Gtk::Action > | reg_sens (Glib::RefPtr< Gtk::ActionGroup > group, char const *name, char const *label, sigc::slot< void > slot) |
static void | toggle_reg_sens (Glib::RefPtr< Gtk::ActionGroup > group, char const *name, char const *label, sigc::slot< void > slot) |
static void | radio_reg_sens (Glib::RefPtr< Gtk::ActionGroup > action_group, Gtk::RadioAction::Group &radio_group, char const *name, char const *label, sigc::slot< void > slot) |
Static Protected Attributes | |
static std::vector< std::string > | grid_type_strings |
static MouseCursors * | _cursors |
static Gtkmm2ext::Bindings * | button_bindings |
Friends | |
struct | TempoMapScope |
class | EditorSummary |
Definition at line 78 of file editing_context.h.
|
protected |
Enumerator | |
---|---|
bbt_show_many | |
bbt_show_64 | |
bbt_show_16 | |
bbt_show_4 | |
bbt_show_1 | |
bbt_show_quarters | |
bbt_show_eighths | |
bbt_show_sixteenths | |
bbt_show_thirtyseconds | |
bbt_show_sixtyfourths | |
bbt_show_onetwentyeighths |
Definition at line 614 of file editing_context.h.
EditingContext::EditingContext | ( | std::string const & | ) |
EditingContext::~EditingContext | ( | ) |
|
protectedpure virtual |
|
staticprotected |
|
pure virtual |
|
pure virtual |
|
pure virtual |
void EditingContext::alt_delete_ | ( | ) |
void EditingContext::apply_midi_note_edit_op | ( | ARDOUR::MidiOperator & | op, |
const RegionSelection & | rs | ||
) |
PBD::Command* EditingContext::apply_midi_note_edit_op_to_region | ( | ARDOUR::MidiOperator & | op, |
MidiView & | mrv | ||
) |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
protected |
|
protected |
|
protected |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protected |
void EditingContext::calc_extra_zoom_edges | ( | samplepos_t & | start, |
samplepos_t & | end | ||
) |
|
inlinevirtual |
Reimplemented in Pianoroll.
Definition at line 278 of file editing_context.h.
|
pure virtual |
Implemented in PublicEditor, Pianoroll, and Editor.
|
inlinevirtual |
Reimplemented in Pianoroll.
Definition at line 277 of file editing_context.h.
|
inlinevirtual |
Reimplemented in Pianoroll.
Definition at line 276 of file editing_context.h.
samplepos_t EditingContext::canvas_event_sample | ( | GdkEvent const * | event, |
double * | pcx = nullptr , |
||
double * | pcy = nullptr |
||
) | const |
computes the timeline sample (sample) of an event whose coordinates are in canvas units (pixels, scroll offset included).
Temporal::timepos_t EditingContext::canvas_event_time | ( | GdkEvent const * | , |
double * | px = 0 , |
||
double * | py = 0 |
||
) | const |
computes the timeline position for an event whose coordinates are in canvas units (pixels, scroll offset included). The time domain used by the return value will match ::default_time_domain() at the time of calling.
|
pure virtual |
|
inlinevirtual |
Reimplemented in Editor.
Definition at line 419 of file editing_context.h.
|
inline |
Definition at line 258 of file editing_context.h.
|
pure virtual |
Implemented in PublicEditor, Pianoroll, and Editor.
|
pure virtual |
Implemented in PublicEditor, Pianoroll, and Editor.
|
protected |
void EditingContext::choose_canvas_cursor_on_entry | ( | ItemType | ) |
Push the appropriate enter/cursor context on item entry.
|
pure virtual |
|
pure virtual |
|
protected |
void EditingContext::copy | ( | ) |
|
protected |
|
inline |
Definition at line 363 of file editing_context.h.
|
pure virtual |
Implemented in PublicEditor, Pianoroll, and Editor.
|
inlinestatic |
Definition at line 384 of file editing_context.h.
void EditingContext::cut | ( | ) |
|
pure virtual |
void EditingContext::cycle_snap_mode | ( | ) |
|
virtual |
|
protectedpure virtual |
|
protectedpure virtual |
bool EditingContext::drag_active | ( | ) | const |
|
inline |
Definition at line 104 of file editing_context.h.
int EditingContext::draw_channel | ( | ) | const |
|
protected |
|
protected |
|
protected |
Editing::GridType EditingContext::draw_length | ( | ) | const |
|
protected |
|
protected |
|
protected |
int EditingContext::draw_velocity | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
double EditingContext::duration_to_pixels | ( | Temporal::timecnt_t const & | pos | ) | const |
double EditingContext::duration_to_pixels_unrounded | ( | Temporal::timecnt_t const & | pos | ) | const |
|
protected |
|
inline |
Definition at line 84 of file editing_context.h.
|
inlinevirtual |
Reimplemented in PublicEditor, and Editor.
Definition at line 364 of file editing_context.h.
|
inlineprotectedvirtual |
Reimplemented in Editor.
Definition at line 595 of file editing_context.h.
|
inlineprotectedvirtual |
Reimplemented in CueEditor.
Definition at line 643 of file editing_context.h.
|
protected |
|
protectedpure virtual |
|
inlineprotectedvirtual |
Reimplemented in Pianoroll, and Editor.
Definition at line 789 of file editing_context.h.
std::vector<MidiView*> EditingContext::filter_to_unique_midi_region_views | ( | RegionSelection const & | ms | ) | const |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 150 of file editing_context.h.
|
protectedvirtual |
|
inlineprotectedvirtual |
Reimplemented in Pianoroll.
Definition at line 559 of file editing_context.h.
|
pure virtual |
|
virtual |
Reimplemented in CueEditor.
|
pure virtual |
|
protected |
|
inline |
Definition at line 184 of file editing_context.h.
|
pure virtual |
Implemented in PublicEditor, Pianoroll, and Editor.
|
inlinevirtual |
Reimplemented in Editor.
Definition at line 344 of file editing_context.h.
Temporal::Beats EditingContext::get_draw_length_as_beats | ( | bool & | success, |
Temporal::timepos_t const & | position | ||
) | const |
int32_t EditingContext::get_grid_beat_divisions | ( | Editing::GridType | gt | ) | const |
int32_t EditingContext::get_grid_music_divisions | ( | Editing::GridType | gt, |
uint32_t | event_state | ||
) | const |
Temporal::Beats EditingContext::get_grid_type_as_beats | ( | bool & | success, |
Temporal::timepos_t const & | position | ||
) | const |
|
pure virtual |
Implemented in PublicEditor, Pianoroll, and Editor.
|
protected |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 152 of file editing_context.h.
ARDOUR::Quantize* EditingContext::get_quantize_op | ( | ) |
|
pure virtual |
|
inlinevirtual |
Reimplemented in Editor.
Definition at line 343 of file editing_context.h.
|
inlinevirtual |
Reimplemented in PublicEditor, and Editor.
Definition at line 369 of file editing_context.h.
|
pure virtual |
|
pure virtual |
Implemented in PublicEditor, Pianoroll, and Editor.
|
pure virtual |
bool EditingContext::grid_musical | ( | ) | const |
Editing::GridType EditingContext::grid_type | ( | ) | const |
|
protected |
|
protected |
bool EditingContext::grid_type_is_musical | ( | Editing::GridType | ) | const |
|
protected |
|
protected |
|
pure virtual |
double EditingContext::horizontal_position | ( | ) | const |
|
protected |
|
pure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
void EditingContext::legatize_region | ( | bool | shrink_only | ) |
|
protected |
|
protected |
|
inlineprotectedvirtual |
Reimplemented in PublicEditor, and Editor.
Definition at line 567 of file editing_context.h.
|
inlinevirtual |
Reimplemented in Pianoroll.
Definition at line 326 of file editing_context.h.
|
protectedpure virtual |
|
pure virtual |
|
protected |
|
inlineprotectedvirtual |
Reimplemented in Editor.
Definition at line 776 of file editing_context.h.
|
inlineprotectedvirtual |
Reimplemented in Editor.
Definition at line 778 of file editing_context.h.
|
inlineprotectedvirtual |
Reimplemented in Editor.
Definition at line 777 of file editing_context.h.
|
inlineprotectedvirtual |
Reimplemented in Editor.
Definition at line 775 of file editing_context.h.
|
virtual |
Reimplemented in Pianoroll.
|
protectedpure virtual |
|
pure virtual |
bool EditingContext::mouse_sample | ( | samplepos_t & | , |
bool & | in_track_canvas | ||
) | const |
void EditingContext::next_grid_choice | ( | ) |
|
protected |
|
inlineprotectedvirtual |
Reimplemented in Pianoroll.
Definition at line 557 of file editing_context.h.
|
inlinevirtual |
Reimplemented in Pianoroll, and Editor.
Definition at line 328 of file editing_context.h.
bool EditingContext::on_velocity_scroll_event | ( | GdkEventScroll * | ) |
|
protected |
|
protected |
|
protectedvirtual |
Reimplemented in Editor.
|
pure virtual |
|
inline |
Definition at line 249 of file editing_context.h.
|
inline |
Definition at line 225 of file editing_context.h.
|
inline |
Definition at line 203 of file editing_context.h.
|
protectedvirtual |
|
inline |
Definition at line 127 of file editing_context.h.
|
pure virtual |
|
protected |
void EditingContext::pre_render | ( | ) |
void EditingContext::prev_grid_choice | ( | ) |
bool EditingContext::preview_video_drag_active | ( | ) | const |
void EditingContext::quantize_region | ( | ) |
|
protected |
|
staticprotected |
|
pure virtual |
|
inline |
Redo some transactions.
n | Number of transaction to redo. |
Definition at line 451 of file editing_context.h.
|
pure virtual |
|
staticprotected |
|
protectedpure virtual |
|
protectedpure virtual |
Implemented in PublicEditor, Pianoroll, and Editor.
void EditingContext::register_common_actions | ( | Gtkmm2ext::Bindings * | ) |
|
protected |
void EditingContext::register_midi_actions | ( | Gtkmm2ext::Bindings * | ) |
Temporal::timecnt_t EditingContext::relative_distance | ( | Temporal::timepos_t const & | origin, |
Temporal::timecnt_t const & | duration, | ||
Temporal::TimeDomain | domain | ||
) |
|
pure virtual |
void EditingContext::reset_point_selection | ( | ) |
void EditingContext::reset_x_origin | ( | samplepos_t | ) |
|
protectedpure virtual |
void EditingContext::reset_y_origin | ( | double | ) |
void EditingContext::reset_zoom | ( | samplecnt_t | ) |
|
inline |
Definition at line 229 of file editing_context.h.
|
inline |
Definition at line 233 of file editing_context.h.
|
pure virtual |
void EditingContext::select_automation_line | ( | GdkEventButton * | , |
ArdourCanvas::Item * | , | ||
ARDOUR::SelectionOperation | |||
) |
|
pure virtual |
|
virtual |
|
protected |
void EditingContext::set_draw_channel_to | ( | int | ) |
void EditingContext::set_draw_length_to | ( | Editing::GridType | ) |
void EditingContext::set_draw_velocity_to | ( | int | ) |
|
inlineprotectedvirtual |
Reimplemented in Editor.
Definition at line 780 of file editing_context.h.
void EditingContext::set_follow_playhead | ( | bool | yn, |
bool | catch_up = true |
||
) |
Set whether the editor should follow the playhead.
yn | true to follow playhead, otherwise false. |
catch_up | true to reset the editor view to show the playhead (if yn == true), otherwise false. |
void EditingContext::set_grid_to | ( | Editing::GridType | ) |
void EditingContext::set_horizontal_position | ( | double | ) |
void EditingContext::set_loop_range | ( | Temporal::timepos_t const & | start, |
Temporal::timepos_t const & | end, | ||
std::string | cmd | ||
) |
|
virtual |
Set the mouse mode (gain, object, range, timefx etc.)
m | Mouse mode (defined in editing_syms.inc.h) |
force | Perform the effects of the change even if no change is required (ie even if the current mouse mode is equal to m ) |
|
pure virtual |
|
virtual |
|
virtual |
Reimplemented from ARDOUR::SessionHandlePtr.
Reimplemented in PublicEditor, Pianoroll, and Editor.
void EditingContext::set_snap_mode | ( | Editing::SnapMode | ) |
|
pure virtual |
|
inlineprotectedvirtual |
Reimplemented in Pianoroll.
Definition at line 560 of file editing_context.h.
|
pure virtual |
|
inlineprotectedvirtual |
Reimplemented in Editor.
Definition at line 569 of file editing_context.h.
Editing::SnapMode EditingContext::snap_mode | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
Temporal::timecnt_t EditingContext::snap_relative_time_to_relative_time | ( | Temporal::timepos_t const & | origin, |
Temporal::timecnt_t const & | x, | ||
bool | ensure_snap | ||
) | const |
|
virtual |
|
virtual |
|
protected |
|
protectedpure virtual |
|
protectedpure virtual |
|
virtual |
|
inline |
Definition at line 128 of file editing_context.h.
|
protectedvirtual |
Reimplemented in CueEditor.
|
pure virtual |
|
pure virtual |
void EditingContext::temporal_zoom | ( | samplecnt_t | samples_per_pixel | ) |
void EditingContext::temporal_zoom_by_sample | ( | samplepos_t | start, |
samplepos_t | end | ||
) |
void EditingContext::temporal_zoom_step | ( | bool | zoom_out | ) |
void EditingContext::temporal_zoom_step_mouse_focus | ( | bool | zoom_out | ) |
void EditingContext::temporal_zoom_step_mouse_focus_scale | ( | bool | zoom_out, |
double | scale | ||
) |
void EditingContext::temporal_zoom_step_scale | ( | bool | zoom_out, |
double | scale | ||
) |
void EditingContext::temporal_zoom_to_sample | ( | bool | coarser, |
samplepos_t | sample | ||
) |
double EditingContext::time_delta_to_pixel | ( | Temporal::timepos_t const & | start, |
Temporal::timepos_t const & | end | ||
) | const |
Temporal::TimeDomain EditingContext::time_domain | ( | ) | const |
double EditingContext::time_to_pixel | ( | Temporal::timepos_t const & | pos | ) | const |
double EditingContext::time_to_pixel_unrounded | ( | Temporal::timepos_t const & | pos | ) | const |
|
inline |
Definition at line 196 of file editing_context.h.
|
inline |
Definition at line 257 of file editing_context.h.
void EditingContext::toggle_follow_playhead | ( | ) |
Toggle whether the editor is following the playhead
|
staticprotected |
void EditingContext::transform_region | ( | ) |
|
protected |
|
protected |
void EditingContext::transpose_region | ( | ) |
|
protected |
bool EditingContext::typed_event | ( | ArdourCanvas::Item * | , |
GdkEvent * | , | ||
ItemType | |||
) |
|
protectedvirtual |
Reimplemented in Editor.
|
inline |
Undo some transactions.
n | Number of transactions to undo. |
Definition at line 446 of file editing_context.h.
|
pure virtual |
|
virtual |
|
inlineprotectedvirtual |
Reimplemented in Editor.
Definition at line 568 of file editing_context.h.
void EditingContext::update_undo_redo_actions | ( | PBD::UndoHistory const & | ) |
|
inlinevirtual |
Reimplemented in Editor.
Definition at line 113 of file editing_context.h.
|
inlinevirtual |
Definition at line 387 of file editing_context.h.
|
protectedpure virtual |
|
protectedpure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
samplepos_t EditingContext::window_event_sample | ( | GdkEvent const * | , |
double * | px = 0 , |
||
double * | py = 0 |
||
) | const |
computes the timeline sample (sample) of an event whose coordinates are in window units (pixels, no scroll offset).
|
inline |
Definition at line 332 of file editing_context.h.
Glib::RefPtr<Gtk::RadioAction> EditingContext::zoom_focus_action | ( | Editing::ZoomFocus | ) |
void EditingContext::zoom_focus_chosen | ( | Editing::ZoomFocus | ) |
void EditingContext::zoom_focus_selection_done | ( | Editing::ZoomFocus | ) |
|
friend |
the adjustment that controls the overall editing vertical scroll position
Definition at line 674 of file editing_context.h.
|
friend |
Definition at line 641 of file editing_context.h.
|
protected |
Definition at line 487 of file editing_context.h.
|
staticprotected |
Definition at line 589 of file editing_context.h.
|
protected |
Definition at line 562 of file editing_context.h.
|
protected |
Definition at line 697 of file editing_context.h.
|
protected |
Definition at line 516 of file editing_context.h.
|
protected |
Definition at line 514 of file editing_context.h.
|
protected |
Definition at line 515 of file editing_context.h.
|
protected |
Definition at line 578 of file editing_context.h.
|
protected |
Definition at line 696 of file editing_context.h.
|
protected |
Definition at line 511 of file editing_context.h.
|
protected |
Definition at line 571 of file editing_context.h.
|
protected |
Definition at line 486 of file editing_context.h.
|
protected |
Definition at line 755 of file editing_context.h.
|
protected |
Definition at line 483 of file editing_context.h.
|
protected |
Definition at line 658 of file editing_context.h.
|
protected |
Definition at line 575 of file editing_context.h.
|
protected |
Definition at line 585 of file editing_context.h.
|
protected |
Definition at line 512 of file editing_context.h.
|
protected |
Definition at line 576 of file editing_context.h.
|
protected |
Definition at line 530 of file editing_context.h.
|
protected |
Definition at line 635 of file editing_context.h.
|
protected |
Definition at line 591 of file editing_context.h.
|
protected |
height of the visible area of the track canvas
Definition at line 637 of file editing_context.h.
|
protected |
Definition at line 636 of file editing_context.h.
|
protected |
Definition at line 594 of file editing_context.h.
|
protected |
Definition at line 797 of file editing_context.h.
|
protected |
Definition at line 796 of file editing_context.h.
|
protected |
Definition at line 745 of file editing_context.h.
|
protected |
Definition at line 744 of file editing_context.h.
|
protected |
Definition at line 741 of file editing_context.h.
|
protected |
Definition at line 742 of file editing_context.h.
|
protected |
Definition at line 743 of file editing_context.h.
|
protected |
Definition at line 630 of file editing_context.h.
|
protected |
Definition at line 629 of file editing_context.h.
|
protected |
Definition at line 628 of file editing_context.h.
|
protected |
Definition at line 587 of file editing_context.h.
|
protected |
Definition at line 702 of file editing_context.h.
|
staticprotected |
Definition at line 660 of file editing_context.h.
|
protected |
Definition at line 491 of file editing_context.h.
|
protected |
Definition at line 763 of file editing_context.h.
|
protected |
Definition at line 584 of file editing_context.h.
|
protected |
Definition at line 694 of file editing_context.h.
|
protected |
Definition at line 537 of file editing_context.h.
|
protected |
Definition at line 535 of file editing_context.h.
|
protected |
Definition at line 536 of file editing_context.h.
|
protected |
Definition at line 524 of file editing_context.h.
|
protected |
Definition at line 522 of file editing_context.h.
|
protected |
Definition at line 523 of file editing_context.h.
|
static |
Definition at line 393 of file editing_context.h.
|
protected |
Definition at line 488 of file editing_context.h.
|
protected |
Definition at line 756 of file editing_context.h.
|
protected |
If the mouse is over a RegionView or one of its child canvas items, this is set up to point to the RegionView. Otherwise it is 0.
Definition at line 761 of file editing_context.h.
|
protected |
Definition at line 757 of file editing_context.h.
|
protected |
Definition at line 788 of file editing_context.h.
|
protected |
Definition at line 547 of file editing_context.h.
|
protected |
Definition at line 551 of file editing_context.h.
|
protected |
Definition at line 693 of file editing_context.h.
|
protected |
Definition at line 768 of file editing_context.h.
|
protected |
Definition at line 767 of file editing_context.h.
|
protected |
Definition at line 532 of file editing_context.h.
|
staticprotected |
Definition at line 502 of file editing_context.h.
|
protected |
Definition at line 676 of file editing_context.h.
|
protected |
Definition at line 499 of file editing_context.h.
|
protected |
Definition at line 500 of file editing_context.h.
|
protected |
Definition at line 490 of file editing_context.h.
|
protected |
Definition at line 684 of file editing_context.h.
|
protected |
Definition at line 681 of file editing_context.h.
|
protected |
Definition at line 683 of file editing_context.h.
|
protected |
Definition at line 680 of file editing_context.h.
|
protected |
Definition at line 705 of file editing_context.h.
|
protected |
Definition at line 682 of file editing_context.h.
|
protected |
Definition at line 678 of file editing_context.h.
|
protected |
Definition at line 679 of file editing_context.h.
PBD::Signal<void()> EditingContext::MouseModeChanged |
Definition at line 396 of file editing_context.h.
|
protected |
Definition at line 546 of file editing_context.h.
|
protected |
Definition at line 703 of file editing_context.h.
|
protected |
Definition at line 747 of file editing_context.h.
|
protected |
Definition at line 733 of file editing_context.h.
|
protected |
Definition at line 545 of file editing_context.h.
|
protected |
Definition at line 497 of file editing_context.h.
|
protected |
Definition at line 498 of file editing_context.h.
|
protected |
Definition at line 639 of file editing_context.h.
|
protected |
Definition at line 795 of file editing_context.h.
ArdourCanvas::Rectangle* EditingContext::rubberband_rect |
Definition at line 413 of file editing_context.h.
|
protected |
Definition at line 593 of file editing_context.h.
|
protected |
Definition at line 583 of file editing_context.h.
|
protected |
Definition at line 489 of file editing_context.h.
|
protected |
Definition at line 692 of file editing_context.h.
|
protected |
Definition at line 564 of file editing_context.h.
PBD::Signal<void()> EditingContext::SnapChanged |
Definition at line 395 of file editing_context.h.
|
protected |
Definition at line 769 of file editing_context.h.
|
protected |
Definition at line 794 of file editing_context.h.
|
protected |
Definition at line 492 of file editing_context.h.
|
protected |
Definition at line 675 of file editing_context.h.
|
protected |
Definition at line 553 of file editing_context.h.
|
protected |
Definition at line 554 of file editing_context.h.
|
protected |
Definition at line 734 of file editing_context.h.
|
protected |
Definition at line 484 of file editing_context.h.
|
protected |
Definition at line 493 of file editing_context.h.
|
protected |
Definition at line 751 of file editing_context.h.
|
protected |
Definition at line 752 of file editing_context.h.
|
protected |
Definition at line 549 of file editing_context.h.
|
protected |
Definition at line 550 of file editing_context.h.
sigc::signal<void> EditingContext::ZoomChanged |
Definition at line 341 of file editing_context.h.
sigc::signal<void> EditingContext::ZoomFocusChanged |
Definition at line 333 of file editing_context.h.