FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiTimeDate.h @ 128:6cca8d6d34d3
mmiTimeDate.h: bogotab fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 10 Nov 2020 06:39:53 +0000 |
parents | c0052fe355d3 |
children |
comparison
equal
deleted
inserted
replaced
127:d80ee234a573 | 128:6cca8d6d34d3 |
---|---|
1 #ifndef _DEF_MMI_TIMEDATE_H_ | 1 #ifndef _DEF_MMI_TIMEDATE_H_ |
2 #define _DEF_MMI_TIMEDATE_H_ | 2 #define _DEF_MMI_TIMEDATE_H_ |
3 | 3 |
4 /******************************************************************************* | 4 /******************************************************************************* |
5 | 5 |
6 CONDAT (UK) | 6 CONDAT (UK) |
7 | 7 |
8 ******************************************************************************** | 8 ******************************************************************************** |
9 | 9 |
10 This software product is the property of Condat (UK) Ltd and may not be | 10 This software product is the property of Condat (UK) Ltd and may not be |
11 disclosed to any third party without the express permission of the owner. | 11 disclosed to any third party without the express permission of the owner. |
12 | 12 |
13 ******************************************************************************** | 13 ******************************************************************************** |
14 | 14 |
15 $Project name: Basic MMI | 15 $Project name: Basic MMI |
16 $Project code: BMI (6349) | 16 $Project code: BMI (6349) |
17 $Module: MMI | 17 $Module: MMI |
18 $File: MmiTimeDate.h | 18 $File: MmiTimeDate.h |
19 $Revision: 1.0 | 19 $Revision: 1.0 |
20 | 20 |
21 $Author: Condat(UK) | 21 $Author: Condat(UK) |
22 $Date: 25/10/00 | 22 $Date: 25/10/00 |
23 | 23 |
24 ******************************************************************************** | 24 ******************************************************************************** |
25 | 25 |
26 Description: | 26 Description: |
27 | 27 |
28 This provides the root mofule for the basic MMI | 28 This provides the root mofule for the basic MMI |
29 | 29 |
30 ******************************************************************************** | 30 ******************************************************************************** |
31 $History: MmiTimeDate.h | 31 $History: MmiTimeDate.h |
32 | 32 |
33 Jan 06,2004 REF: CRR 27859 xkundadu | 33 Jan 06,2004 REF: CRR 27859 xkundadu |
34 Description: Clock: Alarm does not go off even if timer times out. | 34 Description: Clock: Alarm does not go off even if timer times out. |
35 Solution: If the mfw_td_set_alarm() function fails, display the | 35 Solution: If the mfw_td_set_alarm() function fails, display the |
36 'Write Failed" message. | 36 'Write Failed" message. |
37 Added 'TIDA_SAVEFAILED' enum to display 'Write Failed' for set alarm fail case. | 37 Added 'TIDA_SAVEFAILED' enum to display 'Write Failed' for set alarm fail case. |
38 | |
39 | 38 |
40 | 39 |
41 $End | 40 $End |
42 | 41 |
43 *******************************************************************************/ | 42 *******************************************************************************/ |
52 | 51 |
53 #ifdef NEW_EDITOR | 52 #ifdef NEW_EDITOR |
54 | 53 |
55 typedef enum | 54 typedef enum |
56 { | 55 { |
57 TIDA_INIT, /* Initialise */ | 56 TIDA_INIT, /* Initialise */ |
58 TIDA_DATE, /* Enter date */ | 57 TIDA_DATE, /* Enter date */ |
59 TIDA_TIME, /* Enter time */ | 58 TIDA_TIME, /* Enter time */ |
60 TIDA_ALARMDATE, /* Enter alarm date */ | 59 TIDA_ALARMDATE, /* Enter alarm date */ |
61 TIDA_ALARMTIME, /* Enter alarm time */ | 60 TIDA_ALARMTIME, /* Enter alarm time */ |
62 TIDA_SAVE, /* Save data to flash & display "Saved" dialog */ | 61 TIDA_SAVE, /* Save data to flash & display "Saved" dialog */ |
63 | 62 |
64 // Jan 06,2004 REF: CRR 27859 xkundadu | 63 // Jan 06,2004 REF: CRR 27859 xkundadu |
65 // Description: Clock: Alarm does not go off even if timer times out. | 64 // Description: Clock: Alarm does not go off even if timer times out. |
66 // Solution: If the mfw_td_set_alarm() function fails, display the | 65 // Solution: If the mfw_td_set_alarm() function fails, display the |
67 // 'Write Failed" message. | 66 // 'Write Failed" message. |
68 | 67 |
69 // Added 'TIDA_SAVEFAILED' enum to display 'Write Failed' for set alarm fail case. | 68 // Added 'TIDA_SAVEFAILED' enum to display 'Write Failed' for set alarm fail case. |
70 TIDA_SAVEFAILED // | 69 TIDA_SAVEFAILED // |
71 }E_TIMER_EVENTS; | 70 }E_TIMER_EVENTS; |
72 | 71 |
73 T_MFW_HND tida_create(T_MFW_HND parent_win); | 72 T_MFW_HND tida_create(T_MFW_HND parent_win); |
74 T_MFW_HND tida_destroy(T_MFW_HND win); | 73 T_MFW_HND tida_destroy(T_MFW_HND win); |
75 | 74 |
78 /* OLD VERSION */ | 77 /* OLD VERSION */ |
79 | 78 |
80 /* REASONS */ | 79 /* REASONS */ |
81 typedef enum | 80 typedef enum |
82 { | 81 { |
83 DATE_SHOW = TimeDateDummy, | 82 DATE_SHOW = TimeDateDummy, |
84 TIME_SHOW, | 83 TIME_SHOW, |
85 DATE_ENTRY, | 84 DATE_ENTRY, |
86 TIME_ENTRY, | 85 TIME_ENTRY, |
87 ENTRY_OK, | 86 ENTRY_OK, |
88 SAVED, | 87 SAVED, |
89 TIDA_ABORT, | 88 TIDA_ABORT, |
90 TIDA_CLEAR, | 89 TIDA_CLEAR, |
91 TIDA_TO_IDLE | 90 TIDA_TO_IDLE |
92 } | 91 } |
93 DAT_TIME_CASE; | 92 DAT_TIME_CASE; |
94 void time_date_init(); | 93 void time_date_init(); |
95 void tida_info_cb(T_MFW_HND win, USHORT identifier, UBYTE reasons); | 94 void tida_info_cb(T_MFW_HND win, USHORT identifier, UBYTE reasons); |
96 void date_time_edt_destroy (T_MFW_HND own_window); | 95 void date_time_edt_destroy (T_MFW_HND own_window); |
112 int twelve_hour_clock(MfwMnu* m, MfwMnuItem* i); | 111 int twelve_hour_clock(MfwMnu* m, MfwMnuItem* i); |
113 int twentyfour_hour_clock(MfwMnu* m, MfwMnuItem* i); | 112 int twentyfour_hour_clock(MfwMnu* m, MfwMnuItem* i); |
114 void alarm_check(void); // RAVI | 113 void alarm_check(void); // RAVI |
115 | 114 |
116 #endif | 115 #endif |
117 |