#include <zoombar.h>
Inherits BC_SubWindow.

Public Member Functions | |
| ZoomBar (MWindow *mwindow, MWindowGUI *gui) | |
| ~ZoomBar () | |
| int | create_objects () |
| void | resize_event () |
| int | draw () |
| int | resize_event (int w, int h) |
| void | redraw_time_dependancies () |
| int | update () |
| void | update_autozoom () |
| int | update_clocks () |
| int | update_playback (int64_t new_position) |
| int | set_selection (int which_one) |
| void | update_formatting (BC_TextBox *dst) |
Data Fields | |
| MWindow * | mwindow |
| MWindowGUI * | gui |
| SampleZoomPanel * | sample_zoom |
| AmpZoomPanel * | amp_zoom |
| TrackZoomPanel * | track_zoom |
| AutoZoom * | auto_zoom |
| AutoTypeMenu * | auto_type |
| ZoomTextBox * | auto_zoom_text |
| BC_Title * | zoom_value |
| BC_Title * | playback_value |
| LengthTextBox * | length_value |
| FromTextBox * | from_value |
| ToTextBox * | to_value |
| char | string [256] |
| char | string2 [256] |
| int64_t | old_position |
Definition at line 21 of file zoombar.h.
| ZoomBar::ZoomBar | ( | MWindow * | mwindow, | |
| MWindowGUI * | gui | |||
| ) |
| ZoomBar::~ZoomBar | ( | ) |
| int ZoomBar::create_objects | ( | ) |
Definition at line 40 of file zoombar.C.
References _, BC_WindowBase::add_subwindow(), amp_zoom, auto_type, auto_zoom, auto_zoom_text, BC_WindowBase::BC_Title, BLACK, AutoTypeMenu::create_objects(), ZoomPanel::create_objects(), DEFAULT_TEXT, BC_WindowBase::draw_top_background(), from_value, VFrame::get_h(), BC_WindowBase::get_h(), BC_Theme::get_image_set(), BC_WindowBase::get_parent(), ZoomPanel::get_w(), BC_WindowBase::get_w(), length_value, MEDIUMFONT, mwindow, playback_value, RED, sample_zoom, ZoomPanel::set_menu_images(), BC_WindowBase::set_tooltip(), ZoomPanel::set_tumbler_images(), MWindow::theme, to_value, track_zoom, update(), update_autozoom(), update_formatting(), BC_WindowBase::x, BC_WindowBase::y, ZoomPanel::zoom_text, ZoomPanel::zoom_tumbler, and zoom_value.
Referenced by MWindowGUI::create_objects().

| void ZoomBar::resize_event | ( | ) |
Definition at line 111 of file zoombar.C.
References ZoomPanel::create_objects(), BC_WindowBase::draw_top_background(), BC_WindowBase::flash(), BC_WindowBase::get_h(), BC_Theme::get_image_set(), BC_WindowBase::get_parent(), BC_WindowBase::get_w(), mwindow, Theme::mzoom_h, Theme::mzoom_w, Theme::mzoom_x, Theme::mzoom_y, BC_WindowBase::reposition_window(), sample_zoom, ZoomPanel::set_menu_images(), ZoomPanel::set_tumbler_images(), MWindow::theme, BC_WindowBase::x, and BC_WindowBase::y.
Referenced by MWindowGUI::resize_event().

