Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

TrackCanvas Class Reference

#include <trackcanvas.h>

List of all members.

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 &center_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)
ResourcePixmapcreate_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

MWindowmwindow
MWindowGUIgui
ArrayList< ResourcePixmap * > resource_pixmaps
BC_Pixmap * background_pixmap
BC_DragWindow * drag_popup
BC_Pixmap * transition_pixmap
EditHandlesedit_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


Detailed Description

Definition at line 24 of file trackcanvas.h.


Constructor & Destructor Documentation

TrackCanvas::TrackCanvas MWindow mwindow,
MWindowGUI gui
 

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.

TrackCanvas::~TrackCanvas  ) 
 

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.


Member Function Documentation

int TrackCanvas::activate  ) 
 

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().

int TrackCanvas::auto_reposition int &  cursor_x,
int &  cursor_y,
int64_t  cursor_position
[private]
 

Definition at line 5192 of file trackcanvas.C.

int TrackCanvas::button_press_event  ) 
 

Definition at line 4838 of file trackcanvas.C.

References activate(), active, EDLSession::auto_conf, MainSession::current_operation, MWindowGUI::cursor, MWindow::cwindow, do_edit_handles(), do_edits(), do_keyframes(), do_plugin_handles(), do_plugins(), do_tracks(), do_transitions(), draw_overlays(), EDLSession::editing_mode, MWindow::edl, MWindow::expand_sample(), gui, PlayTransport::handle_transport(), MainCursor::hide(), EDL::local_session, MWindowGUI::mbuttons, MWindow::move_down(), MWindow::move_up(), mwindow, MWindowGUI::patchbay, EDLSession::sample_rate, EDL::session, MWindow::session, MainCursor::show(), start_selection(), test_resources(), MWindowGUI::timebar, AutoConf::transitions, MButtons::transport, MainSession::trim_edits, ZoomBar::update(), PatchBay::update(), CWindow::update(), update_cursor(), TimeBar::update_highlights(), MWindow::update_plugin_guis(), LocalSession::view_start, MWindow::zoom_in_sample(), LocalSession::zoom_sample, and MWindowGUI::zoombar.

int TrackCanvas::button_release  ) 
 

Definition at line 5186 of file trackcanvas.C.

int TrackCanvas::button_release_event  ) 
 

Definition at line 4208 of file trackcanvas.C.

References _, Auto::autos, MainSession::current_operation, cursor_motion_event(), MainSession::drag_auto, MainSession::drag_handle, drag_scroll, draw(), draw_overlays(), end_edithandle_selection(), end_pluginhandle_selection(), mwindow, Autos::remove_nonsequential(), MWindow::session, synchronize_autos(), MWindow::undo, and MainUndo::update_undo().

void TrackCanvas::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
 

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().

void TrackCanvas::calculate_viewport Track track,
double &  view_start,
double &  unit_start,
double &  view_end,
double &  unit_end,
double &  yscale,
int &  center_pixel,
double &  zoom_sample,
double &  zoom_units
 

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().

int TrackCanvas::create_objects  ) 
 

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().

ResourcePixmap * TrackCanvas::create_pixmap Edit edit,
int64_t  edit_x,
int64_t  pixmap_x,
int64_t  pixmap_w,
int64_t  pixmap_h
 

Definition at line 914 of file trackcanvas.C.

References Edit::id, mwindow, and resource_pixmaps.

Referenced by draw_resources().

int TrackCanvas::cursor_leave_event  ) 
 

Definition at line 307 of file trackcanvas.C.

int TrackCanvas::cursor_motion_event  ) 
 

Definition at line 3841 of file trackcanvas.C.

References EDL::align_to_frame(), MainSession::current_operation, MWindowGUI::cursor, MWindow::cwindow, do_edit_handles(), do_edits(), do_keyframes(), do_plugin_handles(), do_transitions(), MainSession::drag_origin_x, drag_scroll, MainCursor::draw(), draw_overlays(), EDLSession::editing_mode, MWindow::edl, gui, MainCursor::hide(), PlaybackEngine::is_playing_back, EDL::local_session, MWindowGUI::mainclock, mwindow, MWindowGUI::patchbay, CWindow::playback_engine, MWindow::restart_brender(), EDLSession::sample_rate, selection_midpoint1, MWindow::session, EDL::session, LocalSession::set_selectionend(), LocalSession::set_selectionstart(), start_dragscroll(), stop_dragscroll(), MWindow::sync_parameters(), ZoomBar::update(), MainClock::update(), PatchBay::update(), CWindow::update(), update_cursor(), update_drag_floatauto(), update_drag_handle(), update_drag_pluginauto(), update_drag_toggleauto(), MWindow::update_plugin_guis(), LocalSession::view_start, LocalSession::zoom_sample, and MWindowGUI::zoombar.

Referenced by button_release_event().

int TrackCanvas::deactivate  ) 
 

Definition at line 3478 of file trackcanvas.C.

References active, MWindowGUI::cursor, MainCursor::deactivate(), and gui.

Referenced by CPlayback::init_cursor().

int TrackCanvas::do_autos Track track,
Autos autos,
int  cursor_x,
int  cursor_y,
int  draw,
int  buttonpress,
BC_Pixmap *  pixmap,
Auto *&  auto_instance
 

Definition at line 3216 of file trackcanvas.C.

References calculate_viewport(), MainSession::drag_auto, MainSession::drag_origin_x, MainSession::drag_origin_y, MainSession::drag_start_position, MWindow::edl, Track::from_units(), LocalSession::get_selectionend(), LocalSession::get_selectionstart(), EDL::local_session, mwindow, Auto::position, MWindow::session, LocalSession::set_selectionend(), LocalSession::set_selectionstart(), and Autos::track.

Referenced by do_keyframes().

int TrackCanvas::do_edit_handles int  cursor_x,
int  cursor_y,
int  button_press,
int &  redraw,
int &  rerender
 

