#include <timebar.h>
Inherits BC_SubWindow.
Inherited by CTimeBar, MTimeBar, and VTimeBar.

Definition at line 96 of file timebar.h.
| TimeBar::TimeBar | ( | MWindow * | mwindow, | |
| BC_WindowBase * | gui, | |||
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) |
| TimeBar::~TimeBar | ( | ) | [virtual] |
Definition at line 179 of file timebar.C.
References in_point, label_edit, labels, out_point, presentations, and ArrayList< TYPE >::remove_all_objects().

| int TimeBar::create_objects | ( | ) |
Definition at line 188 of file timebar.C.
References current_operation, in_point, out_point, TIMEBAR_NONE, and update().
Referenced by VWindowGUI::create_objects(), MWindowGUI::create_objects(), and CWindowGUI::create_objects().

| int TimeBar::update_defaults | ( | ) |
| int TimeBar::button_press_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 702 of file timebar.C.
References TrackCanvas::activate(), MWindowGUI::canvas, BC_WindowBase::ctrl_down(), BC_WindowBase::cursor_inside(), MWindow::edl, BC_WindowBase::get_buttonpress(), BC_WindowBase::get_cursor_x(), BC_WindowBase::get_double_click(), MWindow::gui, BC_WindowBase::is_event_win(), EDL::local_session, mwindow, MWindow::next_time_format(), MWindow::prev_time_format(), EDLSession::sample_rate, select_region(), EDL::session, stop_playback(), test_preview(), update_cursor(), LocalSession::view_start, and LocalSession::zoom_sample.

| int TimeBar::button_release_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 835 of file timebar.C.
References _, MWindowGUI::canvas, current_operation, MWindow::gui, mwindow, TrackCanvas::stop_dragscroll(), TIMEBAR_DRAG, TIMEBAR_NONE, MWindow::undo, and MainUndo::update_undo().

| int TimeBar::cursor_motion_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 785 of file timebar.C.
References MWindowGUI::canvas, current_operation, BC_WindowBase::get_relative_cursor_x(), BC_WindowBase::get_w(), gui, MWindow::gui, move_preview(), mwindow, BC_WindowBase::relative_cursor_x(), TrackCanvas::start_dragscroll(), TrackCanvas::stop_dragscroll(), test_preview(), TIMEBAR_DRAG, TIMEBAR_DRAG_CENTER, TIMEBAR_DRAG_LEFT, TIMEBAR_DRAG_RIGHT, update(), and update_cursor().

