#include <timeentry.h>
Inherited by RecordDuration, and RecordStart.

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_WindowBase * | gui |
| int | x |
| int | y |
| DayText * | day_text |
| DayTumbler * | day_tumbler |
| TimeTextBox * | time_text |
| double * | output |
| int * | output_day |
| double * | output_time |
| int | time_format |
Static Public Attributes | |
| static char * | day_table [TOTAL_DAYS] |
Definition at line 17 of file timeentry.h.
| 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.
| void TimeEntry::create_objects | ( | ) |
Definition at line 65 of file timeentry.C.
References BC_WindowBase::add_subwindow(), BCTEXTLEN, day_table, day_text, day_tumbler, DEFAULT_TIMEW, Units::format_to_separators(), BC_WindowBase::get_w(), gui, output_day, output_time, BC_TextBox::set_separators(), time_format, time_text, TOTAL_DAYS, Units::totext(), x, and y.
Referenced by RecordGUI::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] |
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().
| 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().

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

| int TimeEntry::get_h | ( | ) |
Definition at line 103 of file timeentry.C.
References BC_WindowBase::get_h(), and time_text.

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

| int TimeEntry::x |
Definition at line 40 of file timeentry.h.
Referenced by create_objects(), and TipWindow::new_gui().
| int TimeEntry::y |
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().
| double* TimeEntry::output |
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 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().
Definition at line 48 of file timeentry.h.
Referenced by create_objects(), TimeTextBox::handle_event(), and update().
1.5.5