Definition at line 4313 of file trackcanvas.C.

References MainSession::current_operation, MWindowGUI::cursor, MWindow::cwindow, MainSession::drag_button, MainSession::drag_edit, MainSession::drag_handle, MainSession::drag_origin_x, MainSession::drag_origin_y, MainSession::drag_position, MainSession::drag_start, MainCursor::draw(), draw_overlays(), edit_dimensions(), Track::edits, MWindow::edl, Track::from_units(), gui, MainCursor::hide(), Edit::length, mwindow, MWindow::session, EDL::session, EDLSession::show_assets, start_selection(), Edit::startproject, MWindowGUI::timebar, Edit::track, EDL::tracks, ZoomBar::update(), CWindow::update(), TimeBar::update_highlights(), and MWindowGUI::zoombar.

Referenced by button_press_event(), and cursor_motion_event().

int TrackCanvas::do_edits int  cursor_x,
int  cursor_y,
int  button_press,
int  drag_start,
int &  redraw,
int &  rerender,
int &  new_cursor,
int &  update_cursor
 

Definition at line 4536 of file trackcanvas.C.

References EDL::align_to_frame(), MainSession::current_operation, EDLSession::cursor_on_frames, MainSession::drag_edit, MainSession::drag_edits, MainSession::drag_origin_x, MainSession::drag_origin_y, drag_popup, MainSession::drag_position, edit_dimensions(), EDLSession::editing_mode, Track::edits, MWindow::edl, Track::from_units(), Tracks::get_affected_edits(), LocalSession::get_selectionend(), LocalSession::get_selectionstart(), gui, Edit::length, EDL::local_session, mwindow, Track::record, EDLSession::sample_rate, MWindow::session, EDL::session, LocalSession::set_selectionend(), LocalSession::set_selectionstart(), EDLSession::show_assets, Edit::startproject, MWindow::theme, Edit::track, EDL::tracks, LocalSession::view_start, and LocalSession::zoom_sample.

Referenced by button_press_event(), cursor_motion_event(), and drag_start_event().

int TrackCanvas::do_float_autos Track track,
Autos autos,
int  cursor_x,
int  cursor_y,
int  draw,
int  buttonpress,
int  color,
Auto *&  auto_instance
 

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().

int TrackCanvas::do_keyframes int  cursor_x,
int  cursor_y,
int  draw,
int  buttonpress,
int &  new_cursor,
int &  update_cursor,
int &  rerender
 

Definition at line 1945 of file trackcanvas.C.

References auto_colors, EDLSession::auto_conf, auto_operations, Track::automation, AutoConf::autos, Automation::autos, MainSession::current_operation, do_autos(), do_float_autos(), do_plugin_autos(), do_toggle_autos(), MainSession::drag_auto, MWindow::edl, Autos::get_type(), gui, MWindowGUI::keyframe_menu, maskkeyframe_pixmap, modekeyframe_pixmap, mwindow, pankeyframe_pixmap, AutoConf::plugins, pre_auto_operations, MWindow::session, EDL::session, EDLSession::show_assets, synchronize_autos(), EDL::tracks, KeyframePopup::update(), and update_drag_caption().

Referenced by button_press_event(), cursor_motion_event(), and draw_overlays().

int TrackCanvas::do_plugin_autos Track track,
int  cursor_x,
int  cursor_y,
int  draw,
int  buttonpress,
Plugin *&  keyframe_plugin,
KeyFrame *&  keyframe_instance
 

Definition at line 3302 of file trackcanvas.C.

References calculate_viewport(), MainSession::drag_auto, MainSession::drag_origin_x, MainSession::drag_origin_y, MainSession::drag_start_position, MWindow::edl, Track::expand_view, Track::from_units(), LocalSession::get_selectionend(), LocalSession::get_selectionstart(), keyframe_pixmap, Plugin::keyframes, EDL::local_session, mwindow, Theme::plugin_bg_data, Track::plugin_set, Auto::position, MWindow::session, EDL::session, LocalSession::set_selectionend(), LocalSession::set_selectionstart(), EDLSession::show_titles, MWindow::theme, Theme::title_bg_data, Track::y_pixel, and LocalSession::zoom_track.

Referenced by do_keyframes().

int TrackCanvas::do_plugin_handles int  cursor_x,
int  cursor_y,
int  button_press,
int &  redraw,
int &  rerender
 

Definition at line 4408 of file trackcanvas.C.

References MainSession::current_operation, MWindowGUI::cursor, MWindow::cwindow, MainSession::drag_button, MainSession::drag_handle, MainSession::drag_origin_x, MainSession::drag_origin_y, MainSession::drag_plugin, MainSession::drag_position, MainSession::drag_start, MainCursor::draw(), draw_overlays(), MWindow::edl, Track::from_units(), gui, MainCursor::hide(), Edit::length, mwindow, plugin_dimensions(), Track::plugin_set, MWindow::session, EDL::session, EDLSession::show_assets, start_selection(), Edit::startproject, MWindowGUI::timebar, Edit::track, EDL::tracks, MainSession::trim_edits, ZoomBar::update(), CWindow::update(), TimeBar::update_highlights(), and MWindowGUI::zoombar.

Referenced by button_press_event(), and cursor_motion_event().

int TrackCanvas::do_plugins int  cursor_x,
int  cursor_y,
int  drag_start,
int  button_press,
int &  redraw,
int &  rerender
 

Definition at line 4640 of file trackcanvas.C.

References EDL::align_to_frame(), MainSession::current_operation, EDLSession::cursor_on_frames, Track::data_type, MainSession::drag_plugin, drag_popup, EDLSession::editing_mode, MWindow::edl, Track::expand_view, Track::from_units(), LocalSession::get_selectionend(), LocalSession::get_selectionstart(), gui, Edit::length, EDL::local_session, mwindow, PluginServer::picon, plugin_dimensions(), MWindowGUI::plugin_menu, Track::plugin_set, Plugin::plugin_type, Track::record, MWindow::scan_plugindb(), MWindow::session, EDL::session, LocalSession::set_selectionend(), LocalSession::set_selectionstart(), EDLSession::show_assets, Edit::startproject, MWindow::theme, Plugin::title, Edit::track, TRACK_AUDIO, TRACK_VIDEO, EDL::tracks, PluginPopup::update(), and MWindowGUI::visible().

