📄 dict_help.c
字号:
#ifdef __PALM_LEARN_MACHINE__
#include "kal_release.h"
#include "kal_trace.h"
#include "stack_common.h"
#include "stack_msgs.h"
#include "app_ltlcom.h" /* Task message communiction */
#include "syscomp_config.h"
#include "task_config.h" /* Task creation */
#include "app_buff_alloc.h" /* Declaration of buffer management API */
#include "stacklib.h" /* Basic type for dll, evshed, stacktimer */
#include "event_shed.h" /* Event scheduler */
#include "stack_timer.h" /* Stack timer */
/* global includes */
#include "l1audio.h"
#include "device.h"
#include "custom_equipment.h"
#include "resource_audio.h"
#include "nvram_enums.h"
#include "nvram_struct.h"
#include "nvram_user_defs.h"
#include "nvram_data_items.h"
#include "custom_nvram_editor_data_item.h"
#include "fat_fs.h" /* for FAT FS */
#include "drm_gprot.h" /* DRM_REPLACE */
#include "FSAL.h"
#include "MP4_Parser.h"
#include "med_global.h"
#include "aud_defs.h"
#include "med_struct.h"
#include "med_api.h"
#include "med_context.h"
#include "aud_main.h"
#include "med_main.h"
#include "med_utility.h"
#include "dict.h"
struct VERT_SCROLL_ABR_STRUCT dict_help_vertical_scroll_bar;
int dict_help_line_num;
int dict_help_cur_line;
unsigned char help_content_help[]={
213,198,208,199,180,202,176,212,212,218,206,180,189,248,208,208,200,206,186,206,202,228,200,235,181,196,199,233,191,246,207,194,163,172,176,180,215,243,211,210,183,189,207,242,188,252,212,218,184,247,177,190,180,202,181,228,214,208,199,208,187,187,161,163,179,253,193,203,214,208,187,170,186,186,211,239,215,214,181,228,205,226,163,172,198,228,203,251,181,196,188,184,177,190,180,202,181,228,181,196,189,231,195,230,214,208,182,188,183,214,206,170,180,202,193,208,177,237,199,248,186,205,189,226,202,205,199,248,163,172,176,180,215,243,211,210,183,189,207,242,188,252,192,180,199,208,187,187,199,248,211,242,163,172,176,180,201,207,207,194,183,189,207,242,188,252,210,198,182,175,185,246,182,175,204,245,161,163,40,204,216,177,240,215,162,210,226,163,186,213,198,208,199,180,202,176,212,181,196,180,202,191,226,202,253,190,221,182,188,180,230,183,197,212,218,202,214,187,250,181,196,84,191,168,214,208,163,172,210,187,181,169,177,187,201,190,179,253,180,202,181,228,189,171,206,222,183,168,202,185,211,195,163,172,199,235,211,195,187,167,210,187,182,168,215,162,210,226,178,187,210,170,201,190,179,253,84,191,168,214,208,181,196,161,176,100,105,99,116,161,177,206,196,188,254,188,208,163,172,210,178,178,187,210,170,198,198,187,181,213,226,184,246,206,196,188,254,188,208,214,208,181,196,200,206,186,206,202,253,190,221,161,163,41,13,10,91,49,93,212,218,207,214,180,250,211,162,186,186,180,243,180,202,181,228,214,208,163,172,212,218,181,165,180,202,202,228,200,235,191,242,214,208,202,228,200,235,203,249,210,170,178,233,209,175,181,196,211,162,206,196,181,165,180,202,214,208,181,196,215,214,196,184,163,172,195,191,182,224,202,228,200,235,210,187,184,246,215,214,196,184,163,172,198,193,196,187,214,208,190,205,187,225,212,189,192,180,212,189,190,171,200,183,181,196,193,170,207,235,179,246,207,224,185,216,193,170,181,196,211,162,206,196,181,165,180,202,163,172,180,203,202,177,163,172,191,201,210,212,176,180,201,207,207,194,183,189,207,242,188,252,189,248,208,208,181,165,180,202,181,196,209,176,213,210,163,172,210,178,191,201,210,212,188,204,208,248,189,171,181,165,180,202,203,249,211,208,215,214,196,184,202,228,205,234,163,172,183,162,207,214,207,235,210,170,178,233,209,175,181,196,181,165,180,202,186,243,163,172,176,209,209,161,214,208,204,245,210,198,181,189,203,249,178,233,209,175,181,196,181,165,180,202,201,207,212,218,198,193,196,187,181,196,211,210,177,223,189,226,202,205,199,248,214,208,207,212,202,190,203,249,178,233,191,180,181,165,180,202,181,196,210,244,177,234,161,162,180,202,181,196,208,212,214,202,161,162,186,186,211,239,189,226,202,205,186,205,192,253,190,228,161,163,176,180,201,190,179,253,188,252,201,190,179,253,202,228,200,235,191,242,214,208,181,196,215,214,196,184,161,163,13,10,91,50,93,212,218,207,214,180,250,186,186,211,162,180,243,180,202,181,228,214,208,163,172,176,180,215,243,207,194,189,199,181,196,202,228,200,235,188,252,189,248,200,235,186,186,215,214,202,228,200,235,189,231,195,230,163,172,202,228,200,235,207,235,210,170,178,233,209,175,181,196,186,186,215,214,187,242,180,202,163,172,176,180,161,176,200,183,182,168,161,177,186,243,163,172,177,224,188,173,189,231,195,230,181,196,186,186,215,214,190,205,187,225,207,212,202,190,181,189,202,228,200,235,191,242,214,208,161,163,191,201,210,212,212,218,177,224,188,173,189,231,195,230,202,228,200,235,207,235,210,170,178,233,209,175,181,196,180,202,215,233,214,208,181,196,203,249,211,208,215,214,163,172,210,178,191,201,210,212,214,187,202,228,200,235,210,187,178,191,183,214,163,172,205,168,185,253,180,202,181,228,181,196,193,170,207,235,185,166,196,220,213,210,181,189,203,249,210,170,178,233,191,180,181,196,180,202,215,233,161,163,176,209,209,161,214,208,204,245,210,198,181,189,207,235,210,170,178,233,191,180,181,196,186,186,215,214,187,242,180,202,215,233,201,207,163,172,212,218,198,193,196,187,211,210,177,223,181,196,189,226,202,205,199,248,214,208,184,248,179,246,203,249,178,233,186,186,215,214,187,242,180,202,215,233,181,196,211,162,206,196,189,226,202,205,161,163,186,186,210,235,211,162,180,202,181,228,191,201,210,212,214,167,179,214,181,165,215,214,161,162,50,215,
214,180,202,161,162,51,215,214,180,202,186,205,52,215,214,180,202,181,196,178,233,209,175,161,163,13,10,91,51,93,212,218,214,208,187,170,179,201,211,239,180,202,181,228,214,208,163,172,176,180,215,243,207,194,189,199,181,196,202,228,200,235,188,252,189,248,200,235,186,186,215,214,202,228,200,235,189,231,195,230,163,172,202,228,200,235,207,235,210,170,178,233,209,175,181,196,179,201,211,239,163,172,176,180,161,176,200,183,182,168,161,177,186,243,163,172,177,224,188,173,189,231,195,230,181,196,186,186,215,214,190,205,187,225,207,212,202,190,181,189,202,228,200,235,191,242,214,208,161,163,191,201,210,212,212,218,177,224,188,173,189,231,195,230,202,228,200,235,210,170,178,233,209,175,181,196,179,201,211,239,214,208,181,196,203,249,211,208,215,214,163,172,210,178,191,201,210,212,214,187,202,228,200,235,210,187,178,191,183,214,163,172,205,168,185,253,180,202,181,228,181,196,193,170,207,235,185,166,196,220,213,210,181,189,203,249,210,170,178,233,191,180,181,196,179,201,211,239,161,163,176,209,209,161,214,208,204,245,210,198,181,189,207,235,210,170,178,233,191,180,181,196,179,201,211,239,201,207,163,172,212,218,198,193,196,187,211,210,177,223,181,196,189,226,202,205,199,248,214,208,184,248,179,246,203,249,178,233,179,201,211,239,181,196,189,226,202,205,161,163,13,10,91,52,93,212,218,214,208,187,170,186,186,211,239,215,214,181,228,214,208,163,172,214,187,196,220,178,233,209,175,181,165,215,214,161,163,176,180,215,243,207,194,189,199,181,196,202,228,200,235,188,252,189,248,200,235,186,186,215,214,202,228,200,235,189,231,195,230,163,172,202,228,200,235,207,235,210,170,178,233,209,175,181,196,186,186,215,214,163,172,214,187,196,220,202,228,200,235,210,187,184,246,215,214,163,172,176,180,161,176,200,183,182,168,161,177,186,243,163,172,177,224,188,173,189,231,195,230,181,196,186,186,215,214,190,205,187,225,207,212,202,190,181,189,202,228,200,235,191,242,214,208,161,163,212,218,202,228,200,235,191,242,181,196,207,194,183,189,184,248,179,246,184,195,186,186,215,214,181,196,189,226,202,205,196,218,200,221,163,172,198,228,214,208,176,252,192,168,163,186,186,186,215,214,198,180,210,244,161,162,215,162,210,244,161,162,189,226,202,205,161,162,177,202,187,173,202,253,161,162,178,191,202,215,181,200,208,197,207,162,161,163,13,10,91,53,93,212,218,211,162,206,196,200,203,195,251,180,202,181,228,214,208,163,172,178,233,209,175,178,217,215,247,183,189,183,168,205,172,211,162,186,186,180,243,180,202,181,228,161,163,212,218,181,165,180,202,202,228,200,235,191,242,214,208,202,228,200,235,203,249,210,170,178,233,209,175,181,196,211,162,206,196,200,203,195,251,181,165,180,202,214,208,181,196,215,214,196,184,163,172,195,191,182,224,202,228,200,235,210,187,184,246,215,214,196,184,163,172,198,193,196,187,214,208,190,205,187,225,212,189,192,180,212,189,190,171,200,183,181,196,193,170,207,235,179,246,207,224,185,216,193,170,181,196,211,162,206,196,200,203,195,251,181,165,180,202,163,172,180,203,202,177,163,172,191,201,210,212,176,180,201,207,207,194,183,189,207,242,188,252,189,248,208,208,181,165,180,202,181,196,209,176,213,210,163,172,210,178,191,201,210,212,188,204,208,248,189,171,181,165,180,202,203,249,211,208,215,214,196,184,202,228,205,234,163,172,183,162,207,214,207,235,210,170,178,233,209,175,181,196,181,165,180,202,186,243,163,172,176,209,209,161,214,208,204,245,210,198,181,189,203,249,178,233,209,175,181,196,181,165,180,202,201,207,163,172,198,193,196,187,211,210,177,223,181,196,189,226,202,205,199,248,187,225,184,248,179,246,207,224,211,166,181,196,186,186,211,239,195,251,179,198,161,163,13,10,91,54,93,212,218,211,162,206,196,181,216,195,251,180,202,181,228,214,208,163,172,178,233,209,175,178,217,215,247,183,189,183,168,205,172,211,162,186,186,180,243,180,202,181,228,161,163,212,218,181,165,180,202,202,228,200,235,191,242,214,208,202,228,200,235,203,249,210,170,178,233,209,175,181,196,211,162,206,196,181,216,195,251,181,165,180,202,214,208,181,196,215,214,196,184,163,172,195,191,182,224,202,228,200,235,210,187,184,246,215,214,196,184,163,172,198,193,196,187,214,208,190,205,187,225,212,189,192,180,212,189,190,171,200,183,181,196,193,170,207,
235,179,246,207,224,185,216,193,170,181,196,211,162,206,196,181,216,195,251,181,165,180,202,163,172,180,203,202,177,163,172,191,201,210,212,176,180,201,207,207,194,183,189,207,242,188,252,189,248,208,208,181,165,180,202,181,196,209,176,213,210,163,172,210,178,191,201,210,212,188,204,208,248,189,171,181,165,180,202,203,249,211,208,215,214,196,184,202,228,205,234,163,172,183,162,207,214,207,235,210,170,178,233,209,175,181,196,181,165,180,202,186,243,163,172,176,209,209,161,214,208,204,245,210,198,181,189,203,249,178,233,209,175,181,196,181,165,180,202,201,207,163,172,198,193,196,187,211,210,177,223,181,196,189,226,202,205,199,248,187,225,184,248,179,246,203,249,178,233,181,216,195,251,181,196,186,186,211,239,195,251,179,198,186,205,190,223,204,229,206,187,214,195,161,163,13,10,191,205,183,254,181,231,187,176,163,186,48,49,48,45,56,50,56,57,51,54,52,56,161,163,0,0,0
};
unsigned char help_content_charge[]={
213,198,208,199,180,202,176,212,196,210,192,168,49,48,182,224,205,242,181,196,184,247,192,224,180,202,187,227,163,172,212,180,211,218,184,247,214,214,179,169,207,250,180,202,181,228,181,196,200,168,205,254,202,253,190,221,163,172,206,170,196,250,204,225,185,169,203,230,202,177,161,162,203,230,181,216,161,162,203,230,201,237,181,196,183,173,210,235,186,205,209,167,207,176,183,254,206,241,163,172,176,252,192,168,211,162,210,235,186,186,161,162,186,186,210,235,211,162,161,162,186,186,215,214,207,234,189,226,161,162,179,201,211,239,181,228,185,202,161,162,211,162,206,196,198,240,195,251,161,162,181,216,195,251,203,247,210,253,181,200,183,199,179,163,183,225,184,187,181,196,196,218,200,221,163,172,211,200,198,228,202,199,186,186,211,239,215,214,181,228,186,205,179,201,211,239,180,202,181,228,211,208,214,250,211,218,196,250,213,230,213,253,193,203,189,226,214,208,185,250,181,196,206,196,187,175,192,250,202,183,161,163,202,208,179,161,188,219,214,181,186,195,188,184,176,217,212,170,181,196,180,202,181,228,202,233,188,174,163,172,186,195,188,184,176,217,212,170,181,196,181,231,215,211,180,202,181,228,207,214,212,218,213,198,208,199,180,202,176,212,195,191,177,190,180,202,181,228,195,191,212,194,181,196,202,185,211,195,183,209,189,246,206,170,49,212,170,190,205,191,201,210,212,184,227,182,168,163,172,199,225,203,201,215,212,212,218,203,230,201,237,202,185,211,195,163,172,202,185,211,195,183,209,205,168,185,253,182,204,208,197,183,189,202,189,191,219,179,253,163,172,211,195,187,167,189,248,200,235,213,198,208,199,180,202,176,212,189,231,195,230,212,218,204,225,202,190,191,242,214,208,181,227,187,247,200,183,182,168,186,243,183,189,191,201,213,253,179,163,202,185,211,195,163,172,183,241,212,242,214,187,196,220,228,175,192,192,178,187,196,220,202,228,200,235,163,172,206,222,183,168,213,253,179,163,178,233,209,175,202,185,211,195,161,163,13,10,213,198,208,199,180,202,176,212,196,218,200,221,183,225,184,187,185,166,196,220,199,191,180,243,163,172,212,180,211,218,161,182,207,214,180,250,211,162,186,186,180,243,180,202
,181,228,161,183,163,168,186,173,184,199,53,51,48,48,48,182,224,180,202,187,227,193,191,163,169,161,162,161,182,207,214,180,250,186,186,211,162,180,243,180,202,181,228,161,183,163,168,186,173,184,199,52,48,48,48,48,182,224,180,202,187,227,193,191,163,169,161,162,161,182,214,208,187,170,179,201,211,239,180,202,181,228,161,183,163,168,186,173,184,199,49,48,48,48,48,182,224,204,245,179,201,211,239,163,169,161,162,161,182,214,208,187,170,186,186,211,239,215,214,181,228,161,183,163,168,186,173,184,199,49,51,48,48,48,182,224,215,214,204,245,163,169,161,162,161,182,211,162,206,196,200,203,195,251,180,202,181,228,161,183,163,168,186,173,184,199,50,48,48,48,182,224,211,162,195,192,200,203,195,251,163,169,161,162,161,182,211,162,206,196,181,216,195,251,180,202,181,228,161,183,163,168,186,173,184,199,50,48,48,48,182,224,202,192,189,231,184,247,181,216,181,216,195,251,163,169,181,200,180,202,181,228,181,196,186,163,193,191,200,168,205,254,202,253,190,221,214,167,179,214,161,163,213,198,208,199,180,202,176,212,176,252,192,168,207,214,180,250,211,162,186,186,180,243,180,202,181,228,161,162,207,214,180,250,186,186,211,162,180,243,180,202,181,228,161,162,214,208,187,170,179,201,211,239,180,202,181,228,161,162,214,208,187,170,186,186,211,239,215,214,181,228,161,162,211,162,206,196,200,203,195,251,180,202,181,228,161,162,211,162,206,196,181,216,195,251,180,202,181,228,181,200,193,249,177,190,180,202,181,228,203,249,211,208,180,202,181,228,195,191,212,194,214,187,211,208,203,196,212,170,163,172,213,198,208,199,180,202,176,212,189,171,203,249,211,208,180,202,181,228,188,175,179,201,212,218,210,187,184,246,178,217,215,247,189,231,195,230,214,208,163,172,211,195,180,165,177,202,187,242,176,180,188,252,190,249,191,201,178,217,215,247,163,172,178,201,211,195,181,165,180,202,193,170,207,235,181,196,183,189,202,189,163,172,203,230,181,227,203,230,191,180,163,172,202,185,211,195,183,199,179,163,188,242,181,165,183,189,177,227,163,172,213,198,208,199,180,202,176,212,190,248,182,212,202,199,195,191,184,246,191,202,199,243,214,170,
202,182,181,196,200,203,206,239,179,172,203,249,214,181,181,196,209,161,212,241,163,172,187,185,181,200,202,178,195,180,196,216,163,172,188,180,191,201,204,229,209,233,176,201,163,161,
};
unsigned char *help_content_temp = NULL;
void dict_help_exit_fun();
void dict_help_charge_exit_fun();
void dict_help_win_fun(void)
{
U8 *guiBuffer;
Set_GOBACK_NORMAL();
EntryNewScreen(SCR_LEARN_MACHINE_DICT_MENU, dict_help_exit_fun, dict_help_win_fun, NULL);
guiBuffer = GetCurrGuiBuffer(SCR_LEARN_MACHINE_DICT_MENU);
if(help_content_temp == NULL)
help_content_temp = (unsigned char *)med_alloc_ext_mem(2500);
memset(help_content_temp,0,2500);
MY_GB_TO_UNICODE( help_content_temp, (unsigned char *) help_content_help, 2500);
ShowCategory74Screen(
STR_PALM_ENTRY_HELP,0,0,0,
STR_GLOBAL_BACK,
IMG_GLOBAL_BACK,
(U8*)help_content_temp,
mmi_ucs2strlen((const S8*)help_content_temp),
guiBuffer
);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
void dict_help_exit_fun()
{
if(help_content_temp != NULL)
{
med_free_ext_mem((void **)&help_content_temp);
help_content_temp = NULL;
}
MY_exitcatfun();
}
void dict_setting_win_fun(void)
{
Set_GOBACK_NORMAL();
LM_disable_softkey_flag=1;////禁止画 softkey 的图片
EntryNewScreen(SCR_ID_DICT_SETTING_WIN, MY_exitcatfun, dict_setting_win_fun, NULL);
entry_full_screen();
close_title_status_icon();////禁止显示状态条
dict_setting_draw_win_fun();
dict_setting_setkey_fun();
}
void dict_setting_draw_win_fun(void)
{
char cur_display_string[30];
Text_Clip_Begin();
dict_draw_picture_by_name((char *) "dict\\dict_start_menu.gif", 0, 0);
memset(cur_display_string,0,30);
MY_GB_TO_UNICODE((unsigned char *)cur_display_string,(unsigned char *)"确定", 30);
Show_Text_Best(4,200,200,24,(unsigned char *)cur_display_string,0,0,0);
memset(cur_display_string,0,30);
MY_GB_TO_UNICODE((unsigned char *)cur_display_string,(unsigned char *)"退出", 30);
Show_Text_Best(142,200,200,24,(unsigned char *)cur_display_string,0,0,0);
Text_Clip_End();
}
void dict_setting_setkey_fun()
{
ClearAllKeyHandler();
////左右键
SetKeyHandler(dict_setting_rsk_fun,KEY_RSK,KEY_EVENT_UP);//右软键
SetKeyHandler(MY_donothing,KEY_RSK,KEY_EVENT_LONG_PRESS);
SetKeyHandler(dict_setting_rsk_down_fun,KEY_RSK,KEY_EVENT_DOWN);
SetKeyHandler(dict_setting_lsk_fun,KEY_LSK,KEY_EVENT_UP);//左软键
SetKeyHandler(dict_setting_lsk_down_fun,KEY_LSK,KEY_EVENT_DOWN);
SetKeyHandler(dict_setting_lsk_fun,KEY_CSK,KEY_EVENT_UP);//中间
////四个方向键
SetKeyHandler(MY_donothing, KEY_UP_ARROW, KEY_EVENT_UP);//上
SetKeyHandler(MY_donothing, KEY_UP_ARROW, KEY_EVENT_DOWN);
SetKeyHandler(MY_donothing, KEY_DOWN_ARROW, KEY_EVENT_UP);//下
SetKeyHandler(MY_donothing, KEY_DOWN_ARROW, KEY_EVENT_DOWN);
SetKeyHandler(dict_setting_keyleft_up_fun, KEY_LEFT_ARROW, KEY_EVENT_UP);//左
SetKeyHandler(dict_setting_keyleft_down_fun, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
SetKeyHandler(dict_setting_keyright_up_fun, KEY_RIGHT_ARROW, KEY_EVENT_UP);//右
SetKeyHandler(dict_setting_keyright_down_fun, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
mmi_pen_register_down_handler(dict_setting_pendown_fun);
mmi_pen_register_up_handler(dict_setting_penup_fun);
}
void dict_setting_lsk_fun(void)
{
LM_dictions_mod();
}
void dict_setting_rsk_fun(void)
{
GoBackHistory();
}
extern void dict_setting_rsk_down_fun(void)
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -