FreeCalypso > hg > leo2moko-debug
comparison g23m/condat/ms/src/bmi/MmiChineseInput.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
| author | Space Falcon <falcon@ivan.Harhan.ORG> |
|---|---|
| date | Mon, 01 Jun 2015 03:24:05 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:509db1a7b7b8 |
|---|---|
| 1 | |
| 2 | |
| 3 #ifndef _DEF_MMI_CHINESE_H_ | |
| 4 #define _DEF_MMI_CHINESE_H_ | |
| 5 /******************************************************************************* | |
| 6 | |
| 7 CONDAT (UK) | |
| 8 | |
| 9 ******************************************************************************** | |
| 10 | |
| 11 This software product is the property of Condat (UK) Ltd and may not be | |
| 12 disclosed to any third party without the express permission of the owner. | |
| 13 | |
| 14 ******************************************************************************** | |
| 15 | |
| 16 $Project name: Basic MMI | |
| 17 $Project code: BMI (6349) | |
| 18 $Module: MMChineseInput | |
| 19 $File: MMChineseInput.h | |
| 20 $Revision: 1.0 | |
| 21 | |
| 22 $Author: Condat(UK) | |
| 23 $Date: 25/10/00 | |
| 24 | |
| 25 ******************************************************************************** | |
| 26 | |
| 27 Description: | |
| 28 | |
| 29 | |
| 30 | |
| 31 ******************************************************************************** | |
| 32 $History: MMChineseInput.h | |
| 33 | |
| 34 25/10/00 Original Condat(UK) BMI version. | |
| 35 03/10/02 Replaced most of the file with version on 3.3.3 line (MC, SPR 1242) | |
| 36 $End | |
| 37 | |
| 38 *******************************************************************************/ | |
| 39 #include "zi8api.h" | |
| 40 /* SPR#1428 - SH - New Editor changes */ | |
| 41 #ifdef NEW_EDITOR | |
| 42 #include "ATBCommon.h" | |
| 43 #include "ATBDisplay.h" | |
| 44 #include "ATBEditor.h" | |
| 45 #include "AUIEditor.h" | |
| 46 #else | |
| 47 #include "MmiEditor.h" | |
| 48 #endif | |
| 49 | |
| 50 | |
| 51 #ifndef LSCREEN | |
| 52 #define CANDIDATES_PER_GROUP 7 | |
| 53 #else | |
| 54 #define CANDIDATES_PER_GROUP 14 | |
| 55 #endif | |
| 56 //#define TEXT_BUFFER_EDIT_SIZE 80 // size of 80 is defined for chinese SMS | |
| 57 #define TEXT_BUFFER_EXTRA_SPACE 20 //This is the zise allowed for element buffer. | |
| 58 | |
| 59 //define for InputScreenType | |
| 60 #define TEXT_DISPLAY_SCREEN 1 | |
| 61 #define STROKE_INPUT_SCREEN 2 | |
| 62 #define PINYIN_INPUT_SCREEN 3 | |
| 63 #define WORD_ASSOCIATION_SCREEN 4 | |
| 64 #define SYMBOL_INPUT_SCREEN 5 | |
| 65 | |
| 66 //define for EditorMode | |
| 67 #define STROKE_INPUT_MODE 10 | |
| 68 #define PINYIN_INPUT_MODE 11 | |
| 69 #define LATIN_INPUT_MODE 12 | |
| 70 | |
| 71 typedef enum | |
| 72 { | |
| 73 CHINESE_INPUT_INIT, | |
| 74 CHINESE_INPUT_DESTROY, /*just destroy chinese editor window*/ | |
| 75 CHINESE_INPUT_DEINIT, /*SPR 1752, destroy chinese editor window and call callback function*/ | |
| 76 ADD_SYMBOL, | |
| 77 LATIN_INPUT | |
| 78 } chinese_editor_events; | |
| 79 | |
| 80 | |
| 81 typedef struct | |
| 82 { | |
| 83 char * TextString; | |
| 84 #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ | |
| 85 T_AUI_EDIT_CB Callback; | |
| 86 #else /* NEW_EDITOR */ | |
| 87 T_EDIT_CB Callback; | |
| 88 #endif /* NEW_EDITOR */ | |
| 89 USHORT Identifier; | |
| 90 int LeftSoftKey; | |
| 91 UBYTE DestroyEditor; | |
| 92 USHORT EditorSize; | |
| 93 } T_CHINESE_DATA; | |
| 94 | |
| 95 //typedef void (*T_CHINESE_EDIT_CB) (T_MFW_HND, USHORT, USHORT); | |
| 96 | |
| 97 | |
| 98 T_MFW_HND chinese_input (T_MFW_HND parent_win, | |
| 99 T_CHINESE_DATA * chinese_data); | |
| 100 void chinese_input_destroy (T_MFW_HND own_window); | |
| 101 | |
| 102 int chinese_input_menu(MfwMnu* m, MfwMnuItem* i); | |
| 103 | |
| 104 #endif | |
| 105 | |
| 106 | |
| 107 |