Referenced by button_press_event(), and drag_start_event().

int TrackCanvas::do_toggle_autos Track track,
Autos autos,
int  cursor_x,
int  cursor_y,
int  draw,
int  buttonpress,
int  color,
Auto *&  auto_instance
 

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().

int TrackCanvas::do_tracks int  cursor_x,
int  cursor_y,
int  button_press
 

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().

int TrackCanvas::do_transitions int  cursor_x,
int  cursor_y,
int  button_press,
int &  new_cursor,
int &  update_cursor
 

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().

int TrackCanvas::drag_motion  ) 
 

Definition at line 135 of file trackcanvas.C.

References MainSession::current_operation, drag_popup, draw_overlays(), edit_dimensions(), MainSession::edit_highlighted, Track::edits, MWindow::edl, MWindow::gui, PatchBay::is_over_track(), mwindow, MWindowGUI::patchbay, plugin_dimensions(), MainSession::plugin_highlighted, Plugin::plugin_set, Track::plugin_set, MainSession::pluginset_highlighted, MWindow::session, track_dimensions(), Track::track_h, MainSession::track_highlighted, Track::track_w, and EDL::tracks.

Referenced by MWindowGUI::drag_motion(), and drag_motion_event().

int TrackCanvas::drag_motion_event  ) 
 

Definition at line 302 of file trackcanvas.C.

References drag_motion().

int TrackCanvas::drag_start_event  ) 
 

Definition at line 265 of file trackcanvas.C.

References MainSession::current_operation, do_edits(), do_plugins(), mwindow, MWindow::session, and update_cursor().

int TrackCanvas::drag_stop  ) 
 

Definition at line 330 of file trackcanvas.C.

References Asset::audio_data, Asset::audio_length, Tracks::clear(), MainSession::current_operation, MWindowGUI::cursor, Track::data_type, MainSession::drag_assets, MainSession::drag_clips, MainSession::drag_edit, MainSession::drag_edits, MainSession::drag_plugin, draw(), MainSession::edit_highlighted, MWindow::edl, Asset::frame_rate, Track::from_units(), get_drop_position(), Track::get_length(), MWindowGUI::get_scrollbars(), LocalSession::get_selectionend(), LocalSession::get_selectionstart(), gui, MWindow::insert_effects_canvas(), Edit::length, Edits::length(), EDL::local_session, MWindow::move_edits(), MWindow::move_effect(), mwindow, MWindow::paste_assets(), MWindow::paste_transition(), MWindowGUI::patchbay, MainSession::plugin_highlighted, Track::plugin_set, Plugin::plugin_set, MainSession::pluginset_highlighted, Asset::sample_rate, MWindow::session, Edit::startproject, MWindow::theme, Track::to_units(), Tracks::total_length(), Edit::track, TRACK_AUDIO, MainSession::track_highlighted, TRACK_VIDEO, EDL::tracks, MainCursor::update(), PatchBay::update(), Tracks::update_y_pixels(), Asset::video_data, and Asset::video_length.

Referenced by MWindowGUI::drag_stop(), and drag_stop_event().

int TrackCanvas::drag_stop_event  ) 
 

Definition at line 317 of file trackcanvas.C.

References drag_popup, and drag_stop().

void TrackCanvas::draw int  force = 0,
int  hide_cursor = 1
 

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().

void TrackCanvas::draw_auto Auto current,
int  x,
int  y,
int  center_pixel,
int  zoom_track,
int  color
 

Definition at line 2132 of file trackcanvas.C.

Referenced by do_float_autos(), and do_toggle_autos().

void TrackCanvas::draw_automation  ) 
 

Definition at line 5175 of file trackcanvas.C.

Referenced by draw_indexes().

void TrackCanvas::draw_brender_start  ) 
 

Definition at line 1875 of file trackcanvas.C.

References EDLSession::brender_start, MWindow::edl, EDL::local_session, mwindow, MWindow::preferences, EDLSession::sample_rate, EDL::session, Preferences::use_brender, LocalSession::view_start, MWindowGUI::visible(), and LocalSession::zoom_sample.

Referenced by draw_overlays().

void TrackCanvas::draw_drag_handle  ) 
 

Definition at line 1750 of file trackcanvas.C.

References MainSession::current_operation, MainSession::drag_position, MWindow::edl, EDL::local_session, mwindow, EDLSession::sample_rate, EDL::session, MWindow::session, LocalSession::view_start, and LocalSession::zoom_sample.

Referenced by draw_overlays().

void TrackCanvas::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
 

Definition at line 2156 of file trackcanvas.C.

References CLAMP.

Referenced by do_float_autos().

int TrackCanvas::draw_floating_handle int  flash  ) 
 

Definition at line 5198 of file trackcanvas.C.

void TrackCanvas::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
 

Definition at line 2387 of file trackcanvas.C.

References LocalSession::automation_max, LocalSession::automation_min, MWindow::edl, FloatAutos::get_value(), EDL::local_session, and mwindow.

Referenced by do_float_autos().

void TrackCanvas::draw_highlight_insertion int  x,
int  y,
int  w,
int  h
 

Definition at line 1326 of file trackcanvas.C.

References MIN.

Referenced by draw_paste_destination().

void TrackCanvas::draw_highlight_rectangle int  x,
int  y,
int  w,
int  h
 

Definition at line 1285 of file trackcanvas.C.

References MIN.

Referenced by draw_highlighting(), and draw_paste_destination().

void TrackCanvas::draw_highlighting  ) 
 

