FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiLists.h @ 113:9c079f8f71a0
mmiLists.h: bogotab fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 09 Nov 2020 01:27:51 +0000 |
parents | c0052fe355d3 |
children |
comparison
equal
deleted
inserted
replaced
112:5b6cd82fedea | 113:9c079f8f71a0 |
---|---|
1 #ifndef _DEF_MMI_LISTS_H_ | 1 #ifndef _DEF_MMI_LISTS_H_ |
2 #define _DEF_MMI_LISTS_H_ | 2 #define _DEF_MMI_LISTS_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: MmiLists.h | 18 $File: MmiLists.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: MmiLists.h | 31 $History: MmiLists.h |
32 | 32 |
33 May 18, 2006 REF: DRT OMAPS00076438 xdeepadh | 33 May 18, 2006 REF: DRT OMAPS00076438 xdeepadh |
34 Description: Scrolling not implemented in Imageviewer | 34 Description: Scrolling not implemented in Imageviewer |
35 Solution: The support for scrolling has been provided. | 35 Solution: The support for scrolling has been provided. |
36 | 36 |
37 May 03, 2006 REF: DRT OMAPS00076439 xdeepadh | 37 May 03, 2006 REF: DRT OMAPS00076439 xdeepadh |
38 Description: Image viewer back not working | 38 Description: Image viewer back not working |
39 Solution: The Preview List will be repopulated, when the list window is | 39 Solution: The Preview List will be repopulated, when the list window is |
40 resumed. | 40 resumed. |
41 | 41 |
42 Dec 22, 2005 REF: ENH xdeepadh | 42 Dec 22, 2005 REF: ENH xdeepadh |
43 Description: Image Viewer Application | 43 Description: Image Viewer Application |
44 Solution: Implemeted the Image Viewer to view the jpeg images | 44 Solution: Implemeted the Image Viewer to view the jpeg images |
45 | 45 |
46 xrashmic 5 Oct, 2005 MMI-SPR-29356, MMI-SPR-29357 | 46 xrashmic 5 Oct, 2005 MMI-SPR-29356, MMI-SPR-29357 |
47 Using the MenuSelect Key for requesting the help info in STK menu. | 47 Using the MenuSelect Key for requesting the help info in STK menu. |
48 | 48 |
49 March 01, 2005 REF: ENH 29313 Deepa M.D | 49 March 01, 2005 REF: ENH 29313 Deepa M.D |
50 Isolating colour build related changes from MMI LITE flag. | 50 Isolating colour build related changes from MMI LITE flag. |
51 The proper Feature flag COLORDISPLAY was used for all color | 51 The proper Feature flag COLORDISPLAY was used for all color |
52 related changes. | 52 related changes. |
53 | 53 |
54 | 54 |
55 $End | 55 $End |
56 | 56 |
57 *******************************************************************************/ | 57 *******************************************************************************/ |
70 #define SNAPSHOT_SIZE_6 6 | 70 #define SNAPSHOT_SIZE_6 6 |
71 | 71 |
72 #define LISTS_REASON_NULL 0 | 72 #define LISTS_REASON_NULL 0 |
73 #define LISTS_REASON_SELECT 1 | 73 #define LISTS_REASON_SELECT 1 |
74 #define LISTS_REASON_BACK 2 | 74 #define LISTS_REASON_BACK 2 |
75 #define LISTS_REASON_TIMEOUT 3 | 75 #define LISTS_REASON_TIMEOUT 3 |
76 #define LISTS_REASON_CLEAR 4 | 76 #define LISTS_REASON_CLEAR 4 |
77 #define LISTS_REASON_SCROLL 5 | 77 #define LISTS_REASON_SCROLL 5 |
78 #define LISTS_REASON_HANGUP 6 | 78 #define LISTS_REASON_HANGUP 6 |
79 #define LISTS_REASON_SEND 7 | 79 #define LISTS_REASON_SEND 7 |
80 #define LISTS_REASON_CALL 8 | 80 #define LISTS_REASON_CALL 8 |
81 // Dec 22, 2005 REF: ENH xdeepadh -Imageviewer | 81 // Dec 22, 2005 REF: ENH xdeepadh -Imageviewer |
82 #define LISTS_REASON_SCROLL_UP 9 | 82 #define LISTS_REASON_SCROLL_UP 9 |
83 #define LISTS_REASON_SCROLL_DOWN 10 | 83 #define LISTS_REASON_SCROLL_DOWN 10 |
84 #define LISTS_REASON_RESUME 11 | 84 #define LISTS_REASON_RESUME 11 |
85 #define LISTS_REASON_SUSPEND 12 | 85 #define LISTS_REASON_SUSPEND 12 |
86 #define LISTS_REASON_VISIBLE 13 | 86 #define LISTS_REASON_VISIBLE 13 |
87 #define LISTS_REASON_DRAWCOMPLETE 14 | 87 #define LISTS_REASON_DRAWCOMPLETE 14 |
88 | 88 |
89 | 89 |
90 /*Event which can be sent to list window*/ | 90 /*Event which can be sent to list window*/ |
91 #define E_LIST_DESTROY 3 /*SPR 2132, destroy window*/ | 91 #define E_LIST_DESTROY 3 /*SPR 2132, destroy window*/ |
92 | 92 |
104 | 104 |
105 | 105 |
106 | 106 |
107 typedef struct | 107 typedef struct |
108 { | 108 { |
109 MfwHnd win; | 109 MfwHnd win; |
110 MfwMnuAttr *Attr; /* Menu attributes */ | 110 MfwMnuAttr *Attr; /* Menu attributes */ |
111 MfwMnuItem *List; /* List menu text strings. */ | 111 MfwMnuItem *List; /* List menu text strings. */ |
112 UBYTE ListLength; /* Number of entries in list menu. */ | 112 UBYTE ListLength; /* Number of entries in list menu. */ |
113 UBYTE ListPosition; /* True cursor position in list menu. */ | 113 UBYTE ListPosition; /* True cursor position in list menu. */ |
114 UBYTE CursorPosition; /* Cursor position in list snapshot. */ | 114 UBYTE CursorPosition; /* Cursor position in list snapshot. */ |
115 UBYTE SnapshotSize; /* Number of list entries to view. */ | 115 UBYTE SnapshotSize; /* Number of list entries to view. */ |
116 U8 Font; /* List menu font. */ | 116 U8 Font; /* List menu font. */ |
117 BOOL Strings; /* TRUE = string display; FALSE = IDs */ | 117 BOOL Strings; /* TRUE = string display; FALSE = IDs */ |
118 int LeftSoftKey; /* Left softkey text. */ | 118 int LeftSoftKey; /* Left softkey text. */ |
119 int RightSoftKey; /* Right softkey text. */ | 119 int RightSoftKey; /* Right softkey text. */ |
120 MfwEvt KeyEvents; /* Keyboard events to be handled. */ | 120 MfwEvt KeyEvents; /* Keyboard events to be handled. */ |
121 UBYTE Reason; /* User defined exit reason. */ | 121 UBYTE Reason; /* User defined exit reason. */ |
122 UBYTE autoDestroy; | 122 UBYTE autoDestroy; |
123 UBYTE selectKey; //xrashmic 5 Oct, 2005 MMI-SPR-29356, MMI-SPR-29357 | 123 UBYTE selectKey; //xrashmic 5 Oct, 2005 MMI-SPR-29356, MMI-SPR-29357 |
124 //March 01, 2005 REF: ENH 29313 Deepa M.D | 124 //March 01, 2005 REF: ENH 29313 Deepa M.D |
125 // Isolating colour build related changes from MMI LITE flag. | 125 // Isolating colour build related changes from MMI LITE flag. |
126 // The proper Feature flag COLORDISPLAY was used for all color | 126 // The proper Feature flag COLORDISPLAY was used for all color |
127 //related changes. | 127 //related changes. |
128 #ifdef COLOURDISPLAY | 128 #ifdef COLOURDISPLAY |
129 U32 listCol; | 129 U32 listCol; |
130 #else | 130 #else |
131 U8 listCol;/*SPR 2686*/ | 131 U8 listCol;/*SPR 2686*/ |
132 #endif | 132 #endif |
133 MfwHnd mfw_iv_handle; | 133 MfwHnd mfw_iv_handle; |
134 int lineHeight; | 134 int lineHeight; |
135 BOOL block_keys; | 135 BOOL block_keys; |
136 } ListMenuData; | 136 } ListMenuData; |
149 MfwMnuAttr MenuListsAttr; | 149 MfwMnuAttr MenuListsAttr; |
150 ListCbFunc Callback; | 150 ListCbFunc Callback; |
151 UBYTE ExitReason; | 151 UBYTE ExitReason; |
152 ListMenuData MenuData; | 152 ListMenuData MenuData; |
153 } ListWinInfo; | 153 } ListWinInfo; |
154 | |
154 typedef struct | 155 typedef struct |
155 { | 156 { |
156 T_MMI_CONTROL mmi_control; | 157 T_MMI_CONTROL mmi_control; |
157 T_MFW_HND winLists; | 158 T_MFW_HND winLists; |
158 SHORT id; | 159 SHORT id; |
169 | 170 |
170 T_MFW listDisplayListMenu (MfwHnd Parent, ListMenuData *Data, ListCbFunc cbFunc, int inUnicode); | 171 T_MFW listDisplayListMenu (MfwHnd Parent, ListMenuData *Data, ListCbFunc cbFunc, int inUnicode); |
171 T_MFW listIconsDisplayListMenu (MfwHnd Parent, ListMenuData *Data, ListCbFunc cbFunc,int inUnicode); | 172 T_MFW listIconsDisplayListMenu (MfwHnd Parent, ListMenuData *Data, ListCbFunc cbFunc,int inUnicode); |
172 void listsIconsDestroy(T_MFW_HND win); | 173 void listsIconsDestroy(T_MFW_HND win); |
173 void listsDestroy(T_MFW_HND win); | 174 void listsDestroy(T_MFW_HND win); |
175 | |
174 #endif /* _DEF_MMI_LISTS_H_ */ | 176 #endif /* _DEF_MMI_LISTS_H_ */ |