| int TimeBar::repeat_event | ( | int64_t | duration | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 750 of file timebar.C.
References MWindowGUI::canvas, current_operation, TrackCanvas::drag_scroll, MWindow::edl, BC_WindowBase::get_relative_cursor_x(), BC_WindowBase::get_resources(), BC_WindowBase::get_w(), MWindow::gui, EDL::local_session, mwindow, BC_WindowBase::relative_cursor_x(), MWindow::samplemovement(), TIMEBAR_DRAG, update_cursor(), and LocalSession::view_start.

| void TimeBar::update | ( | int | do_range = 1, |
|
| int | do_others = 1 | |||
| ) |
Definition at line 399 of file timebar.C.
References draw_time(), BC_WindowBase::flash(), update_labels(), update_points(), and update_presentations().
Referenced by VWindowGUI::change_source(), VWindow::clear_inpoint(), MWindow::clear_labels(), VWindow::clear_outpoint(), create_objects(), cursor_motion_event(), VWindowSlider::handle_event(), SampleScroll::handle_event(), MWindow::next_edit_handle(), VWindowEditing::next_label(), MWindow::next_label(), MWindow::prev_edit_handle(), VWindowEditing::prev_label(), MWindow::prev_label(), MWindowGUI::redraw_time_dependancies(), VTimeBar::resize_event(), MTimeBar::resize_event(), CTimeBar::resize_event(), MWindow::samplemovement(), VTimeBar::select_label(), VWindow::set_inpoint(), MWindow::set_inpoint(), VWindow::set_outpoint(), MWindow::set_outpoint(), BRender::set_video_map(), VWindowEditing::toggle_label(), MWindow::toggle_label(), VWindow::update(), CWindow::update(), and MWindow::update_project().

| void TimeBar::draw_time | ( | ) | [virtual] |
| void TimeBar::draw_range | ( | ) | [virtual] |
Reimplemented in MTimeBar.
Definition at line 437 of file timebar.C.
References BLACK, BC_WindowBase::draw_3segmenth(), BC_WindowBase::draw_line(), BC_WindowBase::draw_top_background(), get_edl(), BC_WindowBase::get_h(), BC_WindowBase::get_parent(), get_preview_pixels(), LocalSession::get_selectionstart(), BC_WindowBase::get_w(), EDL::local_session, mwindow, position_to_pixel(), RED, BC_WindowBase::set_color(), MWindow::theme, and Theme::timebar_view_data.
Referenced by VTimeBar::draw_time(), CTimeBar::draw_time(), VTracking::update_tracker(), and CTracking::update_tracker().

| void TimeBar::select_label | ( | double | position | ) | [virtual] |
| void TimeBar::stop_playback | ( | ) | [virtual] |
Reimplemented in MTimeBar.
Definition at line 698 of file timebar.C.
Referenced by button_press_event().
| EDL * TimeBar::get_edl | ( | ) | [virtual] |
Reimplemented in CTimeBar, and VTimeBar.
Definition at line 430 of file timebar.C.
References MWindow::edl, and mwindow.
Referenced by draw_range(), get_edl_length(), get_preview_pixels(), move_preview(), test_preview(), update_labels(), and update_points().
| int TimeBar::test_preview | ( | int | buttonpress | ) | [virtual] |
Reimplemented in MTimeBar.
Definition at line 538 of file timebar.C.
References ARROW_CURSOR, current_operation, BC_WindowBase::cursor_inside(), BC_WindowBase::get_cursor(), BC_WindowBase::get_cursor_x(), get_edl(), get_preview_pixels(), BC_WindowBase::get_w(), HSEPARATE_CURSOR, LEFT_CURSOR, EDL::local_session, LocalSession::preview_end, LocalSession::preview_start, RIGHT_CURSOR, BC_WindowBase::set_cursor(), start_cursor_x, start_position, starting_end_position, starting_start_position, TIMEBAR_DRAG_CENTER, TIMEBAR_DRAG_LEFT, and TIMEBAR_DRAG_RIGHT.
Referenced by button_press_event(), and cursor_motion_event().

| void TimeBar::update_preview | ( | ) | [virtual] |
Reimplemented in CTimeBar, and VTimeBar.
Definition at line 689 of file timebar.C.
Referenced by move_preview().
| int64_t TimeBar::position_to_pixel | ( | double | position | ) | [virtual] |
Reimplemented in MTimeBar.
Definition at line 198 of file timebar.C.
References get_edl_length(), and time_per_pixel.
Referenced by draw_range(), update_labels(), and update_points().

| int TimeBar::move_preview | ( | int & | redraw | ) |
Definition at line 630 of file timebar.C.
References CLAMP, current_operation, edl_length, BC_WindowBase::get_cursor_x(), get_edl(), EDL::local_session, LocalSession::preview_end, LocalSession::preview_start, start_cursor_x, start_position, starting_end_position, starting_start_position, time_per_pixel, TIMEBAR_DRAG_CENTER, TIMEBAR_DRAG_LEFT, TIMEBAR_DRAG_RIGHT, and update_preview().
Referenced by cursor_motion_event().

| void TimeBar::update_labels | ( | ) |
Definition at line 205 of file timebar.C.
References BC_WindowBase::add_subwindow(), ArrayList< TYPE >::append(), ARROW_CURSOR, BC_Toggle::draw_face(), List< TYPE >::first, get_edl(), LocalSession::get_selectionend(), LocalSession::get_selectionstart(), BC_Toggle::get_value(), BC_WindowBase::get_w(), BC_WindowBase::get_y(), gui, LabelGUI::label, labels, EDL::labels, EDL::local_session, mwindow, NEXT, output, LabelGUI::pixel, LabelGUI::position, position_to_pixel(), ArrayList< TYPE >::remove_object(), LabelGUI::reposition(), BC_WindowBase::set_cursor(), BC_WindowBase::set_tooltip(), ArrayList< TYPE >::total, BC_Toggle::update(), and ArrayList< TYPE >::values.
Referenced by update().

| void TimeBar::update_points | ( | ) |
Definition at line 310 of file timebar.C.
References BC_WindowBase::add_subwindow(), ARROW_CURSOR, BC_Toggle::draw_face(), EQUIV, get_edl(), LocalSession::get_inpoint(), LocalSession::get_outpoint(), BC_WindowBase::get_w(), in_point, LocalSession::inpoint_valid(), EDL::local_session, mwindow, out_point, LocalSession::outpoint_valid(), LabelGUI::pixel, LabelGUI::position, position_to_pixel(), LabelGUI::reposition(), and BC_WindowBase::set_cursor().
Referenced by update().

| void TimeBar::update_presentations | ( | ) |
| void TimeBar::update_highlights | ( | ) |
Definition at line 273 of file timebar.C.
References MWindow::edl, EDL::equivalent(), LocalSession::get_inpoint(), LocalSession::get_outpoint(), LocalSession::get_selectionend(), LocalSession::get_selectionstart(), BC_Toggle::get_value(), in_point, labels, EDL::local_session, mwindow, out_point, LabelGUI::position, ArrayList< TYPE >::total, BC_Toggle::update(), and ArrayList< TYPE >::values.
Referenced by TrackCanvas::button_press_event(), MTimeBar::select_label(), select_region(), ZoomBar::set_selection(), and update_cursor().

| void TimeBar::update_cursor | ( | ) |
Definition at line 860 of file timebar.C.
References EDL::align_to_frame(), current_operation, MWindow::edl, BC_WindowBase::get_cursor_x(), EDL::local_session, MAX, mwindow, EDLSession::sample_rate, MWindow::select_point(), EDL::session, TIMEBAR_DRAG, update_highlights(), LocalSession::view_start, and LocalSession::zoom_sample.
Referenced by button_press_event(), cursor_motion_event(), and repeat_event().

| int TimeBar::load | ( | FileXML * | xml, | |
| int | undo_type | |||
| ) |
| int TimeBar::refresh_labels | ( | ) |
| int TimeBar::select_region | ( | double | position | ) |
Definition at line 878 of file timebar.C.
References _, TrackCanvas::activate(), MWindowGUI::canvas, MWindowGUI::cursor, MWindow::cwindow, MainCursor::draw(), MWindow::edl, Thread::end(), List< TYPE >::first, BC_WindowBase::flash(), MWindow::gui, MainCursor::hide(), EDL::labels, List< TYPE >::last, EDL::local_session, mwindow, NEXT, Label::position, PREVIOUS, LocalSession::set_selectionend(), LocalSession::set_selectionstart(), Thread::start(), Tracks::total_length(), EDL::tracks, MWindow::undo, ZoomBar::update(), CWindow::update(), update_highlights(), MainUndo::update_undo(), and MWindowGUI::zoombar.
Referenced by button_press_event().

| void TimeBar::get_edl_length | ( | ) |
Definition at line 479 of file timebar.C.
References edl_length, EQUIV, get_edl(), BC_WindowBase::get_w(), time_per_pixel, Tracks::total_playable_length(), and EDL::tracks.
Referenced by CTimeBar::draw_time(), get_preview_pixels(), and position_to_pixel().

| int TimeBar::flip_vertical | ( | int | w, | |
| int | h | |||
| ) |
| int TimeBar::get_preview_pixels | ( | int & | x1, | |
| int & | x2 | |||
| ) | [private] |
Definition at line 503 of file timebar.C.
References edl_length, EQUIV, get_edl(), get_edl_length(), BC_WindowBase::get_w(), EDL::local_session, LocalSession::preview_end, LocalSession::preview_start, and time_per_pixel.
Referenced by draw_range(), and test_preview().

| int TimeBar::draw_bevel | ( | ) | [private] |
Definition at line 114 of file timebar.h.
Referenced by LabelGUI::button_press_event(), TimeBar(), and ~TimeBar().
Definition at line 154 of file timebar.h.
Referenced by button_press_event(), button_release_event(), cursor_motion_event(), draw_range(), MTimeBar::draw_range(), MTimeBar::draw_time(), get_edl(), CTimeBar::get_edl(), MTimeBar::position_to_pixel(), repeat_event(), VTimeBar::resize_event(), MTimeBar::resize_event(), CTimeBar::resize_event(), VTimeBar::select_label(), MTimeBar::select_label(), CTimeBar::select_label(), select_region(), update_cursor(), update_highlights(), update_labels(), and update_points().
Reimplemented in CTimeBar, MTimeBar, and VTimeBar.
Definition at line 155 of file timebar.h.
Referenced by cursor_motion_event(), and update_labels().
Definition at line 160 of file timebar.h.
Referenced by button_release_event(), create_objects(), cursor_motion_event(), move_preview(), repeat_event(), test_preview(), and update_cursor().
ArrayList<LabelGUI*> TimeBar::labels [private] |
Definition at line 166 of file timebar.h.
Referenced by update_highlights(), update_labels(), and ~TimeBar().
InPointGUI* TimeBar::in_point [private] |
Definition at line 167 of file timebar.h.
Referenced by create_objects(), update_highlights(), update_points(), and ~TimeBar().
OutPointGUI* TimeBar::out_point [private] |
Definition at line 168 of file timebar.h.
Referenced by create_objects(), update_highlights(), update_points(), and ~TimeBar().
ArrayList<PresentationGUI*> TimeBar::presentations [private] |
double TimeBar::start_position [private] |
Definition at line 173 of file timebar.h.
Referenced by MTimeBar::draw_time(), move_preview(), and test_preview().
double TimeBar::starting_start_position [private] |
double TimeBar::starting_end_position [private] |
double TimeBar::time_per_pixel [private] |
Definition at line 176 of file timebar.h.
Referenced by MTimeBar::draw_range(), MTimeBar::draw_time(), get_edl_length(), get_preview_pixels(), move_preview(), and position_to_pixel().
double TimeBar::edl_length [private] |
Definition at line 177 of file timebar.h.
Referenced by MWindow::asset_to_edl(), get_edl_length(), get_preview_pixels(), and move_preview().
int TimeBar::start_cursor_x [private] |
1.5.5