Definition at line 1439 of file trackcanvas.C.

References MainSession::current_operation, Track::data_type, MainSession::drag_plugin, draw_highlight_rectangle(), draw_paste_destination(), edit_dimensions(), MainSession::edit_highlighted, MWindow::edl, EDLSession::frame_rate, Track::get_length(), LocalSession::get_selectionend(), LocalSession::get_selectionstart(), get_transition_coords(), Edit::length, EDL::local_session, mwindow, plugin_dimensions(), MainSession::plugin_highlighted, MainSession::pluginset_highlighted, EDLSession::sample_rate, EDL::session, MWindow::session, TRACK_AUDIO, track_dimensions(), Track::track_h, MainSession::track_highlighted, TRACK_VIDEO, Track::track_w, LocalSession::view_start, MWindowGUI::visible(), and LocalSession::zoom_sample.

Referenced by draw_overlays().

void TrackCanvas::draw_indexes Asset asset  ) 
 

Definition at line 788 of file trackcanvas.C.

References draw_automation(), draw_overlays(), draw_resources(), MWindow::edl, Asset::index_zoom, EDL::local_session, mwindow, and LocalSession::zoom_sample.

Referenced by IndexFile::redraw_edits().

void TrackCanvas::draw_inout_points  ) 
 

Definition at line 1745 of file trackcanvas.C.

Referenced by draw_overlays().

int TrackCanvas::draw_loop_point int64_t  position,
int  flash
 

Definition at line 5203 of file trackcanvas.C.

void TrackCanvas::draw_loop_points  ) 
 

Definition at line 1840 of file trackcanvas.C.

References MWindow::edl, EDL::local_session, LocalSession::loop_end, LocalSession::loop_playback, LocalSession::loop_start, mwindow, EDLSession::sample_rate, EDL::session, LocalSession::view_start, MWindowGUI::visible(), and LocalSession::zoom_sample.

Referenced by draw_overlays().

void TrackCanvas::draw_overlays  ) 
 

Definition at line 3407 of file trackcanvas.C.

References EDLSession::auto_conf, background_pixmap, MWindowGUI::cursor, do_keyframes(), draw_brender_start(), draw_drag_handle(), draw_highlighting(), draw_inout_points(), draw_loop_points(), draw_playback_cursor(), draw_plugins(), draw_transitions(), MWindow::edl, gui, mwindow, MainCursor::restore(), EDL::session, AutoConf::transitions, and update_cursor().

Referenced by PreferencesThread::apply_settings(), button_press_event(), MutePatch::button_press_event(), button_release_event(), CWindow::calculate_affected_auto(), MWindow::clear_automation(), MWindow::clear_default_keyframe(), cursor_motion_event(), PatchBay::cursor_motion_event(), CWindowCanvas::cursor_motion_event(), MWindow::cut_automation(), MWindow::cut_default_keyframe(), do_edit_handles(), do_plugin_handles(), drag_motion(), draw(), draw_indexes(), MWindow::expand_autos(), MWindow::fit_autos(), VModePatch::handle_event(), VFadePatch::handle_event(), PluginAutomation::handle_event(), ShowAutomation::handle_event(), ShowTransitions::handle_event(), TitlePatch::handle_event(), GWindowToggle::handle_event(), CWindowProjectorGUI::handle_event(), CWindowCameraGUI::handle_event(), APanPatch::handle_event(), AFadePatch::handle_event(), MWindow::paste_automation(), MWindow::paste_default_keyframe(), MWindow::set_brender_start(), MWindow::shrink_autos(), PluginServer::sync_parameters(), and MWindow::toggle_loop_playback().

void TrackCanvas::draw_paste_destination  ) 
 

Definition at line 1048 of file trackcanvas.C.

References Asset::audio_length, Asset::channels, MainSession::current_operation, Track::data_type, MainSession::drag_assets, MainSession::drag_clips, MainSession::drag_edit, MainSession::drag_edits, draw_highlight_insertion(), draw_highlight_rectangle(), MainSession::edit_highlighted, Track::edits, MWindow::edl, Asset::frame_rate, Track::from_units(), get_drop_position(), Asset::layers, Edit::length, Edits::length(), EDL::local_session, mwindow, Track::record, EDLSession::sample_rate, Asset::sample_rate, EDL::session, MWindow::session, Edit::startproject, MWindow::theme, Track::to_units(), Tracks::total_audio_tracks(), Tracks::total_length(), Tracks::total_video_tracks(), Edit::track, TRACK_AUDIO, MainSession::track_highlighted, TRACK_VIDEO, EDL::tracks, Track::vertical_span(), Asset::video_data, Asset::video_length, LocalSession::view_start, Track::y_pixel, and LocalSession::zoom_sample.

Referenced by draw_highlighting().

int TrackCanvas::draw_playback_cursor int  pixel,
int  flash = 1
 

Definition at line 5208 of file trackcanvas.C.

void TrackCanvas::draw_playback_cursor  ) 
 

Definition at line 1384 of file trackcanvas.C.

Referenced by draw_overlays().

void TrackCanvas::draw_plugins  ) 
 

Definition at line 1672 of file trackcanvas.C.

References Plugin::calculate_title(), MWindow::edl, Track::expand_view, left_margin, mwindow, Theme::plugin_bg_data, plugin_dimensions(), Track::plugin_set, Plugin::plugin_type, EDL::session, EDLSession::show_assets, MWindow::theme, EDL::tracks, and MWindowGUI::visible().

Referenced by draw_overlays().

void TrackCanvas::draw_resources int  force = 0,
int  indexes_only = 0,
Asset index_asset = 0
 

Definition at line 802 of file trackcanvas.C.

