TimeEntry Class Reference

#include <timeentry.h>

Inherited by RecordDuration, and RecordStart.

Collaboration diagram for TimeEntry:

Collaboration graph
[legend]

Public Member Functions

 TimeEntry (BC_WindowBase *gui, int x, int y, int *output_day, double *output_time, int time_format)
 ~TimeEntry ()
void create_objects ()
void time_to_hours (char *result, double time)
void time_to_minutes (char *result, double time)
void time_to_seconds (char *result, double time)
virtual int handle_event ()
void update (int *day, double *time)
void reposition_window (int x, int y)
int get_h ()
int get_w ()

Static Public Member Functions

static int day_to_int (char *day)

Data Fields

BC_WindowBasegui
int x
int y
DayTextday_text
DayTumblerday_tumbler
TimeTextBoxtime_text
double * output
int * output_day
double * output_time
int time_format

Static Public Attributes

static char * day_table [TOTAL_DAYS]

Detailed Description

Definition at line 17 of file timeentry.h.


Constructor & Destructor Documentation

TimeEntry::TimeEntry ( BC_WindowBase gui,
int  x,
int  y,
int *  output_day,
double *  output_time,
int  time_format 
)

Definition at line 4 of file timeentry.C.

TimeEntry::~TimeEntry (  ) 

Definition at line 19 of file timeentry.C.

References day_text, day_tumbler, output_day, and time_text.


Member Function Documentation

void TimeEntry::create_objects (  ) 

void TimeEntry::time_to_hours ( char *  result,
double  time 
)

Definition at line 42 of file timeentry.C.

void TimeEntry::time_to_minutes ( char *  result,
double  time 
)

Definition at line 48 of file timeentry.C.

void TimeEntry::time_to_seconds ( char *  result,
double  time 
)

Definition at line 55 of file timeentry.C.

int TimeEntry::handle_event (  )  [virtual]

int TimeEntry::day_to_int ( char *  day  )  [static]

Definition at line 34 of file timeentry.C.

References day_table, and TOTAL_DAYS.

Referenced by DayText::handle_event().

void TimeEntry::update ( int *  day,
double *  time 
)

Definition at line 138 of file timeentry.C.

References BCTEXTLEN, day_table, day_text, output_day, output_time, time_format, time_text, Units::totext(), and BC_TextBox::update().

Referenced by RecordGUI::update_batch_tools().

Here is the call graph for this function:

void TimeEntry::reposition_window ( int  x,
int  y 
)

Definition at line 117 of file timeentry.C.

References day_text, day_tumbler, DEFAULT_TIMEW, BC_WindowBase::get_w(), output_day, BC_Tumbler::reposition_window(), BC_TextBox::reposition_window(), and time_text.

Here is the call graph for this function:

int TimeEntry::get_h (  ) 

Definition at line 103 of file timeentry.C.

References BC_WindowBase::get_h(), and time_text.

Here is the call graph for this function:

int TimeEntry::get_w (  ) 

Definition at line 108 of file timeentry.C.

References day_text, day_tumbler, BC_WindowBase::get_w(), and time_text.

Referenced by RecordGUI::create_objects().

Here is the call graph for this function:


Field Documentation

Definition at line 39 of file timeentry.h.

Referenced by create_objects().

Definition at line 40 of file timeentry.h.

Referenced by create_objects(), and TipWindow::new_gui().

Definition at line 40 of file timeentry.h.

Referenced by create_objects(), and TipWindow::new_gui().

Definition at line 41 of file timeentry.h.

Referenced by create_objects(), get_w(), reposition_window(), update(), and ~TimeEntry().

Definition at line 42 of file timeentry.h.

Referenced by create_objects(), get_w(), reposition_window(), and ~TimeEntry().

Definition at line 43 of file timeentry.h.

Referenced by create_objects(), get_h(), get_w(), reposition_window(), update(), and ~TimeEntry().

Definition at line 44 of file timeentry.h.

char * TimeEntry::day_table [static]

Initial value:

 
{
        "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "*"
}

Definition at line 45 of file timeentry.h.

Referenced by create_objects(), day_to_int(), update(), and RecordGUI::update_batches().

Definition at line 47 of file timeentry.h.

Referenced by create_objects(), TimeTextBox::handle_event(), and update().

Definition at line 48 of file timeentry.h.

Referenced by create_objects(), TimeTextBox::handle_event(), and update().


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

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