TimeBar Class Reference

#include <timebar.h>

Inherits BC_SubWindow.

Inherited by CTimeBar, MTimeBar, and VTimeBar.

Collaboration diagram for TimeBar:

Collaboration graph
[legend]

Public Member Functions

 TimeBar (MWindow *mwindow, BC_WindowBase *gui, int x, int y, int w, int h)
virtual ~TimeBar ()
int create_objects ()
int update_defaults ()
int button_press_event ()
int button_release_event ()
int cursor_motion_event ()
int repeat_event (int64_t duration)
void update (int do_range=1, int do_others=1)
virtual void draw_time ()
virtual void draw_range ()
virtual void select_label (double position)
virtual void stop_playback ()
virtual EDLget_edl ()
virtual int test_preview (int buttonpress)
virtual void update_preview ()
virtual int64_t position_to_pixel (double position)
int move_preview (int &redraw)
void update_labels ()
void update_points ()
void update_presentations ()
void update_highlights ()
void update_cursor ()
int save (FileXML *xml)
int load (FileXML *xml, int undo_type)
int delete_project ()
int draw ()
int samplemovement ()
int refresh_labels ()
int select_region (double position)
void get_edl_length ()
int flip_vertical (int w, int h)
int delete_arrows ()

Data Fields

LabelEditlabel_edit
MWindowmwindow
BC_WindowBasegui
int current_operation

Private Member Functions

int get_preview_pixels (int &x1, int &x2)
int draw_bevel ()

Private Attributes

ArrayList< LabelGUI * > labels
InPointGUIin_point
OutPointGUIout_point
ArrayList< PresentationGUI * > presentations
double start_position
double starting_start_position
double starting_end_position
double time_per_pixel
double edl_length
int start_cursor_x

Detailed Description

Definition at line 96 of file timebar.h.


Constructor & Destructor Documentation

TimeBar::TimeBar ( MWindow mwindow,
BC_WindowBase gui,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 165 of file timebar.C.

References MWindow::awindow, and label_edit.

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

Here is the call graph for this function:


Member Function Documentation

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

Here is the call graph for this function:

int TimeBar::update_defaults (  ) 

int TimeBar::button_press_event (  )  [virtual]

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

Here is the call graph for this function:

int TimeBar::cursor_motion_event (  )  [virtual]

int TimeBar::repeat_event ( int64_t  duration  )  [virtual]

void TimeBar::update ( int  do_range = 1,
int  do_others = 1 
)

void TimeBar::draw_time (  )  [virtual]

Reimplemented in CTimeBar, MTimeBar, and VTimeBar.

Definition at line 426 of file timebar.C.

Referenced by update().

void TimeBar::draw_range (  )  [virtual]

void TimeBar::select_label ( double  position  )  [virtual]

Reimplemented in CTimeBar, MTimeBar, and VTimeBar.

Definition at line 468 of file timebar.C.

Referenced by LabelGUI::handle_event().

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]

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

Here is the call graph for this function:

int TimeBar::move_preview ( int &  redraw  ) 

void TimeBar::update_labels (  ) 

void TimeBar::update_points (  ) 

void TimeBar::update_presentations (  ) 

Definition at line 394 of file timebar.C.

Referenced by update().

void TimeBar::update_highlights (  ) 

void TimeBar::update_cursor (  ) 

int TimeBar::save ( FileXML xml  ) 

Definition at line 417 of file timebar.C.

int TimeBar::load ( FileXML xml,
int  undo_type 
)

int TimeBar::delete_project (  ) 

Definition at line 411 of file timebar.C.

int TimeBar::draw (  ) 

Definition at line 474 of file timebar.C.

int TimeBar::samplemovement (  ) 

Definition at line 693 of file timebar.C.

int TimeBar::refresh_labels (  ) 

int TimeBar::select_region ( double  position  ) 

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

Here is the call graph for this function:

int TimeBar::flip_vertical ( int  w,
int  h 
)

int TimeBar::delete_arrows (  ) 

Definition at line 934 of file timebar.C.

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

Here is the call graph for this function:

int TimeBar::draw_bevel (  )  [private]


Field Documentation

Definition at line 114 of file timebar.h.

Referenced by LabelGUI::button_press_event(), TimeBar(), and ~TimeBar().

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 166 of file timebar.h.

Referenced by update_highlights(), update_labels(), and ~TimeBar().

Definition at line 167 of file timebar.h.

Referenced by create_objects(), update_highlights(), update_points(), and ~TimeBar().

Definition at line 168 of file timebar.h.

Referenced by create_objects(), update_highlights(), update_points(), and ~TimeBar().

Definition at line 169 of file timebar.h.

Referenced by ~TimeBar().

double TimeBar::start_position [private]

Definition at line 173 of file timebar.h.

Referenced by MTimeBar::draw_time(), move_preview(), and test_preview().

Definition at line 174 of file timebar.h.

Referenced by move_preview(), and test_preview().

Definition at line 175 of file timebar.h.

Referenced by move_preview(), and test_preview().

double TimeBar::time_per_pixel [private]

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]

Definition at line 178 of file timebar.h.

Referenced by move_preview(), and test_preview().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:45:40 2008 for Cinelerra by  doxygen 1.5.5