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

ZoomBar Class Reference

#include <zoombar.h>

List of all members.

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)

Public Attributes

MWindowmwindow
MWindowGUIgui
SampleZoomPanelsample_zoom
AmpZoomPanelamp_zoom
TrackZoomPaneltrack_zoom
AutoZoomauto_zoom
BC_Title * auto_zoom_text
BC_Title * zoom_value
BC_Title * playback_value
LengthTextBoxlength_value
FromTextBoxfrom_value
ToTextBoxto_value
char string [256]
char string2 [256]
int64_t old_position


Detailed Description

Definition at line 20 of file zoombar.h.


Constructor & Destructor Documentation

ZoomBar::ZoomBar MWindow mwindow,
MWindowGUI gui
 

Definition at line 21 of file zoombar.C.

References old_position.

ZoomBar::~ZoomBar  ) 
 

Definition at line 32 of file zoombar.C.

References amp_zoom, sample_zoom, and track_zoom.


Member Function Documentation

int ZoomBar::create_objects  ) 
 

Definition at line 39 of file zoombar.C.

References _, amp_zoom, auto_zoom, auto_zoom_text, ZoomPanel::create_objects(), DEFAULT_TEXT, from_value, ZoomPanel::get_w(), length_value, mwindow, playback_value, sample_zoom, ZoomPanel::set_menu_images(), ZoomPanel::set_tumbler_images(), MWindow::theme, to_value, track_zoom, update(), update_autozoom(), update_formatting(), and zoom_value.

Referenced by MWindowGUI::create_objects().

int ZoomBar::draw  ) 
 

Definition at line 126 of file zoombar.C.

References update().

void ZoomBar::redraw_time_dependancies  ) 
 

Definition at line 114 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::resize_event int  w,
int  h
 

Definition at line 176 of file zoombar.C.

void ZoomBar::resize_event  ) 
 

Definition at line 97 of file zoombar.C.

References mwindow, Theme::mzoom_h, Theme::mzoom_w, Theme::mzoom_x, Theme::mzoom_y, and MWindow::theme.

Referenced by MWindowGUI::resize_event().

int ZoomBar::set_selection int  which_one  ) 
 

Definition at line 190 of file zoombar.C.

References EDL::align_to_frame(), MWindowGUI::canvas, MWindowGUI::cursor, MWindow::edl, EDLSession::frame_rate, EDLSession::frames_per_foot, from_value, LocalSession::get_selectionend(), LocalSession::get_selectionstart(), 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(), EDLSession::time_format, MWindowGUI::timebar, to_value, update(), and TimeBar::update_highlights().

Referenced by ToTextBox::handle_event(), LengthTextBox::handle_event(), and FromTextBox::handle_event().

int ZoomBar::update  ) 
 

Definition at line 141 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(), TrackCanvas::do_edit_handles(), TrackCanvas::do_plugin_handles(), draw(), MWindow::expand_t(), MWindow::expand_y(), MWindow::fit_autos(), MWindow::goto_end(), MWindow::goto_start(), MWindow::next_label(), MWindow::prev_label(), MWindow::samplemovement(), MTimeBar::select_label(), MWindow::select_point(), TimeBar::select_region(), set_selection(), CTracking::update_tracker(), MWindow::zoom_in_t(), and MWindow::zoom_in_y().

void ZoomBar::update_autozoom  ) 
 

Definition at line 132 of file zoombar.C.

References auto_zoom_text, LocalSession::automation_max, LocalSession::automation_min, MWindow::edl, EDL::local_session, mwindow, and string.

Referenced by create_objects(), MWindow::expand_autos(), redraw_time_dependancies(), MWindow::shrink_autos(), and update().

int ZoomBar::update_clocks  ) 
 

Definition at line 151 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(), and update().

void ZoomBar::update_formatting BC_TextBox *  dst  ) 
 

Definition at line 91 of file zoombar.C.

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

Referenced by create_objects(), and redraw_time_dependancies().

int ZoomBar::update_playback int64_t  new_position  ) 
 

Definition at line 160 of file zoombar.C.

References MWindow::edl, EDLSession::frame_rate, EDLSession::frames_per_foot, mwindow, old_position, playback_value, EDLSession::sample_rate, EDL::session, string, and EDLSession::time_format.


Member Data Documentation

AmpZoomPanel* ZoomBar::amp_zoom
 

Definition at line 41 of file zoombar.h.

Referenced by create_objects(), TrackZoomPanel::handle_event(), update(), and ~ZoomBar().

AutoZoom* ZoomBar::auto_zoom
 

Definition at line 43 of file zoombar.h.

Referenced by create_objects().

BC_Title* ZoomBar::auto_zoom_text
 

Definition at line 44 of file zoombar.h.

Referenced by create_objects(), and update_autozoom().

FromTextBox* ZoomBar::from_value
 

Definition at line 48 of file zoombar.h.

Referenced by create_objects(), redraw_time_dependancies(), set_selection(), and update_clocks().

MWindowGUI* ZoomBar::gui
 

Definition at line 39 of file zoombar.h.

LengthTextBox* ZoomBar::length_value
 

Definition at line 47 of file zoombar.h.

Referenced by create_objects(), redraw_time_dependancies(), set_selection(), and update_clocks().

MWindow* ZoomBar::mwindow
 

Definition at line 38 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().

int64_t ZoomBar::old_position
 

Definition at line 51 of file zoombar.h.

Referenced by update_playback(), and ZoomBar().

BC_Title * ZoomBar::playback_value
 

Definition at line 46 of file zoombar.h.

Referenced by create_objects(), and update_playback().

SampleZoomPanel* ZoomBar::sample_zoom
 

Definition at line 40 of file zoombar.h.

Referenced by create_objects(), redraw_time_dependancies(), update(), MWindow::zoom_sample(), and ~ZoomBar().

char ZoomBar::string[256]
 

Definition at line 50 of file zoombar.h.

Referenced by update_autozoom(), and update_playback().

char ZoomBar::string2[256]
 

Definition at line 50 of file zoombar.h.

ToTextBox* ZoomBar::to_value
 

Definition at line 49 of file zoombar.h.

Referenced by create_objects(), redraw_time_dependancies(), set_selection(), and update_clocks().

TrackZoomPanel* ZoomBar::track_zoom
 

Definition at line 42 of file zoombar.h.

Referenced by create_objects(), update(), and ~ZoomBar().

BC_Title* ZoomBar::zoom_value
 

Definition at line 46 of file zoombar.h.

Referenced by create_objects().


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