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

TimeEntry Class Reference

#include <timeentry.h>

Inheritance diagram for TimeEntry:

RecordDuration RecordStart List of all members.

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)

Public Attributes

BC_WindowBase * gui
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  ) 
 

Definition at line 65 of file timeentry.C.

References day_table, day_text, day_tumbler, DEFAULT_TIMEW, gui, output_day, output_time, time_format, time_text, TOTAL_DAYS, x, and y.

Referenced by RecordGUI::create_objects().

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

int TimeEntry::get_h  ) 
 

Definition at line 103 of file timeentry.C.

References time_text.

Referenced by TipWindowGUI::create_objects().

int TimeEntry::get_w  ) 
 

Definition at line 108 of file timeentry.C.

References day_text, day_tumbler, and time_text.

Referenced by TipWindowGUI::create_objects(), and RecordGUI::create_objects().

int TimeEntry::handle_event  )  [virtual]
 

Reimplemented in RecordStart, and RecordDuration.

Definition at line 155 of file timeentry.C.

Referenced by DayTumbler::handle_down_event(), TimeTextBox::handle_event(), DayText::handle_event(), and DayTumbler::handle_up_event().

void TimeEntry::reposition_window int  x,
int  y
 

Definition at line 117 of file timeentry.C.

References day_text, day_tumbler, DEFAULT_TIMEW, output_day, and time_text.

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.

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

Definition at line 138 of file timeentry.C.

References day_table, day_text, output_day, output_time, time_format, and time_text.

Referenced by RecordGUI::update_batch_tools().


Member Data Documentation

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

DayText* TimeEntry::day_text
 

Definition at line 41 of file timeentry.h.

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

DayTumbler* TimeEntry::day_tumbler
 

Definition at line 42 of file timeentry.h.

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

BC_WindowBase* TimeEntry::gui
 

Definition at line 39 of file timeentry.h.

Referenced by create_objects().

double* TimeEntry::output
 

Definition at line 44 of file timeentry.h.

int* TimeEntry::output_day
 

Definition at line 46 of file timeentry.h.

Referenced by create_objects(), DayTumbler::handle_down_event(), DayText::handle_event(), DayTumbler::handle_up_event(), reposition_window(), update(), and ~TimeEntry().

double* TimeEntry::output_time
 

Definition at line 47 of file timeentry.h.

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

int TimeEntry::time_format
 

Definition at line 48 of file timeentry.h.

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

TimeTextBox* TimeEntry::time_text
 

Definition at line 43 of file timeentry.h.

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

int TimeEntry::x
 

Definition at line 40 of file timeentry.h.

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

int TimeEntry::y
 

Definition at line 40 of file timeentry.h.

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


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