References Edit::asset, background_pixmap, create_pixmap(), Track::data_type, ResourcePixmap::draw_data(), edit_dimensions(), ResourcePixmap::edit_id, Track::edits, MWindow::edl, get_pixmap_size(), hourglass_enabled, Edit::id, mwindow, Asset::path, ResourcePixmap::pixmap_h, ResourcePixmap::pixmap_w, ResourcePixmap::pixmap_x, ResourcePixmap::resize(), resource_pixmaps, resource_timer, EDL::session, EDLSession::show_assets, Asset::test_path(), Edit::track, TRACK_AUDIO, EDL::tracks, ResourcePixmap::visible, MWindowGUI::visible(), and Track::y_pixel.

Referenced by draw(), and draw_indexes().

void TrackCanvas::draw_title Edit edit,
int64_t  edit_x,
int64_t  edit_y,
int64_t  edit_w,
int64_t  edit_h
 

void TrackCanvas::draw_toggleline int  center_pixel,
int  ax,
int  ay,
int  ax2,
int  ay2,
int  color
 

Definition at line 2577 of file trackcanvas.C.

Referenced by do_toggle_autos().

void TrackCanvas::draw_transitions  ) 
 

Definition at line 1771 of file trackcanvas.C.

References Track::data_type, edit_dimensions(), Track::edits, MWindow::edl, Track::from_units(), get_transition_coords(), left_margin, Edit::length, EDL::local_session, mwindow, PluginServer::picon, Theme::plugin_bg_data, EDLSession::sample_rate, MWindow::scan_plugindb(), EDL::session, EDLSession::show_assets, EDLSession::show_titles, MWindow::theme, Plugin::title, Theme::title_bg_data, Edit::track, EDL::tracks, Edit::transition, MWindowGUI::visible(), and LocalSession::zoom_sample.

Referenced by draw_overlays().

void TrackCanvas::edit_dimensions Edit edit,
int64_t &  x,
int64_t &  y,
int64_t &  w,
int64_t &  h
 

Definition at line 1009 of file trackcanvas.C.

References Edit::edits, MWindow::edl, Track::from_units(), Edit::length, EDL::local_session, mwindow, resource_h(), EDLSession::sample_rate, EDL::session, EDLSession::show_titles, Edit::startproject, MWindow::theme, Theme::title_bg_data, Edits::track, Edit::track, LocalSession::view_start, Track::y_pixel, and LocalSession::zoom_sample.

Referenced by do_edit_handles(), do_edits(), do_transitions(), drag_motion(), draw_highlighting(), draw_resources(), draw_transitions(), get_drop_position(), get_handle_coords(), and TransitionHandles::update().

void TrackCanvas::end_edithandle_selection  ) 
 

Definition at line 5117 of file trackcanvas.C.

References MWindow::modify_edithandles(), and mwindow.

Referenced by button_release_event().

void TrackCanvas::end_pluginhandle_selection  ) 
 

Definition at line 5122 of file trackcanvas.C.

References MWindow::modify_pluginhandles(), and mwindow.

Referenced by button_release_event().

int TrackCanvas::end_translation  )  [private]
 

Definition at line 5219 of file trackcanvas.C.

int64_t TrackCanvas::get_drop_position int *  is_insertion,
Edit moved_edit,
int64_t  moved_edit_length
 

Definition at line 595 of file trackcanvas.C.

References Edit::asset, MainSession::drag_position, edit_dimensions(), Track::edits, MWindow::edl, Track::from_units(), Edit::length, EDL::local_session, mwindow, EDLSession::sample_rate, MWindow::session, EDL::session, Edit::startproject, Track::to_units(), Edit::track, MainSession::track_highlighted, LocalSession::view_start, and LocalSession::zoom_sample.

Referenced by drag_stop(), and draw_paste_destination().

void TrackCanvas::get_handle_coords Edit edit,
int64_t &  x,
int64_t &  y,
int64_t &  w,
int64_t &  h,
int  side
 

Definition at line 1394 of file trackcanvas.C.

References edit_dimensions(), Theme::edithandlein_data, MWindow::edl, mwindow, EDL::session, EDLSession::show_titles, MWindow::theme, and Theme::title_bg_data.

Referenced by EditHandles::update().

void TrackCanvas::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
 

Definition at line 947 of file trackcanvas.C.

References MWindow::edl, EDL::local_session, mwindow, EDL::session, EDLSession::show_titles, MWindow::theme, Theme::title_bg_data, and LocalSession::zoom_track.

Referenced by draw_resources().

int TrackCanvas::get_title_h  ) 
 

void TrackCanvas::get_transition_coords int64_t &  x,
int64_t &  y,
int64_t &  w,
int64_t &  h
 

Definition at line 1419 of file trackcanvas.C.

References MWindow::edl, mwindow, EDL::session, EDLSession::show_titles, MWindow::theme, and Theme::title_bg_data.

Referenced by do_transitions(), draw_highlighting(), draw_transitions(), and TransitionHandles::update().

int TrackCanvas::keypress_event  ) 
 

Definition at line 127 of file trackcanvas.C.

float TrackCanvas::percentage_to_value float  percentage,
int  is_toggle,
Auto reference
 

Definition at line 2671 of file trackcanvas.C.

References LocalSession::automation_max, LocalSession::automation_min, MWindow::edl, EDL::local_session, mwindow, and FloatAuto::value.

Referenced by update_drag_floatauto(), and update_drag_toggleauto().

void TrackCanvas::plugin_dimensions Plugin plugin,
int64_t &  x,
int64_t &  y,
int64_t &  w,
int64_t &  h
 

Definition at line 1262 of file trackcanvas.C.

References MWindow::edl, Track::from_units(), PluginSet::get_number(), Edit::length, EDL::local_session, mwindow, Theme::plugin_bg_data, Plugin::plugin_set, EDLSession::sample_rate, EDL::session, EDLSession::show_titles, Edit::startproject, MWindow::theme, Theme::title_bg_data, Edit::track, LocalSession::view_start, Track::y_pixel, LocalSession::zoom_sample, and LocalSession::zoom_track.

Referenced by do_plugin_handles(), do_plugins(), drag_motion(), draw_highlighting(), and draw_plugins().

