⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editorpen.c

📁 The font library converting tool MCT mainly introduces the process of the font formats to give us a
💻 C
📖 第 1 页 / 共 5 页
字号:
//extern s32 mmi_ime_get_candidates_by_composition(UI_character_type *composition, UI_character_type *candidatebuffer);
//extern s32 mmi_ime_get_candidates_by_phrase(UI_character_type phrase, UI_character_type *candidatebuffer);
//extern s32 mmi_ime_get_candidates_by_page(S32 page, UI_character_type *candidatebuffer);
extern s32 mmi_ime_smart_latin_get_candidates_by_key_sequence(
            mmi_keypads_enum *key_sequence,
            S32 key_sequence_length,
            UI_character_type *candidatebuffer);
extern S32 mmi_ime_smart_latin_get_candidates_by_index(S32 *index, UI_character_type *candidatebuffer);
extern S32 mmi_ime_smart_bpmf_pinyin_get_syllable_by_key_sequence(
            mmi_keypads_enum *key_sequence,
            S32 key_sequence_length,
            UI_character_type *syllable_buffer,
            S32 start_index,
            S32 end_index);
extern S32 mmi_ime_chinese_stroke_get_candidates_by_key_sequence(
            mmi_keypads_enum *key_sequence,
            S32 key_sequence_length,
            UI_character_type *candidatebuffer,
            UI_character_type *strokebuffer);
extern void wgui_set_singleline_RSK(void);
extern void handle_category28_input(void);
extern void wgui_handle_inputbox_input(void);
extern void wgui_handle_qsearch_singleline_inputbox_change_input_mode(void);
extern void cat200_virtual_keypad_callback(void);
extern void RedrawCategoryControlledArea200Screen(dm_coordinates *coordinate);
extern void wgui_redraw_input_information_bar(void);
extern void change_EMS_inputbox_mode(byte mode);
extern void wgui_EMS_redraw_input_information_bar(void);
extern void wgui_inline_edit_default_list_highlight_handler(s32 item_index);
extern void wgui_handle_singleline_inputbox_change_input_mode(void);
extern void wgui_handle_inline_singleline_inputbox_change_input_mode(void);
extern MMI_BOOL get_multitap_state(void);
extern void inline_edit_change_singleline_inputbox_mode(byte mode);
extern U8 *wgui_inline_edit_get_current_item_history(U8 *history_buffer);

/* W06.09 Touch Screen With Keypad V1 */
extern FuncPtr currKeyFuncPtrs[MAX_KEYS][MAX_KEY_TYPE];
extern UI_character_type *get_bpmf_multitap_string(s32 i);
extern const UI_character_type numberless_lowercase_multitap_strings[MAX_MULTITAPS][32];
extern void handle_inline_text_edit_right_softkey_up(void);
extern void cat201_register_key_func(void);
extern void RedrawCategoryControlledArea201Screen(void);
extern S32 handwriting_stroke_layer_mem;
extern s32 pixtel_UI_EMS_input_box_highlight_cursor_number(UI_EMS_input_box *b, s32 numOfChar);
extern void pixtel_UI_single_line_input_box_locate_cursor(single_line_input_box *b);
extern void draw_resizeable_arrow(S32 x, S32 y, U8 arrow_type, color c, S32 width, S32 height);
extern s32 UI_get_font_height(UI_font_type f);
extern void wgui_EMS_set_text_format(EMSTextFormat text_format);

/***************************************************************************** 
* Global Function
*****************************************************************************/
extern void mmi_pen_editor_hand_writing_initailize(void);
extern s32 mmi_pen_editor_hand_writing_get_candidates(
            U16 *stroke_buffer,
            UI_character_type *candidate_array,
            mmi_pen_editor_input_type_enum h_w_type,
            s32 number);

#if  1//!defined(__MMI_T9__) && !defined(__MMI_ZI__)

//#if !defined(__MMI_TOUCH_SCREEN__)// xiaoyan
//#ifdef MMI_ON_WIN32     wenjh __MMI_GB__
#if 1
/*****************************************************************************
 * FUNCTION
 *  mmi_ime_get_candidates_by_phrase
 * DESCRIPTION
 *  
 * PARAMETERS
 *  phrase              [IN]        
 *  candidatebuffer     [?]         
 * RETURNS
 *  
 *****************************************************************************/
s32 mmi_ime_get_candidates_by_phrase(UI_character_type phrase, UI_character_type *candidatebuffer)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
	/*
	GBEvent gbevent;
	gbevent.nType=GBET_In_GetAssociate;
	candidatebuffer[0]=phrase;
	gbevent.param1=(GBINT32)candidatebuffer;
	GBHandleInputEvent(&gbevent);
	*/
    return 0;
}


/*****************************************************************************
 * FUNCTION
 *  mmi_ime_get_candidates_by_composition
 * DESCRIPTION
 *  
 * PARAMETERS
 *  composition         [?]     
 *  candidatebuffer     [?]     
 * RETURNS
 *  
 *****************************************************************************/
s32 mmi_ime_get_candidates_by_composition(UI_character_type *composition, UI_character_type *candidatebuffer)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return 0;
}


/*****************************************************************************
 * FUNCTION
 *  mmi_ime_get_candidates_by_page
 * DESCRIPTION
 *  
 * PARAMETERS
 *  page                [IN]        
 *  candidatebuffer     [?]         
 * RETURNS
 *  
 *****************************************************************************/
s32 mmi_ime_get_candidates_by_page(S32 page, UI_character_type *candidatebuffer)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return 0;
}