| int ZoomBar::draw | ( | ) |
| int ZoomBar::resize_event | ( | int | w, | |
| int | h | |||
| ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 210 of file zoombar.C.
References BC_WindowBase::get_h(), and BC_WindowBase::reposition_window().

| void ZoomBar::redraw_time_dependancies | ( | ) |
Definition at line 132 of file zoombar.C.
References MWindow::edl, from_value, length_value, EDL::local_session, mwindow, sample_zoom, to_value, ZoomPanel::update(), update_autozoom(), update_clocks(), update_formatting(), ZoomPanel::update_menu(), and LocalSession::zoom_sample.
Referenced by MWindowGUI::redraw_time_dependancies().

| int ZoomBar::update | ( | ) |
Definition at line 175 of file zoombar.C.
References amp_zoom, MWindow::edl, EDL::local_session, mwindow, sample_zoom, track_zoom, ZoomPanel::update(), update_autozoom(), update_clocks(), LocalSession::zoom_sample, LocalSession::zoom_track, and LocalSession::zoom_y.
Referenced by TrackCanvas::button_press_event(), create_objects(), TrackCanvas::cursor_motion_event(), draw(), MWindow::expand_t(), MWindow::expand_y(), MWindow::fit_autos(), MWindow::goto_end(), MWindow::goto_start(), MWindow::next_edit_handle(), MWindow::next_label(), MWindow::prev_edit_handle(), MWindow::prev_label(), MWindow::samplemovement(), MTimeBar::select_label(), MWindow::select_point(), TimeBar::select_region(), set_selection(), MWindow::zoom_in_t(), and MWindow::zoom_in_y().

| void ZoomBar::update_autozoom | ( | ) |
Definition at line 150 of file zoombar.C.
References auto_zoom_text, LocalSession::automation_maxs, LocalSession::automation_mins, BCTEXTLEN, MWindow::edl, EDL::local_session, mwindow, BC_TextBox::update(), and LocalSession::zoombar_showautotype.
Referenced by ZoomTextBox::button_press_event(), create_objects(), MWindow::expand_autos(), AutoZoom::handle_down_event(), ZoomTextBox::handle_event(), AutoTypeMenu::handle_event(), AutoZoom::handle_up_event(), redraw_time_dependancies(), MWindow::shrink_autos(), and update().

| int ZoomBar::update_clocks | ( | ) |
Definition at line 185 of file zoombar.C.
References MWindow::edl, from_value, LocalSession::get_selectionend(), LocalSession::get_selectionstart(), length_value, EDL::local_session, mwindow, to_value, ToTextBox::update_position(), LengthTextBox::update_position(), and FromTextBox::update_position().
Referenced by redraw_time_dependancies(), update(), and CTracking::update_tracker().

| int ZoomBar::update_playback | ( | int64_t | new_position | ) |
Definition at line 194 of file zoombar.C.
References MWindow::edl, EDLSession::frame_rate, EDLSession::frames_per_foot, mwindow, old_position, playback_value, EDLSession::sample_rate, EDL::session, EDLSession::time_format, Units::totext(), and BC_Title::update().

| int ZoomBar::set_selection | ( | int | which_one | ) |
Definition at line 224 of file zoombar.C.
References EDL::align_to_frame(), MWindowGUI::canvas, MWindowGUI::cursor, MWindow::edl, BC_WindowBase::flash(), EDLSession::frame_rate, EDLSession::frames_per_foot, from_value, LocalSession::get_selectionend(), LocalSession::get_selectionstart(), BC_TextBox::get_text(), MWindow::gui, MainCursor::hide(), length_value, EDL::local_session, mwindow, EDLSession::sample_rate, EDL::session, SET_FROM, SET_LENGTH, LocalSession::set_selectionend(), LocalSession::set_selectionstart(), SET_TO, MainCursor::show(), MWindow::sync_parameters(), Units::text_to_seconds(), EDLSession::time_format, MWindowGUI::timebar, to_value, update(), and TimeBar::update_highlights().
Referenced by ToTextBox::handle_event(), LengthTextBox::handle_event(), and FromTextBox::handle_event().

| void ZoomBar::update_formatting | ( | BC_TextBox * | dst | ) |
Definition at line 105 of file zoombar.C.
References MWindow::edl, Units::format_to_separators(), mwindow, EDL::session, BC_TextBox::set_separators(), and EDLSession::time_format.
Referenced by create_objects(), and redraw_time_dependancies().

Definition at line 39 of file zoombar.h.
Referenced by create_objects(), redraw_time_dependancies(), resize_event(), set_selection(), update(), update_autozoom(), update_clocks(), update_formatting(), and update_playback().
Definition at line 41 of file zoombar.h.
Referenced by create_objects(), redraw_time_dependancies(), resize_event(), update(), MWindow::zoom_sample(), and ~ZoomBar().
Definition at line 42 of file zoombar.h.
Referenced by create_objects(), TrackZoomPanel::handle_event(), update(), and ~ZoomBar().
Definition at line 49 of file zoombar.h.
Referenced by create_objects(), redraw_time_dependancies(), set_selection(), and update_clocks().
Definition at line 50 of file zoombar.h.
Referenced by create_objects(), redraw_time_dependancies(), set_selection(), and update_clocks().
Definition at line 51 of file zoombar.h.
Referenced by create_objects(), redraw_time_dependancies(), set_selection(), and update_clocks().
| char ZoomBar::string[256] |
| char ZoomBar::string2[256] |
| int64_t ZoomBar::old_position |
1.5.5