#include <trackcanvas.h>
Public Member Functions | |
| TrackCanvas (MWindow *mwindow, MWindowGUI *gui) | |
| ~TrackCanvas () | |
| int | create_objects () |
| void | resize_event () |
| int | drag_start_event () |
| int | drag_motion_event () |
| int | cursor_leave_event () |
| int | drag_stop_event () |
| int | keypress_event () |
| void | draw_resources (int force=0, int indexes_only=0, Asset *index_asset=0) |
| void | draw_highlight_rectangle (int x, int y, int w, int h) |
| void | draw_highlight_insertion (int x, int y, int w, int h) |
| void | draw_playback_cursor () |
| void | draw_highlighting () |
| void | draw_overlays () |
| void | update_handles () |
| void | get_transition_coords (int64_t &x, int64_t &y, int64_t &w, int64_t &h) |
| void | get_handle_coords (Edit *edit, int64_t &x, int64_t &y, int64_t &w, int64_t &h, int side) |
| void | draw_title (Edit *edit, int64_t edit_x, int64_t edit_y, int64_t edit_w, int64_t edit_h) |
| void | draw_automation () |
| void | draw_inout_points () |
| void | draw_auto (Auto *current, int x, int y, int center_pixel, int zoom_track, int color) |
| void | draw_floatauto (Auto *current, int x, int y, int in_x, int in_y, int out_x, int out_y, int center_pixel, int zoom_track, int color) |
| int | test_auto (Auto *current, int x, int y, int center_pixel, int zoom_track, int cursor_x, int cursor_y, int buttonpress) |
| int | test_floatauto (Auto *current, int x, int y, int in_x, int in_y, int out_x, int out_y, int center_pixel, int zoom_track, int cursor_x, int cursor_y, int buttonpress) |
| void | draw_floatline (int center_pixel, FloatAuto *previous, FloatAuto *current, FloatAutos *autos, double unit_start, double zoom_units, double yscale, int ax, int ay, int ax2, int ay2, int color) |
| int | test_floatline (int center_pixel, FloatAutos *autos, double unit_start, double zoom_units, double yscale, int x1, int x2, int cursor_x, int cursor_y, int buttonpress) |
| void | draw_toggleline (int center_pixel, int ax, int ay, int ax2, int ay2, int color) |
| int | test_toggleline (Autos *autos, int center_pixel, int x1, int y1, int x2, int y2, int cursor_x, int cursor_y, int buttonpress) |
| int | do_keyframes (int cursor_x, int cursor_y, int draw, int buttonpress, int &new_cursor, int &update_cursor, int &rerender) |
| int | do_float_autos (Track *track, Autos *autos, int cursor_x, int cursor_y, int draw, int buttonpress, int color, Auto *&auto_instance) |
| int | do_toggle_autos (Track *track, Autos *autos, int cursor_x, int cursor_y, int draw, int buttonpress, int color, Auto *&auto_instance) |
| int | do_autos (Track *track, Autos *autos, int cursor_x, int cursor_y, int draw, int buttonpress, BC_Pixmap *pixmap, Auto *&auto_instance) |
| int | do_plugin_autos (Track *track, int cursor_x, int cursor_y, int draw, int buttonpress, Plugin *&keyframe_plugin, KeyFrame *&keyframe_instance) |
| void | calculate_viewport (Track *track, double &view_start, double &unit_start, double &view_end, double &unit_end, double &yscale, int ¢er_pixel, double &zoom_sample, double &zoom_units) |
| float | percentage_to_value (float percentage, int is_toggle, Auto *reference) |
| void | calculate_auto_position (double *x, double *y, double *in_x, double *in_y, double *out_x, double *out_y, Auto *current, double unit_start, double zoom_units, double yscale) |
| void | synchronize_autos (float change, Track *skip, FloatAuto *fauto, int fill_gangs) |
| void | draw_brender_start () |
| void | draw_loop_points () |
| void | draw_transitions () |
| void | draw_drag_handle () |
| void | draw_plugins () |
| void | update_edit_handles (Edit *edit, int64_t edit_x, int64_t edit_y, int64_t edit_w, int64_t edit_h) |
| void | update_transitions () |
| void | update_keyframe_handles (Track *track) |
| void | draw (int force=0, int hide_cursor=1) |
| void | draw_indexes (Asset *asset) |
| void | edit_dimensions (Edit *edit, int64_t &x, int64_t &y, int64_t &w, int64_t &h) |
| void | track_dimensions (Track *track, int64_t &x, int64_t &y, int64_t &w, int64_t &h) |
| void | plugin_dimensions (Plugin *plugin, int64_t &x, int64_t &y, int64_t &w, int64_t &h) |
| void | get_pixmap_size (Edit *edit, int64_t edit_x, int64_t edit_w, int64_t &pixmap_x, int64_t &pixmap_w, int64_t &pixmap_h) |
| ResourcePixmap * | create_pixmap (Edit *edit, int64_t edit_x, int64_t pixmap_x, int64_t pixmap_w, int64_t pixmap_h) |
| int | set_index_file (int flash, Asset *asset) |
| void | update_cursor () |
| int | do_edit_handles (int cursor_x, int cursor_y, int button_press, int &redraw, int &rerender) |
| int | do_plugin_handles (int cursor_x, int cursor_y, int button_press, int &redraw, int &rerender) |
| int | do_edits (int cursor_x, int cursor_y, int button_press, int drag_start, int &redraw, int &rerender, int &new_cursor, int &update_cursor) |
| int | do_tracks (int cursor_x, int cursor_y, int button_press) |
| int | test_resources (int cursor_x, int cursor_y) |
| int | do_plugins (int cursor_x, int cursor_y, int drag_start, int button_press, int &redraw, int &rerender) |
| int | do_transitions (int cursor_x, int cursor_y, int button_press, int &new_cursor, int &update_cursor) |
| int | button_press_event () |
| int | button_release_event () |
| int | cursor_motion_event () |
| int | activate () |
| int | deactivate () |
| int | repeat_event (int64_t duration) |
| void | start_dragscroll () |
| void | stop_dragscroll () |
| int | start_selection (double position) |
| int | drag_motion () |
| int | drag_stop () |
| int64_t | get_drop_position (int *is_insertion, Edit *moved_edit, int64_t moved_edit_length) |
| void | end_edithandle_selection () |
| void | end_pluginhandle_selection () |
| double | time_visible () |
| void | update_drag_handle () |
| int | update_drag_edit () |
| int | update_drag_floatauto (int cursor_x, int cursor_y) |
| int | update_drag_toggleauto (int cursor_x, int cursor_y) |
| int | update_drag_auto (int cursor_x, int cursor_y) |
| int | update_drag_pluginauto (int cursor_x, int cursor_y) |
| void | update_drag_caption () |
| int | get_title_h () |
| int | resource_h () |
| void | test_timer () |
| int | button_release () |
| int | draw_playback_cursor (int pixel, int flash=1) |
| int | draw_loop_point (int64_t position, int flash) |
| void | draw_paste_destination () |
| int | draw_floating_handle (int flash) |
Public Attributes | |
| MWindow * | mwindow |
| MWindowGUI * | gui |
| ArrayList< ResourcePixmap * > | resource_pixmaps |
| BC_Pixmap * | background_pixmap |
| BC_DragWindow * | drag_popup |
| BC_Pixmap * | transition_pixmap |
| EditHandles * | edit_handles |
| BC_Pixmap * | keyframe_pixmap |
| BC_Pixmap * | camerakeyframe_pixmap |
| BC_Pixmap * | modekeyframe_pixmap |
| BC_Pixmap * | pankeyframe_pixmap |
| BC_Pixmap * | projectorkeyframe_pixmap |
| BC_Pixmap * | maskkeyframe_pixmap |
| int | active |
| int | drag_scroll |
| int | hourglass_enabled |
| VFrame * | temp_picon |
| Timer * | resource_timer |
Private Member Functions | |
| int | end_translation () |
| int | auto_reposition (int &cursor_x, int &cursor_y, int64_t cursor_position) |
| int | update_selection (int64_t cursor_position) |
| int | update_handle_selection (int64_t cursor_position) |
Private Attributes | |
| int | auto_selected |
| int | translate_selected |
| int | handle_selected |
| int | which_handle |
| int64_t | handle_oldposition |
| int64_t | handle_position |
| int | handle_pixel |
| int | handle_mode |
| int | current_end |
| double | selection_midpoint1 |
| double | selection_midpoint2 |
| int | region_selected |
| int | selection_type |
Definition at line 24 of file trackcanvas.h.
|
||||||||||||
|
Definition at line 60 of file trackcanvas.C. References active, auto_selected, current_end, drag_popup, drag_scroll, handle_pixel, handle_selected, hourglass_enabled, region_selected, resource_timer, selection_midpoint1, selection_midpoint2, selection_type, temp_picon, translate_selected, and which_handle. |
|
|
Definition at line 85 of file trackcanvas.C. References background_pixmap, camerakeyframe_pixmap, edit_handles, keyframe_pixmap, maskkeyframe_pixmap, modekeyframe_pixmap, pankeyframe_pixmap, projectorkeyframe_pixmap, resource_pixmaps, resource_timer, and temp_picon. |
|
|
Definition at line 3466 of file trackcanvas.C. References MainCursor::activate(), active, MWindowGUI::cursor, and gui. Referenced by MWindow::add_audio_track_entry(), MWindow::add_video_track_entry(), button_press_event(), TimeBar::button_press_event(), MWindowGUI::create_objects(), MWindow::goto_end(), MWindow::goto_start(), MWindow::select_all(), MTimeBar::select_label(), TimeBar::select_region(), and MWindow::toggle_label(). |
|
||||||||||||||||
|
Definition at line 5192 of file trackcanvas.C. |
|
|
|
Definition at line 5186 of file trackcanvas.C. |
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 2700 of file trackcanvas.C. References LocalSession::automation_max, LocalSession::automation_min, FloatAuto::control_in_position, FloatAuto::control_in_value, FloatAuto::control_out_position, FloatAuto::control_out_value, MWindow::edl, EDL::local_session, mwindow, Auto::position, and FloatAuto::value. Referenced by do_float_autos(). |
|
||||||||||||||||||||||||||||||||||||||||
|
Definition at line 2642 of file trackcanvas.C. References MWindow::edl, EDL::local_session, mwindow, EDLSession::sample_rate, EDL::session, EDLSession::show_titles, MWindow::theme, Theme::title_bg_data, Track::to_doubleunits(), LocalSession::view_start, Track::y_pixel, LocalSession::zoom_sample, and LocalSession::zoom_track. Referenced by do_autos(), do_float_autos(), do_plugin_autos(), and do_toggle_autos(). |
|
|
Definition at line 102 of file trackcanvas.C. References background_pixmap, Theme::camerakeyframe_data, camerakeyframe_pixmap, draw(), edit_handles, Theme::keyframe_data, keyframe_pixmap, Theme::maskkeyframe_data, maskkeyframe_pixmap, Theme::modekeyframe_data, modekeyframe_pixmap, mwindow, Theme::pankeyframe_data, pankeyframe_pixmap, Theme::projectorkeyframe_data, projectorkeyframe_pixmap, MWindow::theme, and update_cursor(). Referenced by MWindowGUI::create_objects(). |
|
||||||||||||||||||||||||
|
Definition at line 914 of file trackcanvas.C. References Edit::id, mwindow, and resource_pixmaps. Referenced by draw_resources(). |
|
|
Definition at line 307 of file trackcanvas.C. |
|
|
|
Definition at line 3478 of file trackcanvas.C. References active, MWindowGUI::cursor, MainCursor::deactivate(), and gui. Referenced by CPlayback::init_cursor(). |
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
Definition at line 2753 of file trackcanvas.C. References calculate_auto_position(), calculate_viewport(), Autos::default_auto, draw_auto(), draw_floatauto(), draw_floatline(), Auto::position, Track::record, test_floatauto(), and test_floatline(). Referenced by do_keyframes(). |
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
Definition at line 3047 of file trackcanvas.C. References calculate_viewport(), Autos::default_auto, draw_auto(), draw_toggleline(), Auto::position, Track::record, test_auto(), and test_toggleline(). Referenced by do_keyframes(). |
|
||||||||||||||||
|
Definition at line 4506 of file trackcanvas.C. References MWindowGUI::edit_menu, MWindow::edl, gui, mwindow, EDL::session, EDLSession::show_assets, track_dimensions(), Track::track_h, Track::track_w, EDL::tracks, and EditPopup::update(). Referenced by button_press_event(). |
|
||||||||||||||||||||||||
|
Definition at line 4775 of file trackcanvas.C. References EDLSession::auto_conf, edit_dimensions(), Track::edits, MWindow::edl, get_transition_coords(), gui, mwindow, EDL::session, EDLSession::show_assets, EDL::tracks, Edit::transition, MWindowGUI::transition_menu, AutoConf::transitions, TransitionPopup::update(), and MWindowGUI::visible(). Referenced by button_press_event(), and cursor_motion_event(). |
|
|
|
Definition at line 302 of file trackcanvas.C. References drag_motion(). |
|
|
Definition at line 265 of file trackcanvas.C. References MainSession::current_operation, do_edits(), do_plugins(), mwindow, MWindow::session, and update_cursor(). |
|
|
|
Definition at line 317 of file trackcanvas.C. References drag_popup, and drag_stop(). |
|
||||||||||||
|
Definition at line 743 of file trackcanvas.C. References background_pixmap, MWindowGUI::cursor, draw_overlays(), draw_resources(), gui, and MainCursor::hide(). Referenced by MWindow::add_audio_track_entry(), MWindow::add_video_track_entry(), button_release_event(), create_objects(), MWindow::create_objects(), drag_stop(), TrackScroll::handle_event(), SampleScroll::handle_event(), resize_event(), MWindow::samplemovement(), MWindow::trackmovement(), and MWindow::zoom_amp(). |