11 // 3 part entry widget.
12 // part 1: day of the week
13 // part 2: day tumbler
14 // part 3: time of day
15 // Used by the Record GUI, Batch Rendering.
20 TimeEntry(BC_WindowBase
*gui
,
28 void create_objects();
29 void time_to_hours(char *result
, double time
);
30 void time_to_minutes(char *result
, double time
);
31 void time_to_seconds(char *result
, double time
);
32 virtual int handle_event();
33 static int day_to_int(char *day
);
34 void update(int *day
, double *time
);
35 void reposition_window(int x
, int y
);
42 DayTumbler
*day_tumbler
;
43 TimeTextBox
*time_text
;
45 static char *day_table
[TOTAL_DAYS
];
51 class DayText
: public BC_TextBox
54 DayText(TimeEntry
*timeentry
,
69 class DayTumbler
: public BC_Tumbler
72 DayTumbler(TimeEntry
*timeentry
,
77 int handle_up_event();
78 int handle_down_event();
84 class TimeTextBox
: public BC_TextBox
87 TimeTextBox(TimeEntry
*timeentry
,