int TrackCanvas::repeat_event int64_t  duration  ) 
 

Definition at line 4116 of file trackcanvas.C.

References EDL::align_to_frame(), MainSession::current_operation, MWindow::cwindow, drag_scroll, MWindow::edl, gui, EDL::local_session, mwindow, MWindowGUI::patchbay, EDLSession::sample_rate, MWindow::samplemovement(), selection_midpoint1, EDL::session, MWindow::session, LocalSession::set_selectionend(), LocalSession::set_selectionstart(), LocalSession::track_start, MWindow::trackmovement(), PatchBay::update(), CWindow::update(), MWindow::update_plugin_guis(), LocalSession::view_start, and LocalSession::zoom_sample.

void TrackCanvas::resize_event  ) 
 

Definition at line 119 of file trackcanvas.C.

References draw().

Referenced by MWindowGUI::resize_event().

int TrackCanvas::resource_h  ) 
 

Definition at line 1280 of file trackcanvas.C.

References MWindow::edl, EDL::local_session, mwindow, and LocalSession::zoom_track.

Referenced by edit_dimensions().

int TrackCanvas::set_index_file int  flash,
Asset asset
 

Definition at line 5180 of file trackcanvas.C.

void TrackCanvas::start_dragscroll  ) 
 

Definition at line 4096 of file trackcanvas.C.

References drag_scroll.

Referenced by cursor_motion_event(), and TimeBar::cursor_motion_event().

int TrackCanvas::start_selection double  position  ) 
 

Definition at line 5078 of file trackcanvas.C.

References EDL::align_to_frame(), MWindow::edl, LocalSession::get_selectionend(), LocalSession::get_selectionstart(), EDL::local_session, mwindow, selection_midpoint1, LocalSession::set_selectionend(), and LocalSession::set_selectionstart().

Referenced by button_press_event(), do_edit_handles(), and do_plugin_handles().

void TrackCanvas::stop_dragscroll  ) 
 

Definition at line 4106 of file trackcanvas.C.

References drag_scroll.

Referenced by TimeBar::button_release_event(), cursor_motion_event(), and TimeBar::cursor_motion_event().

void TrackCanvas::synchronize_autos float  change,
Track skip,
FloatAuto fauto,
int  fill_gangs
 

Definition at line 2441 of file trackcanvas.C.

References Track::automation, Auto::autos, Automation::autos, CLAMP, FloatAuto::control_in_position, FloatAuto::control_in_value, FloatAuto::control_out_position, FloatAuto::control_out_value, Track::data_type, MainSession::drag_auto_gang, MWindow::edl, Track::from_units(), Track::gang, Autos::get_auto_at_position(), FloatAutos::get_value(), Autos::insert_auto(), mwindow, Auto::position, Track::record, Autos::remove_nonsequential(), MWindow::session, TRACK_AUDIO, EDL::tracks, and FloatAuto::value.

Referenced by button_release_event(), do_keyframes(), and update_drag_floatauto().

int TrackCanvas::test_auto Auto current,
int  x,
int  y,
int  center_pixel,
int  zoom_track,
int  cursor_x,
int  cursor_y,
int  buttonpress
 

Definition at line 2231 of file trackcanvas.C.

References MainSession::drag_auto, MainSession::drag_origin_x, MainSession::drag_origin_y, MainSession::drag_start_percentage, MainSession::drag_start_position, mwindow, Auto::position, MWindow::session, and Auto::value_to_percentage().

Referenced by do_toggle_autos().

int TrackCanvas::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
 

Definition at line 2268 of file trackcanvas.C.

References MainSession::drag_auto, MainSession::drag_handle, MainSession::drag_origin_x, MainSession::drag_origin_y, MainSession::drag_start_percentage, MainSession::drag_start_position, Auto::invalue_to_percentage(), mwindow, Auto::outvalue_to_percentage(), Auto::position, MWindow::session, and Auto::value_to_percentage().

Referenced by do_float_autos().

int TrackCanvas::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
 

Definition at line 2524 of file trackcanvas.C.

References LocalSession::automation_max, LocalSession::automation_min, MainSession::drag_auto, MainSession::drag_handle, MainSession::drag_origin_x, MainSession::drag_origin_y, MainSession::drag_start_percentage, MainSession::drag_start_position, MWindow::edl, FloatAutos::get_value(), Autos::insert_auto(), EDL::local_session, mwindow, Auto::position, MWindow::session, and Auto::value_to_percentage().

Referenced by do_float_autos().

int TrackCanvas::test_resources int  cursor_x,
int  cursor_y
 

Definition at line 4635 of file trackcanvas.C.

Referenced by button_press_event().

void TrackCanvas::test_timer  ) 
 

Definition at line 777 of file trackcanvas.C.

References hourglass_enabled, and resource_timer.

Referenced by ResourcePixmap::draw_audio_source(), and ResourcePixmap::draw_video_resource().

int TrackCanvas::test_toggleline Autos autos,
int  center_pixel,
int  x1,
int  y1,
int  x2,
int  y2,
int  cursor_x,
int  cursor_y,
int  buttonpress
 

Definition at line 2598 of file trackcanvas.C.

References MainSession::drag_auto, MainSession::drag_origin_x, MainSession::drag_origin_y, MainSession::drag_start_percentage, MainSession::drag_start_position, MWindow::edl, Autos::insert_auto(), EDL::local_session, mwindow, Auto::position, EDLSession::sample_rate, MWindow::session, EDL::session, Track::to_units(), Autos::track, Auto::value_to_percentage(), LocalSession::view_start, and LocalSession::zoom_sample.

Referenced by do_toggle_autos().

double TrackCanvas::time_visible  ) 
 

Definition at line 5128 of file trackcanvas.C.

References MWindow::edl, EDL::local_session, mwindow, EDLSession::sample_rate, EDL::session, and LocalSession::zoom_sample.

