FreeCalypso > hg > fc-magnetite
comparison src/ui3/bmi/mmiLists.h @ 421:6a4d9f47793e
src/ui3/bmi: file renames to make the case consistent
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 21 Jan 2018 03:28:53 +0000 |
parents | src/ui3/bmi/MmiLists.h@e8ddbb0837ed |
children |
comparison
equal
deleted
inserted
replaced
420:e8ddbb0837ed | 421:6a4d9f47793e |
---|---|
1 #ifndef _DEF_MMI_LISTS_H_ | |
2 #define _DEF_MMI_LISTS_H_ | |
3 | |
4 /******************************************************************************* | |
5 | |
6 CONDAT (UK) | |
7 | |
8 ******************************************************************************** | |
9 | |
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. | |
12 | |
13 ******************************************************************************** | |
14 | |
15 $Project name: Basic MMI | |
16 $Project code: BMI (6349) | |
17 $Module: MMI | |
18 $File: MmiLists.h | |
19 $Revision: 1.0 | |
20 | |
21 $Author: Condat(UK) | |
22 $Date: 25/10/00 | |
23 | |
24 ******************************************************************************** | |
25 | |
26 Description: | |
27 | |
28 This provides the root mofule for the basic MMI | |
29 | |
30 ******************************************************************************** | |
31 $History: MmiLists.h | |
32 | |
33 May 18, 2006 REF: DRT OMAPS00076438 xdeepadh | |
34 Description: Scrolling not implemented in Imageviewer | |
35 Solution: The support for scrolling has been provided. | |
36 | |
37 May 03, 2006 REF: DRT OMAPS00076439 xdeepadh | |
38 Description: Image viewer back not working | |
39 Solution: The Preview List will be repopulated, when the list window is | |
40 resumed. | |
41 | |
42 Dec 22, 2005 REF: ENH xdeepadh | |
43 Description: Image Viewer Application | |
44 Solution: Implemeted the Image Viewer to view the jpeg images | |
45 | |
46 xrashmic 5 Oct, 2005 MMI-SPR-29356, MMI-SPR-29357 | |
47 Using the MenuSelect Key for requesting the help info in STK menu. | |
48 | |
49 March 01, 2005 REF: ENH 29313 Deepa M.D | |
50 Isolating colour build related changes from MMI LITE flag. | |
51 The proper Feature flag COLORDISPLAY was used for all color | |
52 related changes. | |
53 | |
54 | |
55 $End | |
56 | |
57 *******************************************************************************/ | |
58 #include "mfw_mnu.h" //for mfwMnuAttr | |
59 | |
60 #define LISTS_SCROLL_UP 0 | |
61 #define LISTS_SCROLL_DOWN 1 | |
62 | |
63 #define LISTS_FAIL 0 | |
64 #define LISTS_OK 1 | |
65 | |
66 #define LISTS_MAX_ITEMS 10 | |
67 | |
68 #define SNAPSHOT_SIZE_2 2 | |
69 #define SNAPSHOT_SIZE_4 4 | |
70 #define SNAPSHOT_SIZE_6 6 | |
71 | |
72 #define LISTS_REASON_NULL 0 | |
73 #define LISTS_REASON_SELECT 1 | |
74 #define LISTS_REASON_BACK 2 | |
75 #define LISTS_REASON_TIMEOUT 3 | |
76 #define LISTS_REASON_CLEAR 4 | |
77 #define LISTS_REASON_SCROLL 5 | |
78 #define LISTS_REASON_HANGUP 6 | |
79 #define LISTS_REASON_SEND 7 | |
80 #define LISTS_REASON_CALL 8 | |
81 // Dec 22, 2005 REF: ENH xdeepadh -Imageviewer | |
82 #define LISTS_REASON_SCROLL_UP 9 | |
83 #define LISTS_REASON_SCROLL_DOWN 10 | |
84 #define LISTS_REASON_RESUME 11 | |
85 #define LISTS_REASON_SUSPEND 12 | |
86 #define LISTS_REASON_VISIBLE 13 | |
87 #define LISTS_REASON_DRAWCOMPLETE 14 | |
88 | |
89 | |
90 /*Event which can be sent to list window*/ | |
91 #define E_LIST_DESTROY 3 /*SPR 2132, destroy window*/ | |
92 | |
93 typedef enum | |
94 { | |
95 E_START_MELODY, | |
96 #ifdef FF_MMI_RINGTONE /* Events for Ring tone handling */ | |
97 E_STOP_MELODY, | |
98 E_SUSPEND_MELODY, | |
99 E_VISIBLE_MELODY | |
100 #else | |
101 E_STOP_MELODY /*a0393213 warnings removal- trailing comma is nonstandard*/ | |
102 #endif | |
103 } e_melody_events; | |
104 | |
105 | |
106 | |
107 typedef struct | |
108 { | |
109 MfwHnd win; | |
110 MfwMnuAttr *Attr; /* Menu attributes */ | |
111 MfwMnuItem *List; /* List menu text strings. */ | |
112 UBYTE ListLength; /* Number of entries in list menu. */ | |
113 UBYTE ListPosition; /* True cursor position in list menu. */ | |
114 UBYTE CursorPosition; /* Cursor position in list snapshot. */ | |
115 UBYTE SnapshotSize; /* Number of list entries to view. */ | |
116 U8 Font; /* List menu font. */ | |
117 BOOL Strings; /* TRUE = string display; FALSE = IDs */ | |
118 int LeftSoftKey; /* Left softkey text. */ | |
119 int RightSoftKey; /* Right softkey text. */ | |
120 MfwEvt KeyEvents; /* Keyboard events to be handled. */ | |
121 UBYTE Reason; /* User defined exit reason. */ | |
122 UBYTE autoDestroy; | |
123 UBYTE selectKey; //xrashmic 5 Oct, 2005 MMI-SPR-29356, MMI-SPR-29357 | |
124 //March 01, 2005 REF: ENH 29313 Deepa M.D | |
125 // Isolating colour build related changes from MMI LITE flag. | |
126 // The proper Feature flag COLORDISPLAY was used for all color | |
127 //related changes. | |
128 #ifdef COLOURDISPLAY | |
129 U32 listCol; | |
130 #else | |
131 U8 listCol;/*SPR 2686*/ | |
132 #endif | |
133 MfwHnd mfw_iv_handle; | |
134 int lineHeight; | |
135 BOOL block_keys; | |
136 } ListMenuData; | |
137 | |
138 typedef void (*ListCbFunc)(T_MFW_HND * Parent, ListMenuData * ListData); | |
139 | |
140 typedef struct | |
141 { | |
142 T_MMI_CONTROL mmi_control; | |
143 T_MFW_HND winLists; | |
144 SHORT id; | |
145 T_MFW_HND Parent; | |
146 T_MFW_HND kbdLists; | |
147 T_MFW_HND kbdLists_long; | |
148 T_MFW_HND MenuLists; | |
149 MfwMnuAttr MenuListsAttr; | |
150 ListCbFunc Callback; | |
151 UBYTE ExitReason; | |
152 ListMenuData MenuData; | |
153 } ListWinInfo; | |
154 typedef struct | |
155 { | |
156 T_MMI_CONTROL mmi_control; | |
157 T_MFW_HND winLists; | |
158 SHORT id; | |
159 T_MFW_HND Parent; | |
160 T_MFW_HND kbdLists; | |
161 T_MFW_HND kbdLists_long; | |
162 T_MFW_HND MenuLists; | |
163 MfwMnuAttr MenuListsAttr; | |
164 ListCbFunc Callback; | |
165 UBYTE ExitReason; | |
166 ListMenuData *MenuData; | |
167 } ListIconsWinInfo; | |
168 /* PROTOTYPES */ | |
169 | |
170 T_MFW listDisplayListMenu (MfwHnd Parent, ListMenuData *Data, ListCbFunc cbFunc, int inUnicode); | |
171 T_MFW listIconsDisplayListMenu (MfwHnd Parent, ListMenuData *Data, ListCbFunc cbFunc,int inUnicode); | |
172 void listsIconsDestroy(T_MFW_HND win); | |
173 void listsDestroy(T_MFW_HND win); | |
174 #endif /* _DEF_MMI_LISTS_H_ */ |