#endif //#if !defined(__MMI_TOUCH_SCREEN__)
/*****************************************************************************
 * FUNCTION
 *  mmi_ime_smart_latin_get_candidates_by_key_sequence
 * DESCRIPTION
 *  
 * PARAMETERS
 *  key_sequence            [?]         
 *  key_sequence_length     [IN]        
 *  candidatebuffer         [?]         
 * RETURNS
 *  
 *****************************************************************************/
s32 mmi_ime_smart_latin_get_candidates_by_key_sequence(
        mmi_keypads_enum *key_sequence,
        S32 key_sequence_length,
        UI_character_type *candidatebuffer)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return 0;
}


/*****************************************************************************
 * FUNCTION
 *  mmi_ime_smart_latin_get_candidates_by_index
 * DESCRIPTION
 *  
 * PARAMETERS
 *  index               [?]     
 *  candidatebuffer     [?]     
 * RETURNS
 *  
 *****************************************************************************/
S32 mmi_ime_smart_latin_get_candidates_by_index(S32 *index, UI_character_type *candidatebuffer)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return 0;
}


/*****************************************************************************
 * FUNCTION
 *  mmi_ime_chinese_stroke_get_candidates_by_key_sequence
 * DESCRIPTION
 *  
 * PARAMETERS
 *  key_sequence            [?]         
 *  key_sequence_length     [IN]        
 *  candidatebuffer         [?]         
 *  strokebuffer            [?]         
 * RETURNS
 *  
 *****************************************************************************/
S32 mmi_ime_chinese_stroke_get_candidates_by_key_sequence(
        mmi_keypads_enum *key_sequence,
        S32 key_sequence_length,
        UI_character_type *candidatebuffer,
        UI_character_type *strokebuffer)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return 0;
}


/*****************************************************************************
 * FUNCTION
 *  mmi_ime_smart_bpmf_pinyin_get_syllable_by_key_sequence
 * DESCRIPTION
 *  
 * PARAMETERS
 *  key_sequence            [?]         
 *  key_sequence_length     [IN]        
 *  syllable_buffer         [?]         
 *  start_index             [IN]        
 *  end_index               [IN]        
 * RETURNS
 *  
 *****************************************************************************/
S32 mmi_ime_smart_bpmf_pinyin_get_syllable_by_key_sequence(
        mmi_keypads_enum *key_sequence,
        S32 key_sequence_length,
        UI_character_type *syllable_buffer,
        S32 start_index,
        S32 end_index)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return 0;
}

#endif /* !defined(__MMI_T9__) && !defined(__MMI_ZI__) */ 

#if !defined(__MMI_HANWANG__) && !defined(__MMI_PENPOWER__)


/*****************************************************************************
 * FUNCTION
 *  mmi_pen_editor_hand_writing_initailize
 * DESCRIPTION
 *  \brief This function is used to initialize hand writing.(Dummy)
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_pen_editor_hand_writing_initailize(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
}


/*****************************************************************************
 * FUNCTION
 *  mmi_pen_editor_hand_writing_get_candidates
 * DESCRIPTION
 *  \brief This function is used to get candidates from hand writing.(Dummy)
 * PARAMETERS
 *  stroke_buffer       [?]         the buffer of the stroke
 *  candidate_array     [?]         the buffer to store candidates
 *  h_w_type            [IN]        which kind of candidate should return, Chinese, English, Symbol (need to revise)
 *  number              [IN]        the number of the candidates wished
 * RETURNS
 *  \return s32 : the number of the candidates returned
 *****************************************************************************/
s32 mmi_pen_editor_hand_writing_get_candidates(
        U16 *stroke_buffer,
        UI_character_type *candidate_array,
        mmi_pen_editor_input_type_enum h_w_type,
        s32 number)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    return 0;
}
#endif /* !defined(__MMI_HANWANG__) && !defined(__MMI_PENPOWER__) */ 

/*****************************************************************************
 * FUNCTION
 *  mmi_pen_editor_compute_candidate_input_box_height
 * DESCRIPTION
 *  To compute the height of the candidate input box
 * PARAMETERS
 *  void
 * RETURNS
 *  The height of the candidate input box
 *****************************************************************************/
S32 mmi_pen_editor_compute_candidate_input_box_height(void)
{
    int height;
    height = UI_get_font_height(candidate_singleline_inputbox_theme.text_font) + 2;
    if (height < MMI_multitap_height)
    {
        height = MMI_multitap_height;
    }
    return height;
}
/*****************************************************************************
 * FUNCTION
 *  mmi_pen_editor_change_handwriting_area
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
static void mmi_pen_editor_change_handwriting_area(void)
{
#ifdef __MMI_HAND_WRITING_EXCLUDE_VK_AREA__
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if (gPenEditorEnableHandWriting)
    {
        mmi_pen_handwriting_area_struct ext_stroke;

        ext_stroke.x1 = 0;
        ext_stroke.y1 = 0;
        ext_stroke.x2 = UI_device_width - 1;
        ext_stroke.y2 = UI_device_height - 1;

        g_pen_editor_original_handwriting_area.y2 = MMI_virtual_keyboard.y;
        if (gPenEditorSelectCandidate || gPenEditorVKCandidate)
        {
            g_pen_editor_original_handwriting_area.y2 = gPenEditorCandidateInputBox.y;
        }
        if (PEN_EDITOR_CANDIDATE_OFF != g_pen_editor_composition_state.candidate_state)
        {
            g_pen_editor_original_handwriting_area.y2 = g_pen_editor_composition_input_box.y;
        }
        mmi_pen_change_handwriting_area(1, &g_pen_editor_original_handwriting_area, &ext_stroke);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -