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

mainclock.C

Go to the documentation of this file.
00001 #include "edl.h"
00002 #include "edlsession.h"
00003 #include "fonts.h"
00004 #include "mainclock.h"
00005 #include "mwindow.h"
00006 #include "theme.h"
00007 
00008 MainClock::MainClock(MWindow *mwindow, int x, int y, int w)
00009  : BC_Title(x,
00010                 y,
00011                 "", 
00012                 MEDIUM_7SEGMENT,
00013                 BLACK,
00014                 0,
00015                 w)
00016 {
00017         this->mwindow = mwindow;
00018         position_offset = 0;
00019 }
00020 
00021 MainClock::~MainClock()
00022 {
00023 }
00024 
00025 void MainClock::set_frame_offset(double value)
00026 {
00027         position_offset = value;
00028 }
00029 
00030 void MainClock::update(double position)
00031 {
00032         char string[BCTEXTLEN];
00033 
00034         position += position_offset;
00035 
00036         Units::totext(string, 
00037                 position,
00038                 mwindow->edl->session->time_format,
00039                 mwindow->edl->session->sample_rate,
00040                 mwindow->edl->session->frame_rate,
00041                 mwindow->edl->session->frames_per_foot);
00042         BC_Title::update(string);
00043 }
00044 
00045 
00046 
00047 
00048 

Generated on Sun Jan 8 13:38:56 2006 for Cinelerra-svn by  doxygen 1.4.4