Referenced by MWindow::next_label(), and MWindow::prev_label().

void TrackCanvas::track_dimensions Track track,
int64_t &  x,
int64_t &  y,
int64_t &  w,
int64_t &  h
 

Definition at line 1039 of file trackcanvas.C.

References mwindow, MWindow::theme, Track::vertical_span(), and Track::y_pixel.

Referenced by do_tracks(), drag_motion(), draw_highlighting(), and MWindowGUI::keypress_event().

void TrackCanvas::update_cursor  ) 
 

Definition at line 767 of file trackcanvas.C.

References EDLSession::editing_mode, MWindow::edl, mwindow, and EDL::session.

Referenced by button_press_event(), create_objects(), cursor_motion_event(), drag_start_event(), draw_overlays(), and MWindow::set_editing_mode().

int TrackCanvas::update_drag_auto int  cursor_x,
int  cursor_y
 

Definition at line 3718 of file trackcanvas.C.

References Auto::autos, MainSession::drag_auto, MWindow::edl, EDLSession::frame_rate, EDLSession::frames_per_foot, Track::from_units(), LocalSession::get_selectionend(), LocalSession::get_selectionstart(), gui, EDL::local_session, mwindow, Auto::position, EDLSession::sample_rate, EDL::session, MWindow::session, LocalSession::set_selectionend(), LocalSession::set_selectionstart(), MWindowGUI::show_message(), EDLSession::time_format, Autos::track, and UPDATE_DRAG_HEAD.

void TrackCanvas::update_drag_caption  ) 
 

Definition at line 3829 of file trackcanvas.C.

References MainSession::current_operation, mwindow, and MWindow::session.

Referenced by do_keyframes().

int TrackCanvas::update_drag_edit  ) 
 

Definition at line 3511 of file trackcanvas.C.

int TrackCanvas::update_drag_floatauto int  cursor_x,
int  cursor_y
 

Definition at line 3564 of file trackcanvas.C.

References Auto::autos, FloatAuto::control_in_position, FloatAuto::control_in_value, FloatAuto::control_out_position, FloatAuto::control_out_value, MainSession::drag_auto, MainSession::drag_handle, MWindow::edl, EDLSession::frame_rate, EDLSession::frames_per_foot, Track::from_units(), gui, MIN, mwindow, percentage_to_value(), Auto::position, EDLSession::sample_rate, EDL::session, MWindow::session, MWindowGUI::show_message(), synchronize_autos(), EDLSession::time_format, Autos::track, UPDATE_DRAG_HEAD, and FloatAuto::value.

Referenced by cursor_motion_event().

void TrackCanvas::update_drag_handle  ) 
 

Definition at line 3489 of file trackcanvas.C.

References EDL::align_to_frame(), MainSession::drag_position, MWindow::edl, gui, EDL::local_session, MWindowGUI::mainclock, mwindow, EDLSession::sample_rate, MWindow::session, EDL::session, MainClock::update(), LocalSession::view_start, and LocalSession::zoom_sample.

Referenced by cursor_motion_event().

int TrackCanvas::update_drag_pluginauto int  cursor_x,
int  cursor_y
 

Definition at line 3759 of file trackcanvas.C.

References Auto::autos, MainSession::drag_auto, MWindow::edl, EDLSession::frame_rate, EDLSession::frames_per_foot, Track::from_units(), LocalSession::get_selectionend(), LocalSession::get_selectionstart(), gui, Plugin::keyframes, EDL::local_session, mwindow, MainSession::plugin_highlighted, Track::plugin_set, Auto::position, EDLSession::sample_rate, EDL::session, MWindow::session, LocalSession::set_selectionend(), LocalSession::set_selectionstart(), MWindowGUI::show_message(), EDLSession::time_format, Autos::track, MainSession::track_highlighted, and UPDATE_DRAG_HEAD.

Referenced by cursor_motion_event().

int TrackCanvas::update_drag_toggleauto int  cursor_x,
int  cursor_y
 

Definition at line 3688 of file trackcanvas.C.

References Auto::autos, MainSession::drag_auto, MWindow::edl, EDLSession::frame_rate, EDLSession::frames_per_foot, Track::from_units(), gui, mwindow, percentage_to_value(), Auto::position, EDLSession::sample_rate, EDL::session, MWindow::session, MWindowGUI::show_message(), EDLSession::time_format, Autos::track, UPDATE_DRAG_HEAD, and IntAuto::value.

Referenced by cursor_motion_event().

void TrackCanvas::update_edit_handles Edit edit,
int64_t  edit_x,
int64_t  edit_y,
int64_t  edit_w,
int64_t  edit_h
 

int TrackCanvas::update_handle_selection int64_t  cursor_position  )  [private]
 

Definition at line 5214 of file trackcanvas.C.

void TrackCanvas::update_handles  ) 
 

void TrackCanvas::update_keyframe_handles Track track  ) 
 

int TrackCanvas::update_selection int64_t  cursor_position  )  [private]
 

void TrackCanvas::update_transitions  ) 
 


Member Data Documentation

int TrackCanvas::active
 

Definition at line 314 of file trackcanvas.h.

Referenced by activate(), button_press_event(), deactivate(), and TrackCanvas().

int TrackCanvas::auto_selected [private]
 

Definition at line 353 of file trackcanvas.h.

Referenced by TrackCanvas().

BC_Pixmap* TrackCanvas::background_pixmap
 

Definition at line 303 of file trackcanvas.h.

Referenced by create_objects(), draw(), draw_overlays(), draw_resources(), and ~TrackCanvas().

BC_Pixmap* TrackCanvas::camerakeyframe_pixmap
 

Definition at line 309 of file trackcanvas.h.

Referenced by create_objects(), and ~TrackCanvas().

int TrackCanvas::current_end [private]
 

Definition at line 365 of file trackcanvas.h.

Referenced by TrackCanvas().

BC_DragWindow* TrackCanvas::drag_popup
 

Definition at line 304 of file trackcanvas.h.

Referenced by do_edits(), do_plugins(), drag_motion(), drag_stop_event(), and TrackCanvas().

int TrackCanvas::drag_scroll
 

Definition at line 316 of file trackcanvas.h.

Referenced by button_release_event(), cursor_motion_event(), repeat_event(), TimeBar::repeat_event(), start_dragscroll(), stop_dragscroll(), and TrackCanvas().

EditHandles* TrackCanvas::edit_handles
 

Definition at line 306 of file trackcanvas.h.

Referenced by create_objects(), and ~TrackCanvas().

MWindowGUI* TrackCanvas::gui
 

Definition at line 300 of file trackcanvas.h.

Referenced by activate(), button_press_event(), cursor_motion_event(), deactivate(), do_edit_handles(), do_edits(), do_keyframes(), do_plugin_handles(), do_plugins(), do_tracks(), do_transitions(), drag_stop(), draw(), draw_overlays(), repeat_event(), update_drag_auto(), update_drag_floatauto(), update_drag_handle(), update_drag_pluginauto(), and update_drag_toggleauto().

int TrackCanvas::handle_mode [private]
 

Definition at line 363 of file trackcanvas.h.

int64_t TrackCanvas::handle_oldposition [private]
 

Definition at line 360 of file trackcanvas.h.

int TrackCanvas::handle_pixel [private]
 

Definition at line 362 of file trackcanvas.h.

Referenced by TrackCanvas().

int64_t TrackCanvas::handle_position [private]
 

Definition at line 361 of file trackcanvas.h.

int TrackCanvas::handle_selected [private]
 

Definition at line 356 of file trackcanvas.h.

Referenced by TrackCanvas().

int TrackCanvas::hourglass_enabled
 

Definition at line 318 of file trackcanvas.h.

Referenced by draw_resources(), test_timer(), and TrackCanvas().

BC_Pixmap* TrackCanvas::keyframe_pixmap
 

Definition at line 308 of file trackcanvas.h.

Referenced by create_objects(), do_plugin_autos(), and ~TrackCanvas().

BC_Pixmap* TrackCanvas::maskkeyframe_pixmap
 

Definition at line 313 of file trackcanvas.h.

Referenced by create_objects(), do_keyframes(), and ~TrackCanvas().

BC_Pixmap* TrackCanvas::modekeyframe_pixmap
 

Definition at line 310 of file trackcanvas.h.

Referenced by create_objects(), do_keyframes(), and ~TrackCanvas().

MWindow* TrackCanvas::mwindow
 

Definition at line 299 of file trackcanvas.h.

Referenced by button_press_event(), button_release_event(), calculate_auto_position(), calculate_viewport(), create_objects(), create_pixmap(), cursor_motion_event(), do_autos(), do_edit_handles(), do_edits(), do_keyframes(), do_plugin_autos(), do_plugin_handles(), do_plugins(), do_tracks(), do_transitions(), drag_motion(), drag_start_event(), drag_stop(), draw_brender_start(), draw_drag_handle(), draw_floatline(), draw_highlighting(), draw_indexes(), draw_loop_points(), draw_overlays(), draw_paste_destination(), draw_plugins(), draw_resources(), draw_transitions(), edit_dimensions(), end_edithandle_selection(), end_pluginhandle_selection(), get_drop_position(), get_handle_coords(), get_pixmap_size(), get_transition_coords(), percentage_to_value(), plugin_dimensions(), repeat_event(), resource_h(), start_selection(), synchronize_autos(), test_auto(), test_floatauto(), test_floatline(), test_toggleline(), time_visible(), track_dimensions(), update_cursor(), update_drag_auto(), update_drag_caption(), update_drag_floatauto(), update_drag_handle(), update_drag_pluginauto(), and update_drag_toggleauto().

BC_Pixmap* TrackCanvas::pankeyframe_pixmap
 

Definition at line 311 of file trackcanvas.h.

Referenced by create_objects(), do_keyframes(), and ~TrackCanvas().

BC_Pixmap* TrackCanvas::projectorkeyframe_pixmap
 

Definition at line 312 of file trackcanvas.h.

Referenced by create_objects(), and ~TrackCanvas().

int TrackCanvas::region_selected [private]
 

Definition at line 367 of file trackcanvas.h.

Referenced by TrackCanvas().

ArrayList<ResourcePixmap*> TrackCanvas::resource_pixmaps
 

Definition at line 301 of file trackcanvas.h.

Referenced by create_pixmap(), draw_resources(), and ~TrackCanvas().

Timer* TrackCanvas::resource_timer
 

Definition at line 323 of file trackcanvas.h.

Referenced by draw_resources(), test_timer(), TrackCanvas(), and ~TrackCanvas().

double TrackCanvas::selection_midpoint1 [private]
 

Definition at line 366 of file trackcanvas.h.

Referenced by cursor_motion_event(), repeat_event(), start_selection(), and TrackCanvas().

double TrackCanvas::selection_midpoint2 [private]
 

Definition at line 366 of file trackcanvas.h.

Referenced by TrackCanvas().

int TrackCanvas::selection_type [private]
 

Definition at line 368 of file trackcanvas.h.

Referenced by TrackCanvas().

VFrame* TrackCanvas::temp_picon
 

Definition at line 321 of file trackcanvas.h.

Referenced by ResourcePixmap::draw_video_resource(), TrackCanvas(), and ~TrackCanvas().

BC_Pixmap* TrackCanvas::transition_pixmap
 

Definition at line 305 of file trackcanvas.h.

int TrackCanvas::translate_selected [private]
 

Definition at line 354 of file trackcanvas.h.

Referenced by TrackCanvas().

int TrackCanvas::which_handle [private]
 

Definition at line 359 of file trackcanvas.h.

Referenced by TrackCanvas().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:27 2006 for Cinelerra-svn by  doxygen 1.4.4