Res_Setting.c
上传用户:dengyu
上传日期:2022-05-01
资源大小:153k
文件大小:390k
- ADD_APPLICATION_STRING2(STR_ID_NETSET_PREFERRED_MODE_WLAN_ONLY, "WLAN Only", "WLAN Only");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_PREFERRED_MODE_GSM_PREFERRED, "GSM Preferred", "GSM Preferred");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_PREFERRED_MODE_WLAN_PREFERRED, "WLAN Preferred", "WLAN Preferred");
- #endif /* __MMI_WLAN_FEATURES__ */
- ADD_APPLICATION_MENUITEM((MENU9186_SELECTION_MODE, MENU9185_NETWORK_SETUP,
- #ifdef __MANUAL_MODE_NW_SEL__
- 1+
- #endif
- #ifdef __MMI_WLAN_FEATURES__
- 1+
- #endif
- 2,
- MENU9186_SELECTION_MODE_AUTOMATIC,
- MENU9186_SELECTION_MODE_MANUAL,
- #ifdef __MANUAL_MODE_NW_SEL__
- MENU9186_SELECTION_MODE_CHOICE,
- #endif
- #ifdef __MMI_WLAN_FEATURES__
- MENU9187_PREFERRED_NETWORKS,
- #endif
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_MITEM9186, NULL));
- ADD_APPLICATION_MENUITEM((MENU9186_SELECTION_MODE_MANUAL, MENU9186_SELECTION_MODE, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST,
- #ifdef __MANUAL_MODE_NW_SEL__
- STR_ID_NETSET_SELECTION_SELECT_NETWORK,
- #else
- STR_GLOBAL_MANUAL,
- #endif
- NULL));
- ADD_APPLICATION_MENUITEM((MENU9186_SELECTION_MODE_AUTOMATIC, MENU9186_SELECTION_MODE, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST,
- #ifdef __MANUAL_MODE_NW_SEL__
- STR_ID_NETSET_SELECTION_NEW_SEARCH,
- #else
- STR_GLOBAL_AUTOMATIC,
- #endif
- NULL));
- #ifdef __MANUAL_MODE_NW_SEL__
- ADD_APPLICATION_MENUITEM((MENU9186_SELECTION_MODE_CHOICE, MENU9186_SELECTION_MODE, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_SELECTION_MODE_CHOICE, NULL));
- ADD_APPLICATION_STRING2(STR_ID_NETSET_SELECTION_MODE_CHOICE, "Selection Mode", "Network Selection Mode");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_SELECTION_NEW_SEARCH, "New Search", "New Search");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_SELECTION_SELECT_NETWORK, "Select Network", "Select Network");
- #endif /* __MANUAL_MODE_NW_SEL__ */
- ADD_APPLICATION_MENUITEM((MENU9187_PREFERRED_NETWORKS, MENU9185_NETWORK_SETUP, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_MITEM9187, NULL));
- ADD_APPLICATION_MENUITEM((MENU9188_BAND_SELECTION, MENU9185_NETWORK_SETUP, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_MITEM9188, NULL));
- #if defined(__GSM_RAT__) && defined(__WCDMA_RAT__)
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- #ifdef __MMI_NETSET_3G_ENHANCE__
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- #endif /* __MMI_NETSET_3G_ENHANCE__ */
- #endif /* defined(__GSM_RAT__) && defined(__WCDMA_RAT__) */
- #if defined(__OP12__) && defined(__NBR_CELL_INFO__)
- ADD_APPLICATION_MENUITEM((MENU_ID_NETSET_IDLE_CELL_INFO, MENU9185_NETWORK_SETUP, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_IND_NETSET_IDLE_CELL_INFO, NULL));
-
- ADD_APPLICATION_STRING2(STR_IND_NETSET_IDLE_CELL_INFO, "Cell information status", "Idle cell information");
- #endif /* #if defined(__OP12__) && defined(__NBR_CELL_INFO__) */
- ADD_APPLICATION_STRING2(STR_ID_NETSET_ITEM_WCDMA, "WCDMA", "Menu item string for WCDMA");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_ITEM_GSM, "GSM/GPRS", "Menu item string for GSM");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_ITEM_ALL, "Dual Mode", "Menu item string for Dual Mode");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_MITEM9185, "Network Setup", "Menu item string for Network Setup");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_MITEM9186, "Network Selection", "Menu item string for Selection Mode");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_MITEM9187, "Preferred Networks", "Menu item string for Preferred Networks");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_MITEM9188, "Band Selection", "Menu item string for Band Selection");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_OPERATOR, "OPERATOR", "text of network information");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_SERVICE, "SERVICE", "text of network information");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_NETWORK_STATUS, "STATUS", "text of network information");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_FULL_SERVICE, "FULL SERVICE", "text of network information");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_LIMITED_SERVICE, "LIMITED SERVICE", "text of network information");
-
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_MITEM9185,
- CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
- "Menu item image for Network Setup");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_MITEM9186_MANUAL,
- CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
- "Menu item image for Selection Mode->Manual");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_MITEM9186_AUTOMATIC,
- CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
- "Menu item image for Selection Mode->Automatic");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_SCR9185_CAPTION, "Network Setup", "Title string for Network Setup menu");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_SCR9186_CAPTION, "Network Selection", "Title string for Selection Mode menu");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_SCR9188_CAPTION, "Band Selection", "Title string for Band Selection menu");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_ABORT_LSK,
- CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
- "LSK image for Searching Network screen");
- ADD_APPLICATION_STRING2(
- STR_ID_NETSET_SCR_SELECT_NETWORK_CAPTION,
- "Network List",
- "Title string for Select Network screen");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_900, "900", "Band Selection sub menu 900");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_1800, "1800", "Band Selection sub menu 1800");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_DUAL, "Dual Band", "Band Selection sub menu Dual Band");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_850, "850", "Band Selection sub menu 850");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_1900, "1900", "Band Selection sub menu 1900");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_850_1900, "850/1900", "Band Selection sub menu 850/1900");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_AUTO, "Auto", "Band Selection sub menu auto");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_BAND_850_1800, "850/1800", "Band Selection sub menu 850/1800");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_REGISTERING_NW, "Registering", "Registering Network Message.");
- ADD_APPLICATION_STRING2(STD_ID_NETSET_NW_SELECT_FAIL, "Fail to register!", "Fail to register!");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_NW_LIST_FAIL, "Fail to search network!", "Fail to search network!");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_SET_BAND_FAIL, "Fail to set band!", "Fail to set band!");
- ADD_APPLICATION_STRING2(STRING_MTPNP_NETSET_SIM1_INVALID, "not available for invalid sim1", "not allowed for invalid sim1")
- ADD_APPLICATION_STRING2(STR_SIM_INVALID_SIM_SELECT_NETWORK, "not available for invalid sim", "not available for invalid sim");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_DELETE_ASK, "Delete?", "setting delete ask");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_SAVING, "Saving", "setting saving");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_DELETING, "Deleting", "setting deleting");
- #ifdef __MMI_SLIM_PROGRESS_ANIMATION__
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_NW_SEARCH,
- CUST_IMG_PATH "\\MainLCD\\UIElement\\Progress\\PROGRESS"__MMI_RES_TYPE_POPUP_SCREEN__,
- "Progress Image");
- #else /* __MMI_SLIM_PROGRESS_ANIMATION__ */
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_NW_SEARCH,
- CUST_IMG_PATH "\\MainLCD\\Active\\Searching\\SEARCH"__MMI_RES_TYPE_POPUP_SCREEN__,
- "Img Associated with Network Search Screen.");
- #endif /* __MMI_SLIM_PROGRESS_ANIMATION__ */
- PopulatePrefNwk();
- }
- /*****************************************************************************
- * FUNCTION
- * PopulatePhoneSetupMenuRes
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void PopulatePhoneSetupMenuRes(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- #if 1 /* phonesetup.c */
- #ifdef __MMI_SET_DEF_ENCODING_TYPE__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_DEF_ENCODING_TYPE, HighlightPhnsetDefEncoding);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_DEF_ENCODING_TYPE, HintPhnsetDefEncoding);
- #endif /* __MMI_SET_DEF_ENCODING_TYPE__ */
-
- #ifdef __MMI_DISP_SETUP_LEVEL_UP__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_DISP_SETUP, HighlightDispSetup);
- #endif
-
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SCHEDULE_POWER, HighlightSPOF);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_IDLE_SCR_DISP, HighlightPhnsetIdleScrDisp);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SHOW_OWN_NUMBER, HighlightPhnsetShowOwnNo);
- #ifdef __MMI_VUI_HOMESCREEN__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_VUI_PHNSET_HOMESCREEN, mmi_highlight_phnset_vui_homescreen);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_VUI_PHNSET_HOMESCREEN, mmi_hint_phnset_vui_homescreen);
- #endif /* __MMI_VUI_HOMESCREEN__ */
- #ifdef __MMI_VUI_MAINMENU__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_VUI_PHNSET_MAINMENU_EFFECT, mmi_highlight_phnset_vui_mainmenu_effect);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_VUI_PHNSET_MAINMENU_EFFECT, mmi_hint_phnset_vui_mainmenu_effect);
- #endif /* __MMI_VUI_MAINMENU__ */
- #ifdef __MMI_CALENDAR_ON_IDLE_SCREEN__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_CALENDAR_IDLESCREEN, HighlightPhnsetCalendarIdleScreen);
- #endif /* __MMI_CALENDAR_ON_IDLE_SCREEN__ */
- #if defined(__MMI_OPERATOR_NAME_MENU__)
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SHOW_OPN, HighlightPhnsetShowOPN);
- #endif
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SHOW_DT_TIME, HighlightPhnsetShowDtTime);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_LANGUAGE, HighlightPhnsetLang);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9146_WELCOME_TEXT, HighlightPhnsetWelcomeText);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SCR_SVR, HighlightPhnsetScreenSaver);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_WALLPAPER, HighlightPhnsetMainWallpaper);
- #ifdef __MMI_SUB_WALLPAPER__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_WALLPAPER_SUB, HighlightPhnsetSubWallpaper);
- #endif
- #ifdef __MMI_MAINMENU_STYLE_CHANGE_EN__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_MAINMENU_STYLE, HintPhnsetMainMenuStyle);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_MAINMENU_STYLE, HighlightPhnsetMainMenuStyle);
- #endif /* __MMI_MAINMENU_STYLE_CHANGE_EN__ */
- #ifdef __MMI_MOTION_DIAL__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_DIAL_STYLE, HintPhnsetDialStyle);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_DIAL_STYLE, HighlightPhnsetDialStyle);
- #endif /* __MMI_MOTION_DIAL__ */
- #if defined(__MMI_UI_TECHNO_IDLESCREEN_BAR__)
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_IDLE_CLOCK_TYPE, HintPhnsetIdleClockType);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_IDLE_CLOCK_TYPE, HighlightPhnsetIdleClockType);
- #endif /* defined(__MMI_UI_TECHNO_IDLESCREEN_BAR__) */
- #ifndef __MMI_HIDE_HOMECITY__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9142_SETHOMECITY, HighlightPhnsetSetHomeCity);
- #endif
- #ifdef __MMI_DUAL_CLOCK__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9142_SETFOREIGNCITY, HighlightPhnsetSetForeignCity);
- #endif
- /* Set highlight and hint function of UART setup */
- #ifdef __MMI_DUAL_SIM_MASTER__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_UART_SETUP, HighlightPhnsetUARTSetup);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_UART_SETUP, HintPhnsetUARTSetup);
- #endif /* __MMI_DUAL_SIM_MASTER__ */
- #ifndef __MMI_SEPARATE_DT_SETTING__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9143_SETTIMEANDDATE, HighlightPhnsetSetDT);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9144_SETTIMEANDDATEFORMAT, HighlightPhnsetSetFormat);
- #else /* __MMI_SEPARATE_DT_SETTING__ */
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SETTING_DATEANDFORMAT, HighlightPhnsetSetDateAndFormat);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SETTING_TIMEANDFORMAT, HighlightPhnsetSetTimeAndFormat);
- #endif /* __MMI_SEPARATE_DT_SETTING__ */
- #ifdef __MMI_TIMEZONE_CHANGE_DATETIME__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_TZ_CHANGE_DATETIME, HighlightPhnsetDateTimeUpdateStatus);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_TZ_CHANGE_DATETIME, HintPhnsetDateTimeUpdateStatus);
- #endif /* __MMI_TIMEZONE_CHANGE_DATETIME__ */
- #ifdef __FLIGHT_MODE_SUPPORT__
- #ifndef __MMI_DUAL_SIM_MASTER__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_FLIGHT_MODE, HighlightPhnsetFlightMode);
- #endif /* __MMI_DUAL_SIM_MASTER__ */
- #endif
- #ifndef __MMI_HIDE_HOMECITY__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9142_SETHOMECITY, HintPhnsetTimeAndDate);
- #endif
- #ifdef __MMI_DUAL_CLOCK__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9142_SETFOREIGNCITY, HintPhnsetTimeAndDate);
- #endif
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9146_WELCOME_TEXT, HintPhnsetWelcomeText);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_LANGUAGE, HintPhnsetLanguage);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_SHOW_OWN_NUMBER, HintPhnsetOwnerNum);
- #ifdef __MMI_CALENDAR_ON_IDLE_SCREEN__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_CALENDAR_IDLESCREEN, HintPhnsetCalendarIdleScreen);
- #endif
- #ifdef __MMI_DUAL_CLOCK__
- #ifndef __MMI_VUI_HOMESCREEN_DUALCLOCK__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_DUAL_CLOCK_IDLESCREEN, HintPhnsetDualClockIdleScreen);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_DUAL_CLOCK_IDLESCREEN, HighlightPhnsetDualClockIdleScreen);
- #endif
- #endif
- #ifdef __MMI_OP11_HOMESCREEN__
- /* under construction !*/
- /* under construction !*/
- #endif /* __MMI_OP11_HOMESCREEN__ */
- #ifdef __MMI_OP12_TOOLBAR__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_TOOLBAR, HintPhnsetToolBarStatus);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_TOOLBAR, HighlightPhnsetToolBarStatus);
- #endif /* __MMI_OP12_TOOLBAR__ */
- #ifdef __MMI_SCREEN_SWITCH_EFFECT__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_SCRSWITCH_EFFECT, HintPhnsetScreenSwitchEffectStatus);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_SCRSWITCH_EFFECT, HighlightPhnsetScreenSwitchEffectStatus);
- #endif /* __MMI_SCREEN_SWITCH_EFFECT__ */
- #if defined(__MMI_OPERATOR_NAME_MENU__)
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_SHOW_OPN, HintPhnsetOPN);
- #endif
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_SHOW_DT_TIME, HintPhnsetShowDateTime);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_WALLPAPER, HintPhnsetWallpaper);
- #ifdef __MMI_SUB_WALLPAPER__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_WALLPAPER_SUB, HintPhnsetSubWallpaper);
- #endif
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_SCR_SVR, HintPhnsetScreenSaver);
- #ifdef __DAILY_WALLPAPER__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_WALLPAPER_FIX, HighlightPhnsetWallpaperFix);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_WALLPAPER_ROTATE, HintPhnsetWallpaperRotate);
- #endif /* __DAILY_WALLPAPER__ */
- #ifdef __MMI_NITZ__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU9145_SETTIMEANDDATENITZ, HintPhnsetNITZ);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU9145_SETTIMEANDDATENITZ, HighlightPhnsetNITZ);
- #endif /* __MMI_NITZ__ */
- #ifdef __MMI_PREFER_INPUT_METHOD__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_PREFERED_INPUT_METHOD, HintPhnsetPreferedInputMethod);
- #endif
- #if defined(__MMI_PREFER_WRITING_LANG__) || defined(__MMI_MIXED_LANG_SUPPORT__)
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_PREFERED_WRITING_LANG, mmi_phnset_highlight_prefered_writing_lang);
- #if defined(__MMI_MIXED_LANG_SUPPORT__)
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_PREFERED_WRITING_LANG_MAIN, mmi_phnset_hint_writing_lang);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_PREFERED_WRITING_LANG_MAIN, mmi_phnset_writing_lang_highlight_main);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_PREFERED_WRITING_LANG_SUB, mmi_phnset_writing_lang_hint_sub);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_PREFERED_WRITING_LANG_SUB, mmi_phnset_writing_lang_highlight_sub);
- #else
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_PREFERED_WRITING_LANG, mmi_phnset_hint_writing_lang);
- #endif /* defined(__MMI_MIXED_LANG_SUPPORT__) */
- #endif /* defined(__MMI_PREFER_WRITING_LANG__) || defined(__MMI_MIXED_LANG_SUPPORT__) */
- #if defined(__WIFI_WIZARD_SUPPORT__) && !defined(__MMI_BI_DEGREE_MAIN_MENU_STYLE__) && !defined(__DISABLE_SHORTCUTS_MENU__)
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(EXTRA_SHORTCUTS_MENUID, mmi_highlight_shortcuts);
- #endif
- #if defined(__MMI_DEDICATED_KEY_SHORTCUTS__) && !defined(__DISABLE_SHORTCUTS_IMPL__)
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_DEDICATED_KEYS, HighlightDedicatedKeys);
- #endif
- #if defined(__MMI_TOUCH_SCREEN__)
- #if !defined(__MMI_NO_HANDWRITING__)
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_HANDWRITING, HighlightHandwritingSetting);
- #endif
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_CALIBRATION, HighlightCalibrationSetting);
- #endif /* __MMI_TOUCH_SCREEN__ */
- #ifdef __MMI_POWER_ON_OFF_DISPLAY__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_POWER_ON_DISPLAY, HighlightPhnsetPowerOn);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_POWER_ON_DISPLAY, HintPhnsetPwrOnDisplay);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_POWER_OFF_DISPLAY, HighlightPhnsetPowerOff);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_POWER_OFF_DISPLAY, HintPhnsetPwrOffDisplay);
- #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */
- /* Cylen 2005/08/23 GPIO Setting */
- #ifdef __MMI_CHANGABLE_FONT__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_FONT_SIZE, HighlightPhnsetFontSize);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_FONT_SIZE, HintPhnsetFontSize);
- //PhnsetReadFontSize(); /* __USB_IN_NORMAL_MODE__ */
- #endif /* __MMI_CHANGABLE_FONT__ */
- /* diamond, 2005/07/05 Flight mode */
- #ifdef __FLIGHT_MODE_SUPPORT__
- #ifndef __MMI_DUAL_SIM_MASTER__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_FLIGHT_MODE, HintPhnsetFlightMode);
- #endif /* __MMI_DUAL_SIM_MASTER__ */
- #endif
- /* end, diamond */
- #ifdef __MMI_TVOUT__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SETTING_TVOUT, mmi_phnset_highlight_tvout);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SETTING_TVOUT_SETTING, mmi_phnset_highlight_tvout_setting);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_SETTING_TVOUT_ADJUST, mmi_phnset_highlight_tvout_adjust);
- #endif /* __MMI_TVOUT__ */
- #endif /* 1 */
- #if 1 /* screensaver.c */
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_SS_SETTING, HintPhnsetScrSvrSetting);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_SETTING_SS_SELECT, HintPhnsetScrSvrSelect);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SS_SETTING, HighlightPhnsetScrSvrSetting);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SS_SELECT, HighlightPhnsetScrSvrSelect);
- #if defined(__MMI_FILE_MANAGER__)
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SELECT_SS_SELECT_SYSTEM, HighlightPhnsetScrSvrSystem);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MEUN_SELECT_SS_SELECT_DOWNLOAD, HighlightPhnsetScrSvrFmgr);
- #ifdef __MMI_AVATAR__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_SS_SELECT_AVATAR, mmi_phnset_ss_avatar_highlight_hdlr);
- #endif /* __MMI_AVATAR__ */
- #endif /* __MMI_FILE_MANAGER__ */
- #endif /* 1 */
- #ifdef __MMI_INNERVATION_WORLD__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_INNERVATION_WORLD, HighlightInnerWorld);
- #ifdef __MMI_TV_PLAYER__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_TV_FULLSCREEN_SWITCH, HighlightTVFullScreen);
- #endif
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_VDO_FULLSCREEN_SWITCH, HighlightVDOFullScreen);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_CALLIN_MODE, HighlightCallinSilent);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_ROCK_SONG_SWITCH, HighlightRockSong);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_DYNAMIC_WALLPAPER, HighlightDyWallSetting);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_DYNAMIC_WALLPAPER_INSTRUCTIONS, HighlightDyWallInstru);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_LAZYBOOTS_CLOCK, HighlightLazyClock);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_FMCHNL_SWITCH, HighlightFMChnlSwitch);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_DYNAMIC_WALLPAPER, HintDyWallSetting);
- #ifdef __MMI_TV_PLAYER__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_TV_FULLSCREEN_SWITCH, HintTVFullScreen);
- #endif
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_VDO_FULLSCREEN_SWITCH, HintVDOFullScreen);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_ROCK_SONG_SWITCH, HintRockSong);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_CALLIN_MODE, HintCallinSilent);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_LAZYBOOTS_CLOCK, HintLazyClock);
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_FMCHNL_SWITCH, HintFMChnlSwitchScreen);
- #endif
- #ifdef __MMI_FREETYPE_SETTING_SUPPORT__
- ADD_APPLICATION_MENUITEM_HINT_HANDLER(MENU_ID_PHNSET_FREETYPE_SETTING, HintFreeTypeSetting);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_ID_PHNSET_FREETYPE_SETTING, HighlightFreeTypeSetting);
- #endif /* __MMI_FREETYPE_SETTING_SUPPORT__ */
- }
- /*****************************************************************************
- * FUNCTION
- * PopulatePhoneSetupResData
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void PopulatePhoneSetupResData(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ADD_APPLICATION_MENUITEM((MENU_IDLE_SCR_DISP, MENU9102_INITIAL_SETUP, DISPCHAR_MENU_ITEM_COUNT, /* menu account */
- MENU_SETTING_WALLPAPER, /* menu list */
- #ifdef __MMI_SUB_WALLPAPER__
- MENU_SETTING_WALLPAPER_SUB,
- #endif
- MENU_SETTING_SCR_SVR,
- #if defined(__MMI_POWER_ON_OFF_DISPLAY__)&&!defined(__R301__)
- MENU_SETTING_POWER_ON_DISPLAY, MENU_SETTING_POWER_OFF_DISPLAY,
- #endif
- #if defined(__MMI_MAINMENU_STYLE_CHANGE_EN__)&&!defined(__R301__)
- MENU_SETTING_MAINMENU_STYLE,
- #endif
- #ifdef __MMI_MOTION_DIAL__
- MENU_SETTING_DIAL_STYLE,
- #endif /* __MMI_MOTION_DIAL__ */
- #ifdef __MMI_VUI_HOMESCREEN__
- MENU_ID_VUI_PHNSET_HOMESCREEN,
- #endif
- #ifdef __MMI_VUI_MAINMENU__
- MENU_ID_VUI_PHNSET_MAINMENU_EFFECT,
- #endif
- #ifdef __MMI_CALENDAR_ON_IDLE_SCREEN__
- MENU_ID_PHNSET_CALENDAR_IDLESCREEN,
- #endif /* __MMI_CALENDAR_ON_IDLE_SCREEN__ */
- #ifdef __MMI_DUAL_CLOCK__
- #ifndef __MMI_VUI_HOMESCREEN_DUALCLOCK__
- MENU_ID_PHNSET_DUAL_CLOCK_IDLESCREEN,
- #endif /* __MMI_VUI_HOMESCREEN_DUALCLOCK__ */
- #endif /* __MMI_DUAL_CLOCK__ */
- #ifdef __MMI_OP11_HOMESCREEN__
- /* under construction !*/
- #endif /* __MMI_OP11_HOMESCREEN__ */
- #ifdef __MMI_OP12_TOOLBAR__
- MENU_ID_PHNSET_TOOLBAR,
- #endif /* __MMI_OP12_TOOLBAR__ */
- MENU_SETTING_SHOW_DT_TIME,
- /* begin: zhangclc modified at: 2009-12-08 */
- #if 0
- #ifndef __MMI_DUAL_SIM_MASTER__
- MENU_SETTING_SHOW_OWN_NUMBER,
- #else /* __MMI_DUAL_SIM_MASTER__ */
- MENU_MTPNP_DM_SHOW_OWNER_NUMBER,
- #endif /* __MMI_DUAL_SIM_MASTER__ */
- #endif
- /* end: zhangclc modified at: 2009-12-08 */
- #ifdef __MMI_SCREEN_SWITCH_EFFECT__
- MENU_ID_PHNSET_SCRSWITCH_EFFECT,
- #endif /* __MMI_SCREEN_SWITCH_EFFECT__ */
- #if defined(__MMI_OPERATOR_NAME_MENU__)
- MENU_SETTING_SHOW_OPN,
- #endif
- #if defined(__MMI_UI_TECHNO_IDLESCREEN_BAR__)
- MENU_SETTING_IDLE_CLOCK_TYPE,
- #endif
- SHOW, NONMOVEABLE, DISP_LIST, STR_IDLE_SCR_DISP, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_SHOW_DT_TIME, MENU_IDLE_SCR_DISP, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_SHOW_DT_TIME, 0));
- #if defined(__MMI_FILE_MANAGER__)
- #ifdef __DAILY_WALLPAPER__ /* Wallpaper daily change */
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER, MENU_IDLE_SCR_DISP, 2,
- MENU_SETTING_WALLPAPER_FIX,
- MENU_SETTING_WALLPAPER_ROTATE, SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_FIX, MENU_SETTING_WALLPAPER, 2,
- MENU_SETTING_WALLPAPER_SYSTEM,
- MENU_SETTING_WALLPAPER_DOWNLOAD, SHOW, SHORTCUTABLE, DISP_LIST, STR_WALLPAPER_FIX, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_ROTATE, MENU_SETTING_WALLPAPER, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_ROTATE, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SYSTEM, MENU_SETTING_WALLPAPER, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_SYSTEM, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_DOWNLOAD, MENU_SETTING_WALLPAPER, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_DOWNLOAD, 0));
- #ifdef __MMI_SUB_WALLPAPER__
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SUB, MENU_IDLE_SCR_DISP, 2,
- MENU_SETTING_WALLPAPER_FIX,
- MENU_SETTING_WALLPAPER_ROTATE,
- SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER_SUB, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_FIX, MENU_SETTING_WALLPAPER_SUB, 2,
- MENU_SETTING_WALLPAPER_SYSTEM,
- MENU_SETTING_WALLPAPER_DOWNLOAD, SHOW, SHORTCUTABLE, DISP_LIST, STR_WALLPAPER_FIX, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_ROTATE, MENU_SETTING_WALLPAPER_SUB, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_ROTATE, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SYSTEM, MENU_SETTING_WALLPAPER_SUB, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_SYSTEM, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_DOWNLOAD, MENU_SETTING_WALLPAPER_SUB, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_DOWNLOAD, 0));
- #endif /* __MMI_SUB_WALLPAPER__ */
- #else /* __DAILY_WALLPAPER__ */ /* No wallpaper daily change, normal case */
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER, MENU_IDLE_SCR_DISP,
- DISPSEL_MENU_TOTAL, MENU_SETTING_WALLPAPER_SYSTEM,
- #ifndef __MMI_DISPLAY_CHAR_HIDE_MENU_FROM_FILE__
- MENU_SETTING_WALLPAPER_DOWNLOAD,
- #endif /* __MMI_FILE_MANAGER_HIDE_MENU__ */
- #ifdef __MMI_AVATAR__
- MENU_ID_PHNSET_WP_AVATAR,
- #endif
- SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SYSTEM, MENU_SETTING_WALLPAPER, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_SYSTEM, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_DOWNLOAD, MENU_SETTING_WALLPAPER, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_DOWNLOAD, 0));
- #ifdef __MMI_AVATAR__
- ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_WP_AVATAR, MENU_SETTING_WALLPAPER, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_WP_AVATAR, 0));
- #endif
- #ifdef __MMI_SUB_WALLPAPER__
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SUB, MENU_IDLE_SCR_DISP, 1,
- MENU_SETTING_WALLPAPER_SYSTEM,
- SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER_SUB, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SYSTEM, MENU_SETTING_WALLPAPER_SUB, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_SYSTEM, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_DOWNLOAD, MENU_SETTING_WALLPAPER_SUB, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_WALLPAPER_DOWNLOAD, 0));
- #endif /* __MMI_SUB_WALLPAPER__ */
- #endif /* __DAILY_WALLPAPER__ */
- #else /* defined(__MMI_FILE_MANAGER__) */
- /* Wap and FileManager are both not support */
- #ifdef __DAILY_WALLPAPER__
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER, MENU_IDLE_SCR_DISP, 2,
- MENU_SETTING_WALLPAPER_FIX,
- MENU_SETTING_WALLPAPER_ROTATE, SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_FIX, MENU_SETTING_WALLPAPER, 0,
- SHOW, SHORTCUTABLE, DISP_LIST, STR_WALLPAPER_FIX, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_ROTATE, MENU_SETTING_WALLPAPER, 0,
- SHOW, SHORTCUTABLE, DISP_LIST, STR_WALLPAPER_ROTATE, 0));
- #ifdef __MMI_SUB_WALLPAPER__
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SUB, MENU_IDLE_SCR_DISP, 2,
- MENU_SETTING_WALLPAPER_FIX,
- MENU_SETTING_WALLPAPER_ROTATE,
- SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER_SUB, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_FIX, MENU_SETTING_WALLPAPER_SUB, 0,
- SHOW, SHORTCUTABLE, DISP_LIST, STR_WALLPAPER_FIX, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_ROTATE, MENU_SETTING_WALLPAPER_SUB, 0,
- SHOW, SHORTCUTABLE, DISP_LIST, STR_WALLPAPER_ROTATE, 0));
- #endif /* __MMI_SUB_WALLPAPER__ */
- #else /* __DAILY_WALLPAPER__ */
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER, MENU_IDLE_SCR_DISP, 0,
- SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER, 0));
- #ifdef __MMI_SUB_WALLPAPER__
- ADD_APPLICATION_MENUITEM((MENU_SETTING_WALLPAPER_SUB, MENU_IDLE_SCR_DISP, 0,
- SHOW, SHORTCUTABLE, DISP_LIST, STR_SETTING_WALLPAPER_SUB, 0));
- #endif /* __MMI_SUB_WALLPAPER__ */
- #endif /* __DAILY_WALLPAPER__ */
- #endif /* defined(__MMI_FILE_MANAGER__) */ /* #if defined( __MMI_FILE_MANAGER__ ) */
- ADD_APPLICATION_MENUITEM((MENU_SETTING_SCR_SVR, MENU_IDLE_SCR_DISP, 2,
- MENU_SETTING_SS_SETTING,
- MENU_SETTING_SS_SELECT, SHOW, SHORTCUTABLE, DISP_LIST, STR_MENU_SETTING_SCREEN_SVR, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_SS_SETTING, MENU_SETTING_SCR_SVR, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_SETTINGS, 0));
- #if defined(__MMI_FILE_MANAGER__)
- ADD_APPLICATION_MENUITEM((MENU_SETTING_SS_SELECT, MENU_SETTING_SCR_SVR,
- DISPSEL_MENU_TOTAL, MENU_SELECT_SS_SELECT_SYSTEM,
- #ifndef __MMI_DISPLAY_CHAR_HIDE_MENU_FROM_FILE__
- MEUN_SELECT_SS_SELECT_DOWNLOAD,
- #endif
- #ifdef __MMI_AVATAR__
- MENU_ID_PHNSET_SS_SELECT_AVATAR,
- #endif
- SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_SELECT, 0));
- ADD_APPLICATION_MENUITEM((MENU_SELECT_SS_SELECT_SYSTEM, MENU_SETTING_SS_SELECT, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_SCR_SCREENSAVER_SYSTEM, 0));
- ADD_APPLICATION_MENUITEM((MEUN_SELECT_SS_SELECT_DOWNLOAD, MENU_SETTING_SS_SELECT, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_SCR_SCREENSAVER_DOWNLOAD, 0));
- #ifdef __MMI_AVATAR__
- ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_SS_SELECT_AVATAR, MENU_SETTING_SS_SELECT, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_SS_AVATAR, 0));
- #endif
- #else /* defined(__MMI_FILE_MANAGER__) */
- ADD_APPLICATION_MENUITEM((MENU_SETTING_SS_SELECT, MENU_SETTING_SCR_SVR, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_SELECT, 0));
- #endif /* defined(__MMI_FILE_MANAGER__) */
- #ifdef __MMI_POWER_ON_OFF_DISPLAY__
- ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_ON_DISPLAY, MENU_IDLE_SCR_DISP, DISPSEL_MENU_TOTAL,
- MENU_SETTING_POWER_ON_SYSTEM,
- #ifndef __MMI_DISPLAY_CHAR_HIDE_MENU_FROM_FILE__
- MENU_SETTING_POWER_ON_DOWNLOAD,
- #endif
- #ifdef __MMI_AVATAR__
- MENU_ID_PHNSET_PWRON_AVATAR,
- #endif
- SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_POWER_ON_DISPLAY, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_ON_SYSTEM, MENU_SETTING_POWER_ON_DISPLAY, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_ON_OFF_SYSTEM, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_ON_DOWNLOAD, MENU_SETTING_POWER_ON_DISPLAY, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_ON_OFF_DOWNLOAD, 0));
- #ifdef __MMI_AVATAR__
- ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_PWRON_AVATAR, MENU_SETTING_POWER_ON_DISPLAY, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_ON_OFF_AVATAR, 0));
- #endif
- ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_OFF_DISPLAY, MENU_IDLE_SCR_DISP, DISPSEL_MENU_TOTAL,
- MENU_SETTING_POWER_OFF_SYSTEM,
- #ifndef __MMI_DISPLAY_CHAR_HIDE_MENU_FROM_FILE__
- MENU_SETTING_POWER_OFF_DOWNLOAD,
- #endif
- #ifdef __MMI_AVATAR__
- MENU_ID_PHNSET_PWROFF_AVATAR,
- #endif
- SHOW, NONMOVEABLE, DISP_LIST, STR_SETTING_POWER_OFF_DISPLAY, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_OFF_SYSTEM, MENU_SETTING_POWER_OFF_DISPLAY, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_ON_OFF_SYSTEM, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_OFF_DOWNLOAD, MENU_SETTING_POWER_OFF_DISPLAY, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_ON_OFF_DOWNLOAD, 0));
-
- #ifdef __MMI_AVATAR__
- ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_PWROFF_AVATAR, MENU_SETTING_POWER_OFF_DISPLAY, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_ON_OFF_AVATAR, 0));
- #endif
- #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */
- ADD_APPLICATION_MENUITEM((MENU_SETTING_SHOW_OWN_NUMBER,
- #ifndef __MMI_DUAL_SIM_MASTER__
- MENU_IDLE_SCR_DISP,
- #else /* __MMI_DUAL_SIM_MASTER__ */
- MENU_MTPNP_DM_SHOW_OWNER_NUMBER,
- #endif /* __MMI_DUAL_SIM_MASTER__ */
- 0,
- SHOW, NONMOVEABLE, DISP_LIST,
- #ifndef __MMI_DUAL_SIM_MASTER__
- STR_OWN_NO,
- #else /* __MMI_DUAL_SIM_MASTER__ */
- STRING_MTPNP_CARD1_SHOW_OWNER_NUMBER,
- #endif /* __MMI_DUAL_SIM_MASTER__ */
- 0));
- #ifdef __MMI_VUI_HOMESCREEN__
- ADD_APPLICATION_MENUITEM((MENU_ID_VUI_PHNSET_HOMESCREEN, MENU_IDLE_SCR_DISP, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_VUI_PHNSET_HOMESCREEN, 0));
- ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_HOMESCREEN, "Interactive Screen", "Interactive Screen");
- #endif /* __MMI_VUI_HOMESCREEN__ */
- #ifdef __MMI_VUI_MAINMENU__
- ADD_APPLICATION_MENUITEM((MENU_ID_VUI_PHNSET_MAINMENU_EFFECT, MENU_IDLE_SCR_DISP, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_VUI_PHNSET_MAINMENU_EFFECT, 0));
- ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_MAINMENU_EFFECT, "Mainmenu effect", "mainmenu effect");
- ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_MAINMENU_EFFECT1, "Squeeze", "mainmenu effect");
- ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_MAINMENU_EFFECT2, "Jump", "mainmenu effect");
- ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_MAINMENU_EFFECT3, "Jelly", "mainmenu effect");
- ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_MAINMENU_EFFECT4, "Bubble", "mainmenu effect");
- ADD_APPLICATION_STRING2(STR_ID_VUI_PHNSET_MAINMENU_EFFECT5, "Rotate", "mainmenu effect");
-
- #endif /* __MMI_VUI_MAINMENU__ */
- #ifdef __MMI_CALENDAR_ON_IDLE_SCREEN__
- ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_CALENDAR_IDLESCREEN, MENU_IDLE_SCR_DISP, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_CALENDAR_SCREEN, 0));
- #endif /* __MMI_CALENDAR_ON_IDLE_SCREEN__ */
- #ifdef __MMI_DUAL_CLOCK__
- #ifndef __MMI_VUI_HOMESCREEN_DUALCLOCK__
- ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_DUAL_CLOCK_IDLESCREEN, MENU_IDLE_SCR_DISP, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_DUAL_CLOCK_SCREEN, 0));
- #endif /* __MMI_VUI_HOMESCREEN_DUALCLOCK__ */
- #endif /* __MMI_PHNSET_FOREIGN_CITY__ */
- #ifdef __MMI_OP11_HOMESCREEN__
- /* under construction !*/
- /* under construction !*/
- #endif /* __MMI_OP11_HOMESCREEN__ */
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_HOMESCREEN, "Phnset Homescreen", "Home Screen");
- #ifdef __MMI_OP12_TOOLBAR__
- ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_TOOLBAR, MENU_IDLE_SCR_DISP, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_TB_TOOLBAR_SETTINGS, 0));
- #endif /* __MMI_OP12_TOOLBAR__ */
- #ifdef __MMI_SCREEN_SWITCH_EFFECT__
- ADD_APPLICATION_MENUITEM((MENU_ID_PHNSET_SCRSWITCH_EFFECT, MENU_IDLE_SCR_DISP, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_SCREEN_SWITCH_EFFECT, 0));
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_SCREEN_SWITCH_EFFECT, "Screen switch effect", "Screen switch effect");
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_SSE_SIMPLE, "Simple", "sse simple");
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_SSE_FULL, "Full", "SSE Full");
- #endif /* __MMI_SCREEN_SWITCH_EFFECT__ */
- #if defined(__MMI_OPERATOR_NAME_MENU__)
- ADD_APPLICATION_MENUITEM((MENU_SETTING_SHOW_OPN, MENU_IDLE_SCR_DISP, 0, SHOW, NONMOVEABLE, DISP_LIST, STR_OPN, 0));
- #endif
- #ifdef __MMI_MAINMENU_STYLE_CHANGE_EN__
- ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE, MENU_IDLE_SCR_DISP, MAINMENU_STYLE_COUNT, /* item number */
- /* menu items */
- #ifdef __MMI_MAINMENU_MATRIX_SUPPORT__
- MENU_SETTING_MAINMENU_STYLE_MATRIX,
- #endif
- #ifdef __MMI_MAINMENU_PAGE_SUPPORT__
- #ifndef __MMI_TOUCH_SCREEN__
- MENU_SETTING_MAINMENU_STYLE_PAGE,
- #endif
- #endif /* __MMI_MAINMENU_PAGE_SUPPORT__ */
- #ifdef __MMI_MAINMENU_LIST_SUPPORT__
- MENU_SETTING_MAINMENU_STYLE_LIST,
- #endif
- #ifdef __MMI_MAINMENU_CIRCULAR_SUPPORT__
- MENU_SETTING_MAINMENU_STYLE_CIRCULAR,
- #endif
- #ifdef __MMI_MAINMENU_ROTATE_SUPPORT__
- MENU_SETTING_MAINMENU_STYLE_ROTATE,
- #endif
- SHOW, NONMOVEABLE, DISP_LIST, STR_MAINMENU_STYLE, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE_MATRIX, MENU_SETTING_MAINMENU_STYLE, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_MAINMENU_STYLE_MATRIX, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE_PAGE, MENU_SETTING_MAINMENU_STYLE, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_MAINMENU_STYLE_PAGE, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE_CIRCULAR, MENU_SETTING_MAINMENU_STYLE, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_MAINMENU_STYLE_CIRCULAR, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE_ROTATE, MENU_SETTING_MAINMENU_STYLE, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_MAINMENU_STYLE_ROTATE, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE_LIST, MENU_SETTING_MAINMENU_STYLE, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_MAINMENU_STYLE_LIST, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_MAINMENU_STYLE_TAB, MENU_SETTING_MAINMENU_STYLE, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_MAINMENU_STYLE_TAB, 0));
- #endif /* __MMI_MAINMENU_STYLE_CHANGE_EN__ */
- #ifdef __MMI_MOTION_DIAL__
- ADD_APPLICATION_MENUITEM((MENU_SETTING_DIAL_STYLE, MENU_IDLE_SCR_DISP, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_ID_PHNSET_DIAL_STYLE, 0));
- #endif
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_DIAL_STYLE, "Dial Style", "Dial Style");
- #if defined(__MMI_UI_TECHNO_IDLESCREEN_BAR__)
- ADD_APPLICATION_MENUITEM((MENU_SETTING_IDLE_CLOCK_TYPE, MENU_IDLE_SCR_DISP, 0,
- SHOW, (MOVEABLEWITHINPARENT | SHORTCUTABLE), DISP_LIST, STR_ID_IDLE_CLOCK_TYPE, 0));
- ADD_APPLICATION_STRING2(STR_ID_IDLE_CLOCK_TYPE, "Clock Type", "Idle Clock Type");
- #endif /* defined(__MMI_UI_TECHNO_IDLESCREEN_BAR__) */
- ADD_APPLICATION_MENUITEM((MENU_SETTING_POWER_SAVING, MENU9102_INITIAL_SETUP, 2,
- MENU_POWER_SAVING_ON,
- MENU_POWER_SAVING_OFF, SHOW, NONMOVEABLE, DISP_LIST, STR_MENU_SETTING_POWER_SAVING, 0));
- ADD_APPLICATION_MENUITEM((MENU_POWER_SAVING_OFF, MENU_SETTING_POWER_SAVING, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_OFF, 0));
- ADD_APPLICATION_MENUITEM((MENU_POWER_SAVING_ON, MENU_SETTING_POWER_SAVING, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_ON, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_CONTRAST_LEVEL, MENU9102_INITIAL_SETUP, 0,
- SHOW, SHORTCUTABLE, DISP_LIST, STR_MENU_SETTING_CONTRAST_LEVEL, 0));
- #if defined(__MMI_NITZ__) && !defined(__MMI_AUTOTIMEZONE_IN_DATEANDTIME__)
- ADD_APPLICATION_MENUITEM((MENU9145_SETTIMEANDDATENITZ, MENU9102_INITIAL_SETUP, 0,
- SHOW, NONMOVEABLE, DISP_LIST, STR_MENU_SETTING_MENU_TREE, 0));
- #endif /* #if defined(__MMI_NITZ__) && defined(__MMI_AUTOTIMEZONE_IN_DATEANDTIME__) */
- ADD_APPLICATION_MENUITEM((MENU_SETTING_SCHEDULE_POWER, MENU9102_INITIAL_SETUP, 2,
- MENU_SETTING_SCHEDULE_POWER_SET1,
- MENU_SETTING_SCHEDULE_POWER_SET2,
- SHOW, MOVEABLEACROSSPARENT | SHORTCUTABLE, DISP_LIST, STR_MENU_SETTING_SCHEDULE_POWER,
- 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_SCHEDULE_POWER_SET1, MENU_SETTING_SCHEDULE_POWER, 2,
- MENU_SETTING_SCH_POW_SET1_POW_ON,
- MENU_SETTING_SCH_POW_SET1_POW_OFF,
- SHOW, NONMOVEABLE, DISP_LIST, STR_MENU_SETTING_SCHEDULE_POWER_SET1, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_SCHEDULE_POWER_SET2, MENU_SETTING_SCHEDULE_POWER, 2,
- MENU_SETTING_SCH_POW_SET1_POW_ON,
- MENU_SETTING_SCH_POW_SET1_POW_OFF,
- SHOW, NONMOVEABLE, DISP_LIST, STR_MENU_SETTING_SCHEDULE_POWER_SET2, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_SCH_POW_SET1_POW_ON, MENU_SETTING_SCHEDULE_POWER_SET2, 2,
- MENU9171_ON,
- MENU9172_OFF, SHOW, NONMOVEABLE, DISP_LIST, STR_MENU_SETTING_SCH_POW_SET1_POW_ON, 0));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_SCH_POW_SET1_POW_OFF, MENU_SETTING_SCHEDULE_POWER_SET2, 2,
- MENU9171_ON,
- MENU9172_OFF, SHOW, NONMOVEABLE, DISP_LIST, STR_MENU_SETTING_SCH_POW_SET1_POW_OFF, 0));
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_CALENDAR_SCREEN, "Calendar Idle Screen", "Calendar screen string");
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_DUAL_CLOCK_SCREEN, "Dual clock", "Calendar screen string");
- ADD_APPLICATION_STRING2(STR_MENU_SETTING_POWER_SAVING, "Power Saving", "Power Saving Menu.");
- ADD_APPLICATION_STRING2(STR_MENU_SETTING_CONTRAST_LEVEL, "Contrast", "Contrast Level Menu Caption.");
- #if defined(__MMI_NITZ__)
- ADD_APPLICATION_STRING2(STR_MENU_SETTING_MENU_TREE, "Auto Update of Date and Time", "Menu Tree Menu.");
- #endif
- ADD_APPLICATION_STRING2(STR_MENU_SETTING_SCREEN_SVR, "Screen Saver", "Screen Saver Menu Caption.");
- ADD_APPLICATION_STRING2(STR_SETTING_WALLPAPER, "Wallpaper", "Wallpaper Menu Caption.");
- #ifdef __MMI_POWER_ON_OFF_DISPLAY__
- ADD_APPLICATION_STRING2(STR_SETTING_POWER_ON_DISPLAY, "Power On Display", "Power on Menu Caption.");
- ADD_APPLICATION_STRING2(STR_SETTING_POWER_OFF_DISPLAY, "Power Off Display", "Power off Menu Caption.");
- #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */
- #ifdef __MMI_SUB_WALLPAPER__
- ADD_APPLICATION_STRING2(STR_SETTING_WALLPAPER_SUB, "Sub Wallpaper", "Wallpaper Menu Caption");
- #endif
- ADD_APPLICATION_STRING2(STR_SETTING_SHOW_DT_TIME, "Show Date and Time", "Show Date and Time Menu Caption.");
- ADD_APPLICATION_STRING2(STR_OWN_NO, "Show Owner Number", "Show Own Number Option.");
- #if defined(__MMI_OPERATOR_NAME_MENU__)
- ADD_APPLICATION_STRING2(STR_OPN, "Show Operator Name", "Show Own Number Option.");
- #endif
- ADD_APPLICATION_STRING2(STR_IDLE_SCR_DISP, "Idle Screen Display", "Idle Screen Display Option.");
- ADD_APPLICATION_STRING2(STR_MENU_SETTING_SCHEDULE_POWER, "Schedule Power On/Off", "Scheduled Power On/Off Menu.");
- ADD_APPLICATION_STRING2(STR_MENU_SETTING_SCHEDULE_POWER_SET1, "Set 1", "Set 1 Option.");
- ADD_APPLICATION_STRING2(STR_MENU_SETTING_SCHEDULE_POWER_SET2, "Set 2", "Set 2 Option.");
- ADD_APPLICATION_STRING2(STR_MENU_SETTING_SCH_POW_SET1_POW_ON, "Power On", "On Option.");
- ADD_APPLICATION_STRING2(STR_MENU_SETTING_SCH_POW_SET1_POW_OFF, "Power Off", "Off Option.");
- ADD_APPLICATION_STRING2(STR_SETTING_SPEED_STATUS, "Enable Speed Dial", "Off Option.");
- ADD_APPLICATION_STRING2(STR_SETTING_MAIN_LCD, "Main LCD", "Main LCD Option.");
- ADD_APPLICATION_STRING2(STR_SETTING_SUB_LCD, "Sub LCD", "Sub LCD Option.");
- ADD_APPLICATION_STRING2(STR_POWER_SAVE_TIMER_CAPTION, "Power Save Timer", "Power Save Timer Caption.");
- ADD_APPLICATION_IMAGE2(
- IMG_SETTING_GREET_STATUS,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Common\\ST_STATU.PBM",
- "Setting Submenu image for Greeting text status.");
- ADD_APPLICATION_IMAGE2(
- IMG_SETTING_GREET_TEXT,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Greeting\\ST_NOTE.PBM",
- "Setting Submenu image for Greeting Text .");
- ADD_APPLICATION_STRING2(STR_SPEEDDIAL_NO_NUM_TODIAL_TEXT, "No Number To Dial!", "STR_SPEEDDIAL_PHONEBOOK_LIST");
- #ifdef __MMI_MAINMENU_STYLE_CHANGE_EN__
- ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE, "MainMenu Style", "MainMenu Style Title");
- ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE_MATRIX, "Matrix", "MainMenu Style Matrix");
- ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE_PAGE, "Page", "MainMenu Style Page");
- ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE_CIRCULAR, "Circular", "MainMenu Style Circular");
- ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE_ROTATE, "Rotate", "MainMenu Style Rotate");
- ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE_LIST, "List", "MainMenu Style List");
- ADD_APPLICATION_STRING2(STR_MAINMENU_STYLE_TAB, "Tab", "MainMenu Style List");
- #endif /* __MMI_MAINMENU_STYLE_CHANGE_EN__ */
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_MAINMENU_1, "Motion MainMenu 1", "Motion MainMenu 1");
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_MAINMENU_2, "Motion MainMenu 2", "Motion MainMenu 2");
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_MAINMENU_3, "Motion MainMenu 3", "Motion MainMenu 3");
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_MAINMENU_4, "Motion MainMenu 4", "Motion MainMenu 4");
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_MAINMENU_5, "Motion MainMenu 5", "Motion MainMenu 5");
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_DIAL_1, "Motion Dialer 1", "Motion Dialer 1");
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_DIAL_2, "Motion Dialer 2", "Motion Dialer 2");
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_DIAL_3, "Motion Dialer 3", "Motion Dialer 3");
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_DIAL_4, "Motion Dialer 4", "Motion Dialer 4");
- ADD_APPLICATION_STRING2(STR_ID_PHNSET_MOTION_DIAL_5, "Motion Dialer 5", "Motion Dialer 5");
- #ifdef __MMI_MOTION_MAINMENU__
- {
- int i = 0;
- int mainmenu_position = sizeof(CUST_IMG_PATH "\\MainLCD\\SWFlash\\MAINMENU_TOUCH_");
- char mainmenu_path[] = CUST_IMG_PATH "\\MainLCD\\SWFlash\\MAINMENU_TOUCH_01.vis";
- for (i = 0; i < PHNSET_MOTION_MAINMENU_NUM; i++)
- {
- mainmenu_path[mainmenu_position] = '1' + i;
- ADD_APPLICATION_IMAGE3((IMG_ID_SWFLASH_MAINMENU1 + i), mainmenu_path, "SWFlash category 9 - need dl.");
- }
- }
- #endif /* __MMI_MOTION_MAINMENU__ */
- #ifdef __MMI_MOTION_DIAL__
- {
- int i = 0;
- int dialer_position = sizeof(CUST_IMG_PATH"\\MainLCD\\SWFlash\\DIALER_");
- char dialer_path[] = CUST_IMG_PATH"\\MainLCD\\SWFlash\\DIALER_01.vis";
-
- for (i = 0; i < PHNSET_MOTION_DIAL_NUM; i++)
- {
- dialer_path[dialer_position] = '1' + i;
- ADD_APPLICATION_IMAGE3((IMG_ID_SWFLASH_DIALER1 + i), dialer_path, "SWFlash category 9 - need dl.");
- }
- }
- #endif /* __MMI_MOTION_DIAL__ */
- PopulateDisplayChar();
- #ifdef __MMI_THEMES_APPLICATION__
- PopulateThemes();
- #endif
- #ifdef __MMI_FREETYPE_SETTING_SUPPORT__
- PopulateFreeType();
- #endif
- }
- #ifdef __MMI_SOUND_EFFECT__
- /*****************************************************************************
- * FUNCTION
- * PopulateSoundEffectResData
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void PopulateSoundEffectResData(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* add hilite hdlr*/
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_SOUND_EFFECT,mmi_settings_sound_effect_highlight_hdlr);
- #ifdef __MMI_AUDIO_BASS_ENHANCEMENT__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MNEU_SETTING_BASS_ENHANCEMENT,mmi_settings_bass_enhancement_highlight_hdlr);
- #endif
- #if defined(__MMI_AUDIO_EQUALIZER__) || defined(__MMI_AUDIO_REVERB_EFFECT__) || defined(__MMI_AUDIO_SURROUND_EFFECT__)
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_AUDIO_EFFECT,mmi_settings_audio_effect_highlight_hdlr);
- #endif
- #ifdef __MMI_EDITABLE_AUDIO_EQUALIZER__
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_SELECT,mmi_settings_audio_equalizer_opt_select_highlight_hdlr);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_EDIT,mmi_settings_audio_equalizer_opt_edit_highlight_hdlr);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_RENAME,mmi_settings_audio_equalizer_opt_rename_highlight_hdlr);
- ADD_APPLICATION_MENUITEM_HILITE_HANDLER(MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_RESET,mmi_settings_audio_equalizer_opt_reset_highlight_hdlr);
- #endif
- /* add menuitems */
- ADD_APPLICATION_MENUITEM2((MENU_SETTING_SOUND_EFFECT, MAIN_MENU_SETTINGS_MENUID,
- #if defined(__MMI_AUDIO_EQUALIZER__) || defined(__MMI_AUDIO_REVERB_EFFECT__) || defined(__MMI_AUDIO_SURROUND_EFFECT__)
- MENU_SETTING_AUDIO_EFFECT,
- #endif
- #if defined(__MMI_BG_SOUND_EFFECT__)
- #ifndef __UCM_SUPPORT__
- MENU_ID_BGSND_CALL_SETUP,
- #endif
- #endif
- #ifdef __MMI_AUDIO_BASS_ENHANCEMENT__
- MNEU_SETTING_BASS_ENHANCEMENT,
- #endif
- MENU_ITEM_END,
- SHOW, MOVEABLEACROSSPARENT, DISP_LIST, STR_ID_SETTING_SOUND_EFFECT,
- IMG_ID_SETTING_SOUND_EFFECT));
- ADD_APPLICATION_STRING2(STR_ID_SETTING_SOUND_EFFECT, "Sound effects", "Menu item string for Sound Effect");
- #ifdef __SUB_MENU_MATRIX_DISPLAY__
- ADD_APPLICATION_IMAGE2(
- IMG_ID_SETTING_SOUND_EFFECT,
- CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\SOUND_EFFECT.png",
- "Menu item image for Sound Effect");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_SETTING_SOUND_EFFECT_EX,
- CUST_IMG_PATH"\\MainLCD\\MainMenu\\MATRIX\\setting\\SOUND_EFFECT_ani.png",
- "Menu item image for Sound Effect");
- #else
- ADD_APPLICATION_IMAGE2(
- IMG_ID_SETTING_SOUND_EFFECT,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SB_SNDEFT.pbm",
- "Menu item image for Sound Effect");
- #endif
- #ifdef __MMI_AUDIO_BASS_ENHANCEMENT__
- ADD_APPLICATION_MENUITEM((MNEU_SETTING_BASS_ENHANCEMENT, MENU_SETTING_SOUND_EFFECT, 0, SHOW,
- MOVEABLEACROSSPARENT | SHORTCUTABLE, DISP_LIST, STR_ID_SETTING_BASS_ENHANCEMENT,
- IMG_ID_SETTING_BASS_ENHANCEMENT));
- ADD_APPLICATION_STRING2(STR_ID_SETTING_BASS_ENHANCEMENT, "Bass enhancement", "Audio setting bass enhancement");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_SETTING_BASS_ENHANCEMENT,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SoundEffect\\ST_SUPER_BASS.pbm",
- "Menu item image for bass enhancement");
- #endif
- #if defined(__MMI_AUDIO_EQUALIZER__) || defined(__MMI_AUDIO_REVERB_EFFECT__) || defined(__MMI_AUDIO_SURROUND_EFFECT__)
-
- ADD_APPLICATION_MENUITEM((MENU_SETTING_AUDIO_EFFECT, MENU_SETTING_SOUND_EFFECT, 0, SHOW,
- MOVEABLEACROSSPARENT | SHORTCUTABLE, DISP_LIST, STR_ID_SETTING_AUDIO_EFFECT,
- IMG_ID_SETTING_AUDIO_REVERB_EFFECT));
- #ifdef __MMI_EDITABLE_AUDIO_EQUALIZER__
- /* menu items for the setting options. */
- ADD_APPLICATION_MENUITEM((MENU_SETTING_AUDIO_EQUALIZER_SET_OPT, 0, 4, MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_SELECT,
- MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_EDIT, MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_RENAME,
- MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_RESET,SHOW, NONMOVEABLE, DISP_LIST, STR_GLOBAL_OPTIONS, NULL));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_SELECT, MENU_SETTING_AUDIO_EQUALIZER_SET_OPT, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_SELECT, NULL));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_EDIT, MENU_SETTING_AUDIO_EQUALIZER_SET_OPT, 0, SHOW,
- MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_EDIT, NULL));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_RENAME, MENU_SETTING_AUDIO_EQUALIZER_SET_OPT, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_RENAME,
- NULL));
- ADD_APPLICATION_MENUITEM((MENU_SETTING_AUDIO_EQUALIZER_SET_OPT_RESET, MENU_SETTING_AUDIO_EQUALIZER_SET_OPT, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_SETTING_AUDIO_EQUALIZER_REST_FACT_DEFAULT,
- NULL));
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EQUALIZER_CAPTION, "Equalizer", "Title string for the Equalizer Menu");
- ADD_APPLICATION_STRING2(
- STR_ID_SETTING_AUDIO_EQUALIZER_REST_FACT_DEFAULT,
- "Restore default",
- "String for Restoring the Audio Equalizer Setting values to default");
- ADD_APPLICATION_STRING2(
- STR_ID_SETTING_AUDIO_EQUALIZER_SETTIN_NAME_EDIT_TITLE,
- "Enter Name",
- "Title string for setting name editing screen ");
- ADD_APPLICATION_STRING2(
- STR_ID_SETTING_AUDIO_EQUALIZER_SETTING_INVALID_NAME,
- "Empty Name",
- "Warning string for invalid/empty name");
- #endif /* __MMI_EDITABLE_AUDIO_EQUALIZER__ */
- /* add string resources */
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EQUALIZER_REST_FACT_DEFAULT_CONFIRM, "Restore default settings?","restore default confirm" );
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EFFECT, "Audio Effect", "Menu item string for Audio Effect");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EQUALIZER, "Equalizer", "Menu item string for Audio Equalizer");
- ADD_APPLICATION_STRING2(
- STR_ID_SETTING_AUDIO_EQUALIZER_SET_1,
- "Normal",
- "Menu item string for Audio Equalizer Set 1");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EQUALIZER_SET_2, "Bass", "Menu item string for Audio Equalizer Set 2");
- ADD_APPLICATION_STRING2(
- STR_ID_SETTING_AUDIO_EQUALIZER_SET_3,
- "Dance",
- "Menu item string for Audio Equalizer Set 3");
- ADD_APPLICATION_STRING2(
- STR_ID_SETTING_AUDIO_EQUALIZER_SET_4,
- "Classical",
- "Menu item string for Audio Equalizer Set 4");
- ADD_APPLICATION_STRING2(
- STR_ID_SETTING_AUDIO_EQUALIZER_SET_5,
- "Treble",
- "Menu item string for Audio Equalizer Set 5");
- ADD_APPLICATION_STRING2(
- STR_ID_SETTING_AUDIO_EQUALIZER_SET_6,
- "Party",
- "Menu item string for Audio Equalizer Set 6");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EQUALIZER_SET_7, "Pop", "Menu item string for Audio Equalizer Set 7");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EQUALIZER_SET_8, "Rock", "Menu item string for Audio Equalizer Set 8");
- /* add image resources */
- ADD_APPLICATION_IMAGE2(
- IMG_ID_SETTING_AUDIO_EQUALIZER,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SoundEffect\\ST_AUDIO_EQ.pbm",
- "Menu item image for Audio Equalizer");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_SETTING_AUDIO_REVERB_EFFECT,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SoundEffect\\ST_AUDIO_REVERB.pbm",
- "Menu item image for Audio Reverb Effect");
- /*
- * Populate Audio Reverb Effect Resource.
- */
- #ifdef __MMI_AUDIO_REVERB_EFFECT__
- /* Add menuitems */
- /* Add string resources */
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT, "Reverb Effect", "Menu item string for Audio Reverb Effect");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT_SET1, "Concert", "Menu item string for Audio Reverb Effect");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT_SET2, "Shower", "Menu item string for Audio Reverb Effect");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT_SET3, "Church", "Menu item string for Audio Reverb Effect");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT_SET4, "Small Room", "Menu item string for Audio Reverb Effect");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT_SET5, "Opera", "Menu item string for Audio Reverb Effect");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_REVERB_EFFECT_SET6, "Bath Room", "Menu item string for Audio Reverb Effect");
- /* add image resources */
- #endif /* __MMI_AUDIO_REVERB_EFFECT__ */
- /*
- * Populate Audio Surround Effect Resource.
- */
- #ifdef __MMI_AUDIO_SURROUND_EFFECT__
- /* Add menuitems */
- /* Add string resources */
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_SURROUND_EFFECT, "3D Surround Effect", "Menu item string for Audio Surround Effect");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_SURROUND_PLUG_EAPHONE, "Plug earphone for the effect", "Menu item string for Audio Surround Effect");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_SURROUND_MODE1, "Mode 1", "Menu item string for Audio Surround Effect");
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_SURROUND_MODE2, "Mode 2", "Menu item string for Audio Surround Effect");
- /* add image resources */
- ADD_APPLICATION_IMAGE2(
- IMG_ID_SETTING_AUDIO_SURROUND_EFFECT,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SoundEffect\\ST_AUDIO_3D.pbm",
- "Menu item image for Audio Surround Effect");
- #endif /*__MMI_AUDIO_SURROUND_EFFECT__*/
- #if defined(__MMI_AUDIO_SURROUND_EFFECT__) && defined(__MMI_AUDIO_REVERB_EFFECT__)
- ADD_APPLICATION_STRING2(STR_ID_SETTING_AUDIO_EFFECT_NO_COEXIST, "Reverb and surround can't turn on together", "Menu item string for Audio Surround Effect");
- #endif /*#if defined(__MMI_AUDIO_SURROUND_EFFECT__) || (__MMI_AUDIO_REVERB_EFFECT__)*/
- #endif /*#if defined(__MMI_AUDIO_EQUALIZER__) || defined(__MMI_AUDIO_REVERB_EFFECT__) || defined(__MMI_AUDIO_SURROUND_EFFECT__)*/
- }
- #endif /* __MMI_SOUND_EFFECT__ */
- /*****************************************************************************
- * FUNCTION
- * PopulatePrefNwk
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void PopulatePrefNwk(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ADD_APPLICATION_STRING2(
- STR_ID_NETSET_PRF_NWK_TITLE,
- "Preferred Networks",
- "Menu item string for Preferred Network ");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_PRF_NWK_TITLE,
- CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
- "Title image for Preferred Network Menu");
- ADD_APPLICATION_IMAGE2(IMG_ID_NETSET_LSK_ABORT, CUST_IMG_BASE_PATH "\\EmptyImage.bmp", "LSK Button Image for Abort");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_PNWK_GET_LIST_MSG,
- CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
- "Image to show user with Preferred Network Message");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_PRR_NWK_NEW, "Create New", "Create New preferred network");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_LSK_OPTIONS,
- CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
- "LSK Icon for Options button");
- ADD_APPLICATION_MENUITEM((MITEM_PRF_NWK_OPTIONS_PSEUDO,
- 0, 4,
- MITEM_PRR_NWK_ADD,
- MITEM_PRR_NWK_NEW,
- MITEM_PRR_NWK_EDIT,
- MITEM_PRR_NWK_DELETE,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_OPTIONS, NULL));
- ADD_APPLICATION_MENUITEM((MITEM_PRR_NWK_ADD, MITEM_PRF_NWK_OPTIONS_PSEUDO, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_MITEM_PRF_NWK_ADD, NULL));
- ADD_APPLICATION_MENUITEM((MITEM_PRR_NWK_NEW, MITEM_PRF_NWK_OPTIONS_PSEUDO, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_PRR_NWK_NEW, NULL));
- ADD_APPLICATION_MENUITEM((MITEM_PRR_NWK_DELETE, MITEM_PRF_NWK_OPTIONS_PSEUDO, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_DELETE,
- IMG_ID_NETSET_MITEM_PRF_NWK_DELETE));
- ADD_APPLICATION_MENUITEM((MITEM_PRR_NWK_EDIT, MITEM_PRF_NWK_OPTIONS_PSEUDO, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_NETSET_MITEM_PRF_NWK_EDIT,
- IMG_ID_NETSET_MITEM_PRF_NWK_EDIT));
- /* diamond, 2006/03/08 New PLMN management */
- ADD_APPLICATION_MENUITEM((MENU_ID_ADD_FROM_LIST_OPTIONS, 0, 3,
- MENU_ID_ADD_FROM_LIST_DONE,
- MENU_ID_ADD_FROM_LIST_SORT_BY_DEFAULT,
- MENU_ID_ADD_FROM_LIST_SORT_BY_ALPHABET,
- SHOW, MOVEABLEACROSSPARENT, DISP_LIST, STR_GLOBAL_OPTIONS, IMG_SETTING_NETWORK));
- ADD_APPLICATION_MENUITEM((MENU_ID_ADD_FROM_LIST_DONE, MENU_ID_ADD_FROM_LIST_OPTIONS, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_GLOBAL_SELECT, 0));
- ADD_APPLICATION_MENUITEM((MENU_ID_ADD_FROM_LIST_SORT_BY_DEFAULT, MENU_ID_ADD_FROM_LIST_OPTIONS, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_PLMN_LIST_SORT_BY_DEFAULT, 0));
- ADD_APPLICATION_MENUITEM((MENU_ID_ADD_FROM_LIST_SORT_BY_ALPHABET, MENU_ID_ADD_FROM_LIST_OPTIONS, 0,
- SHOW, MOVEABLEWITHINPARENT, DISP_LIST, STR_ID_PLMN_LIST_SORT_BY_ALPHABET, 0));
- ADD_APPLICATION_STRING2(STR_ID_NETSET_MITEM_PRF_NWK_ADD, "Add From List", "Menu Item Add Preferred Network");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_MITEM_PRF_NWK_DELETE,
- CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
- "Icon for Menu Item to Delete Preferred Network");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_MITEM_PRF_NWK_EDIT, "Change Priority", "Menu Item Edit Preferred Network");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_MITEM_PRF_NWK_EDIT,
- CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
- "Icon for Menu Item to Edit Preferred Network");
- ADD_APPLICATION_STRING2(
- STR_ID_NETSET_PRF_NWK_ADDED_ERR,
- "Unable To Add Network",
- "Message String for Deleted Preferred Network Error");
- ADD_APPLICATION_STRING2(
- STR_ID_NETSET_PRF_NWK_INVALID_MCCMNC,
- "MCC/MNC length is not less than 5",
- "Message String for Invalid MCC/MNC Error");
-
- ADD_APPLICATION_STRING2(
- STR_ID_NETSET_PRF_ADD_SHW_NWK_TITLE,
- "PLMN LIST",
- "Title String for Error Screen Preferred Network");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_PRR_MCC_CAPTION, "MCC/MNC", "MCC/MNC String");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_PRR_SV_CAPTION, "Service", "Service String");
- #ifdef __MANUAL_MODE_NW_SEL__
- ADD_APPLICATION_STRING2(STR_ID_NETSET_MANUAL_MODE_TITLE, "Select Network", "Select Network As Manual Mode");
- ADD_APPLICATION_STRING2(STR_ID_NETSET_MANUAL_MODE_SHORT, "Sel. Network", "Select Network As Manual Mode");
- #endif /* __MANUAL_MODE_NW_SEL__ */
- /* diamond, 2006/03/08 New PLMN management */
- ADD_APPLICATION_STRING2(STR_ID_PLMN_LIST_SORT_BY_ALPHABET, "Sort by alphabet", "Sort PLMN list");
- ADD_APPLICATION_STRING2(STR_ID_PLMN_LIST_SORT_BY_DEFAULT, "Sort by default", "Sort PLMN list");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_PRF_HOME_PLMN,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\ST_HOME.PBM",
- "home img");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_PRF_ADDNEW_MMC,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Common\\SB_MMC.pbm",
- "MMC Image");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_PRF_ADDNEW_POY,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Common\\SB_POY.pbm",
- "POY Image");
- /* diamond, 2006/06/05 forbidden PLMN icons */
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_FORBIDDEN_PLMN,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SB_Off.pbm",
- "Forbidden PLMN image");
- ADD_APPLICATION_IMAGE2(
- IMG_ID_NETSET_UNKNOWN_PLMN,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\SB_Unknow.pbm",
- "Unknown PLMN image");
- }
- /*****************************************************************************
- * FUNCTION
- * PopulateSpofRes
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void PopulateSpofRes(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ADD_APPLICATION_STRING2(SPOF_MAIN_TITLE_STRINGID, "Sched. Power On/Off", "Title of Scheuled Power On/Off Screen.");
- ADD_APPLICATION_IMAGE2(SPOF_EDIT_BUTTON_IMAGEID, CUST_IMG_BASE_PATH "\\EmptyImage.bmp", "Icon for Edit Button.");
- ADD_APPLICATION_IMAGE2(
- SPOF_TYPEPOWERON_IMAGEID,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Poweronoff\\ST_PON.PBM",
- "Icon for Type of SPOF on/off.");
- ADD_APPLICATION_IMAGE2(
- SPOF_TYPEPOWEROFF_IMAGEID,
- CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\Poweronoff\\ST_POFF.PBM",
- "Icon for Type of SPOF on/off.");
- ADD_APPLICATION_IMAGE2(
- SPOF_BLANK_IMAGEID,
- CUST_IMG_BASE_PATH "\\EmptyImage.bmp",
- "Icon for Title of Alarms Option Screen.");
- ADD_APPLICATION_IMAGE2(SPOF_SETTING_STATUS_IMAGEID, CUST_IMG_PATH "\\MainLCD\\SubMenu\\Settings\\common\\ST_STATU.PBM", "Setting Image for Power on off Status icon"); /* have to check */
- ADD_APPLICATION_STRING2(SPOF_EDIT_TITLE_STRINGID, "Edit Power On/Off", "Title of Alarms Option Screen.");
- ADD_APPLICATION_STRING2(SPOF_STATUS_STRINGID, "Status", "Status Caption");
- ADD_APPLICATION_STRING2(SPOF_DISABLE_STRINGID, "Disable", "Disable.");
- ADD_APPLICATION_STRING2(SPOF_ENABLE_STRINGID, "Enable", "Enable");
- ADD_APPLICATION_STRING2(SPOF_TIME_CONFLICT, "Conflict", "Conflict String");
- ADD_APPLICATION_STRING2(SPOF_POWER_OFF_CONFIRM, "Power Off?", "power off String");
- }
- /*****************************************************************************
- * FUNCTION
- * AutoGenDispCharRes
- * DESCRIPTION
- * Automatically generate all display char. resources.
- * PARAMETERS
- * void
- * RETURNS
- * True: success; False: can't open the folder of all images
- *****************************************************************************/
- #ifndef LOW_COST_SUPPORT
- MMI_BOOL AutoGenDispCharRes(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- int i, category;
- int wpCount = 0, subCount = 0, ssCountImg = 0, ssCountVdo = 0;
- int onCountImg = 0, onCountVdo = 0, offCountImg = 0, offCountVdo = 0;
- int analogExist = 0, digitExist = 0, themeExit = 0, swflashCount = 0;
- int wpStart = IMG_WALLPAPER_START;
- int subStart = IMG_WALLPAPER_START + MMI_MAX_DISPCHAR_IMG;
- int ssStartImg = IMG_SCREENSAVER_START;
- int ssStartVdo = IMG_SCREENSAVER_START + MMI_MAX_DISPCHAR_IMG;
- int onStartImg = IMG_ID_PHNSET_ON_OFF_START;
- int onStartVdo = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM;
- int offStartImg = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM + MMI_MAX_DISPCHAR_VDO;
- int offStartVdo = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM*2 + MMI_MAX_DISPCHAR_VDO;
- int otherStart = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM*2 + MMI_MAX_DISPCHAR_VDO*2;
- int swflashStart = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM*3 + MMI_MAX_DISPCHAR_VDO*2;
- char *wpStr;
- char *subStr;
- char *ssStrImg;
- char *ssStrVdo;
- char *onStrImg;
- char *onStrVdo;
- char *offStrImg;
- char *offStrVdo;
- char tmpPath[FILENAME_MAX], id_to_str[150];
- char strStr[15], strId[50];
- PHNSET_TYPE_DISP fileType;
- DIR *dir;
- struct dirent *ent;
- FILE *targetHeader;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* Populating general display char. Resources */
- for (i = 0; i < MMI_MAX_DISPCHAR_IMG; i++)
- {
- sprintf(strId, "STR_ID_PHNSET_DISPCHAR_IMGID_%d", i);
- sprintf(strStr, "Image %d", i + 1);
- ADD_APPLICATION_STRING3(STR_ID_PHNSET_DISPCHAR_IMGID_START + i, strId, strStr, "DisplayCharList");
- fprintf(res_log, "Generate %s=%d, String=%sn", strId, STR_ID_PHNSET_DISPCHAR_IMGID_START + i, strStr);
- }
- for (i = 0; i < MMI_MAX_DISPCHAR_ANM; i++)
- {
- sprintf(strId, "STR_ID_PHNSET_DISPCHAR_ANMID_%d", i);
- sprintf(strStr, "Animation %d", i + 1);
- ADD_APPLICATION_STRING3(STR_ID_PHNSET_DISPCHAR_ANMID_START + i, strId, strStr, "DisplayCharList");
- fprintf(res_log, "Generate %s=%d, String=%sn", strId, STR_ID_PHNSET_DISPCHAR_ANMID_START + i, strStr);
- }
- for (i = 0; i < MMI_MAX_DISPCHAR_VDO; i++)
- {
- sprintf(strId, "STR_ID_PHNSET_DISPCHAR_VDOID_%d", i);
- sprintf(strStr, "Video %d", i + 1);
- ADD_APPLICATION_STRING3(STR_ID_PHNSET_DISPCHAR_VDOID_START + i, strId, strStr, "DisplayCharList");
- fprintf(res_log, "Generate %s=%d, String=%sn", strId, STR_ID_PHNSET_DISPCHAR_VDOID_START + i, strStr);
- }
- if ((dir = opendir(CUST_IMG_PATH "\\DispChar")) == NULL)
- {
- return MMI_FALSE;
- }
- else
- {
- char *dispStr[MMI_PHNSET_TYPE_MAX + 3]; /* 3 = on + off + ss vdo */
- fprintf(res_log, "nnSuccess to open the directory: %sn", CUST_IMG_PATH "\\DispChar");
- targetHeader = fopen("..\..\MMI\Setting\SettingInc\PhoneSetupResList.h", "w+");
- #ifdef __MMI_ANALOG_CLOCK__
- fprintf(res_log, "__MMI_ANALOG_CLOCK__n");
- #endif
- #ifdef __MMI_DIGITAL_CLOCK__
- fprintf(res_log, "__MMI_DIGITAL_CLOCK__n");
- #endif
- #ifdef __MMI_THEMES_V2_SUPPORT__
- fprintf(res_log, "__MMI_THEMES_V2_SUPPORT__n");
- #endif
- #ifdef __MMI_SUB_WALLPAPER__
- fprintf(res_log, "__MMI_SUB_WALLPAPER__n");
- #endif
- #ifdef __MMI_POWER_ON_OFF_DISPLAY__
- fprintf(res_log, "__MMI_POWER_ON_OFF_DISPLAY__n");
- #endif
- #ifdef __MMI_VIDEO_PLAYER__
- fprintf(res_log, "__MMI_VIDEO_PLAYER__n");
- #endif
- #if defined(__MMI_VIDEO_RECORDER__) && !defined(__MMI_CAMCORDER__)
- fprintf(res_log, "__MMI_VIDEO_RECORDER__n");
- #endif
- #ifdef __MMI_SCREENSAVER_DISPLAY_VIDEO__
- fprintf(res_log, "__MMI_SCREENSAVER_DISPLAY_VIDEO__n");
- #endif
- #ifdef __MMI_POWER_ON_OFF_DISPLAY_VIDEO__
- fprintf(res_log, "__MMI_POWER_ON_OFF_DISPLAY_VIDEO__n");
- #endif
- #ifdef __MMI_SWFLASH__
- fprintf(res_log, "__MMI_SWFLASH__n");
- #endif
- #ifdef SVG_SUPPORT
- fprintf(res_log, "SVG_SUPPORTn");
- #endif
- #ifdef M3D_MMI_SUPPORT
- fprintf(res_log, "M3D_MMI_SUPPORTn");
- #endif
- /* Allocate Output Buffer for PhoneSetupResList.h */
- for(i = 0; i < (MMI_PHNSET_TYPE_MAX + 3); i++)
- {
- dispStr[i] = (char *) malloc(600);
- }
- wpStr = dispStr[MMI_PHNSET_TYPE_WP];
- sprintf(wpStr, " IMG_ID_PHNSET_WP_START = IMG_WALLPAPER_START,n");
- #ifdef __MMI_SUB_WALLPAPER__
- subStr = dispStr[MMI_PHNSET_TYPE_SUB_WP];
- sprintf(subStr, " IMG_ID_PHNSET_SUB_WP_START = IMG_WALLPAPER_START + MMI_MAX_DISPCHAR_IMG,n");
- #endif
-
- ssStrImg = dispStr[MMI_PHNSET_TYPE_SS];
- sprintf(ssStrImg, " IMG_ID_PHNSET_SS_START = IMG_SCREENSAVER_START,n");
-
- ssStrVdo = dispStr[MMI_PHNSET_TYPE_MAX + 0];
- sprintf(ssStrVdo, " IMG_ID_PHNSET_SS_VDO_START = IMG_SCREENSAVER_START + MMI_MAX_DISPCHAR_IMG,n");
- #ifdef __MMI_POWER_ON_OFF_DISPLAY__
- onStrImg = dispStr[MMI_PHNSET_TYPE_PWRON];
- sprintf(onStrImg, " IMG_ID_PHNSET_ON_START = IMG_ID_PHNSET_ON_OFF_START,n");
-
- onStrVdo = dispStr[MMI_PHNSET_TYPE_MAX + 1];
- sprintf(onStrVdo, " IMG_ID_PHNSET_ON_VDO_START = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM,n");
- offStrImg = dispStr[MMI_PHNSET_TYPE_PWROFF];
- sprintf(offStrImg, " IMG_ID_PHNSET_OFF_START = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM + MMI_MAX_DISPCHAR_VDO,n");
- offStrVdo = dispStr[MMI_PHNSET_TYPE_MAX + 2];
- sprintf(offStrVdo, " IMG_ID_PHNSET_OFF_VDO_START = IMG_ID_PHNSET_ON_OFF_START + MMI_MAX_DISPCHAR_ANM + MMI_MAX_DISPCHAR_VDO + MMI_MAX_DISPCHAR_ANM,n");
- #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */
- while ((ent = readdir(dir)) != NULL)
- {
- category = 0;
- fprintf(res_log, "Process file: %sn", ent->d_name);
- for (i = 0; i < FILENAME_MAX; i++)
- {
- tmpPath[i] = ToUpper(ent->d_name[i]);
- }
- if (!strcmp(tmpPath, ".") || !strcmp(tmpPath, ".."))
- {
- continue;
- }
- /* Determain dispchar type */
- for(i = 0; i < MMI_PHNSET_TYPE_MAX; i++)
- {
- if(strstr(tmpPath, "WP"))
- {
- #ifdef __MMI_RES_TYPE_WALLPAPER__
- if(strstr(tmpPath, __MMI_RES_TYPE_WALLPAPER__))
- #endif
- {
- category |= 1 << MMI_PHNSET_TYPE_WP;
- }
- }
-
- #ifdef __MMI_SUB_WALLPAPER__
- if(strstr(tmpPath, "SUB"))
- {
- #ifdef __MMI_RES_TYPE_SUBLCD_WALLPAPER__
- if(strstr(tmpPath, __MMI_RES_TYPE_SUBLCD_WALLPAPER__))
- #endif
- {
- category |= 1 << MMI_PHNSET_TYPE_SUB_WP;
- }
- }
- #endif
-
- if(strstr(tmpPath, "SS"))
- {
- #ifdef __MMI_RES_TYPE_WALLPAPER__
- if(strstr(tmpPath, __MMI_RES_TYPE_WALLPAPER__))
- #endif
- {
- category |= 1 << MMI_PHNSET_TYPE_SS;
- }
- }
- #ifdef __MMI_POWER_ON_OFF_DISPLAY__
- if(strstr(tmpPath, "ON"))
- {
- #ifdef __MMI_RES_TYPE_POWER_ONOFF__
- if(strstr(tmpPath, __MMI_RES_TYPE_POWER_ONOFF__))
- #endif
- {
- category |= 1 << MMI_PHNSET_TYPE_PWRON;
- }
- }
-
- if(strstr(tmpPath, "OFF"))
- {
- #ifdef __MMI_RES_TYPE_POWER_ONOFF__
- if(strstr(tmpPath, __MMI_RES_TYPE_POWER_ONOFF__))
- #endif
- {
- category |= 1 << MMI_PHNSET_TYPE_PWROFF;
- }
- }
- #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */
- }
-
- /* Determain media type */
- if (strstr(tmpPath, ".MP4") || strstr(tmpPath, ".AVI"))
- {
- fileType = PHNSET_TYPE_DISP_VIDEO;
- fprintf(res_log, " Add a Videon");
- }
- else if (strstr(tmpPath, ".VIS") || strstr(tmpPath, ".CMP") || strstr(tmpPath, ".MSF"))
- #ifdef __MMI_SWFLASH__
- {
- fileType = PHNSET_TYPE_DISP_SWFLASH;
- fprintf(res_log, " Add a SWFlashn");
- sprintf(id_to_str, "IMG_ID_PHNSET_SWFLASH_%dn", swflashCount);
- fprintf(
- res_log,
- " ADD_APPLICATION_IMAGE4(%s=%d, %s, MB=%d)n",
- id_to_str,
- swflashStart + swflashCount,
- tmpPath,
- MMI_TRUE);
- ADD_APPLICATION_IMAGE4(
- swflashStart + swflashCount,
- id_to_str,
- CUST_IMG_PATH "\\DispChar\\",
- tmpPath,
- "Associate to DispChar",
- MMI_TRUE);
-
- swflashCount++;
- continue;
- }
- #else
- {
- continue;
- }
- #endif
- #if !defined(__M3D_SUPPORT__)
- else if (strstr(tmpPath, ".M3D"))
- {
- continue;
- }
- #endif
- #if !defined(SVG_SUPPORT)
- else if (strstr(tmpPath, ".SVG"))
- {
- continue;
- }
- #endif
- #ifdef __MMI_ANALOG_CLOCK__
- /* generate analog clock resource */
- else if (strstr(tmpPath, "ANALOG"))
- {
- fprintf(res_log, " Add Analog Clockn");
- fprintf(
- res_log,
- " ADD_APPLICATION_IMAGE4(IMG_ID_DISPCHAR_ANALOG_CLK=%d, %s, MB=%d)n",
- otherStart + 1,
- tmpPath,
- MMI_TRUE);
- ADD_APPLICATION_IMAGE4(
- otherStart + 1,
- "IMG_ID_DISPCHAR_ANALOG_CLK",
- CUST_IMG_PATH "\\DispChar\\",
- tmpPath,
- "Associate to DispChar",
- MMI_TRUE);
- continue;
- }
- #endif /* __MMI_ANALOG_CLOCK__ */
-
- #ifdef __MMI_DIGITAL_CLOCK__
- /* generate digital clock resource */
- else if (strstr(tmpPath, "DIGITAL"))
- {
- fprintf(res_log, " Add Digital Clockn");
- fprintf(
- res_log,
- " ADD_APPLICATION_IMAGE4(IMG_ID_DISPCHAR_DIGITAL_CLK=%d, %s, MB=%d)n",
- otherStart + 1,
- tmpPath,
- MMI_TRUE);
- ADD_APPLICATION_IMAGE4(
- otherStart + 1,
- "IMG_ID_DISPCHAR_DIGITAL_CLK",
- CUST_IMG_PATH "\\DispChar\\",
- tmpPath,
- "Associate to DispChar",
- MMI_TRUE);
- continue;
- }
- #endif /* __MMI_DIGITAL_CLOCK__ */
- else
- {
- fileType = PHNSET_TYPE_DISP_IMAGE;
- fprintf(res_log, " Add an imagen");
- }
-
- /* generate wallpaper resource */
- if (fileType == PHNSET_TYPE_DISP_IMAGE && ISCATEGORY(MMI_PHNSET_TYPE_WP))
- {
- #if defined __MMI_RES_TYPE_WALLPAPER__
- if (strstr(tmpPath, __MMI_RES_TYPE_WALLPAPER__))
- #endif
- {
- /* Current Wallpaper ID */
- int curr_id = wpStart + wpCount;
- /* Turn the image ID into string */
- sprintf(id_to_str, "IMG_ID_PHNSET_WP_%d", wpCount);
- /* log */
- fprintf(res_log, " Add to wallpapern");
- fprintf(
- res_log,
- " ADD_APPLICATION_IMAGE4(%s=%d, %s, MB=%d)n",
- id_to_str,
- curr_id,
- tmpPath,
- MMI_TRUE);
- /* Populate the image */
- ADD_APPLICATION_IMAGE4(
- curr_id,
- id_to_str,
- CUST_IMG_PATH "\\DispChar\\",
- tmpPath,
- "Associate to DispChar",
- MMI_TRUE);
- /* add the string ID associated to the image */
- if(wpCount)
- sprintf(id_to_str, " IMG_ID_PHNSET_WP_%d,n", wpCount);
- else
- sprintf(id_to_str, " IMG_ID_PHNSET_WP_%d = IMG_ID_PHNSET_WP_START,n", wpCount);
- strcat(wpStr, id_to_str);
-
- wpCount++;
-
- }
- }
- #ifdef __MMI_SUB_WALLPAPER__
- /* generate sub wallpaper resource */
- if (fileType == PHNSET_TYPE_DISP_IMAGE && ISCATEGORY(MMI_PHNSET_TYPE_SUB_WP))
- {
- #if defined __MMI_RES_TYPE_SUBLCD_WALLPAPER__
- if (strstr(tmpPath, __MMI_RES_TYPE_SUBLCD_WALLPAPER__))
- #endif
- {
- /* Current image ID */
- int curr_id = subStart + subCount;
-
- /* Turn the image ID into string */
- sprintf(id_to_str, "IMG_ID_PHNSET_SUB_WP_%d", subCount);
-
- /* log */
- fprintf(res_log, " Add to sub-wallpapern");
- fprintf(
- res_log,
- " ADD_APPLICATION_IMAGE4(%s=%d, %s, MB=%d)n",
- id_to_str,
- curr_id,
- tmpPath,
- MMI_TRUE);
-
- /* Populate the image */
- ADD_APPLICATION_IMAGE4(
- curr_id,
- id_to_str,
- CUST_IMG_PATH "\\DispChar\\",
- tmpPath,
- "Associate to DispChar",
- MMI_TRUE);
-
- /* add the string ID associated to the image */
- if(subCount)
- sprintf(id_to_str, " IMG_ID_PHNSET_SUB_WP_%d,n", subCount);
- else
- sprintf(id_to_str, " IMG_ID_PHNSET_SUB_WP_%d = IMG_ID_PHNSET_SUB_WP_START,n", subCount);
- strcat(subStr, id_to_str);
-
- subCount++;
- }
- }
- #endif /* __MMI_SUB_WALLPAPER__ */
- /* generate screen saver resource */
- if (ISCATEGORY(MMI_PHNSET_TYPE_SS))
- {
- #if defined __MMI_RES_TYPE_SCREEN_SAVER__
- if (strstr(tmpPath, __MMI_RES_TYPE_SCREEN_SAVER__))
- #elif defined __MMI_RES_TYPE_WALLPAPER__
- if (strstr(tmpPath, __MMI_RES_TYPE_WALLPAPER__))
- #endif
- {
- /* Current resource ID */
- int curr_id;
- fprintf(res_log, " Add to screen savern");
-
- if (fileType == PHNSET_TYPE_DISP_IMAGE)
- {
- curr_id = ssStartImg + ssCountImg;
-
- /* Turn the image ID into string */
- sprintf(id_to_str, "IMG_ID_PHNSET_SS_%d", ssCountImg);
- fprintf(
- res_log,
- " ADD_APPLICATION_IMAGE4(%s=%d, %s, MB=%d)n",
- id_to_str,
- curr_id,
- tmpPath,
- MMI_TRUE);
- /* Populate the image */
- ADD_APPLICATION_IMAGE4(
- curr_id,
- id_to_str,
- CUST_IMG_PATH "\\DispChar\\",
- tmpPath,
- "Associate to DispChar",
- MMI_TRUE);
- /* add the string ID associated to the image */
- if(ssCountImg)
- sprintf(id_to_str, " IMG_ID_PHNSET_SS_%d,n", ssCountImg);
- else
- sprintf(id_to_str, " IMG_ID_PHNSET_SS_%d = IMG_ID_PHNSET_SS_START,n", ssCountImg);
- strcat(ssStrImg, id_to_str);
-
- ssCountImg++;
- }
- else
- {
- curr_id = ssStartVdo + ssCountVdo;
-
- /* Turn the image ID into string */
- sprintf(id_to_str, "IMG_ID_PHNSET_SS_VDO_%d", ssCountVdo);
- fprintf(
- res_log,
- " ADD_APPLICATION_MEDIA4(%s=%d, %s, MB=%d)n",
- id_to_str,
- curr_id,
- tmpPath,
- MMI_TRUE);
- /* Populate the image */
- ADD_APPLICATION_MEDIA4(
- curr_id,
- id_to_str,
- CUST_IMG_PATH "\\DispChar\\",
- tmpPath,
- "Associate to DispChar",
- MMI_TRUE);
- /* add the string ID associated to the image */
- if(ssCountVdo)
- sprintf(id_to_str, " IMG_ID_PHNSET_SS_VDO_%d,n", ssCountVdo);
- else
- sprintf(id_to_str, " IMG_ID_PHNSET_SS_VDO_%d = IMG_ID_PHNSET_SS_VDO_START,n", ssCountVdo);
- strcat(ssStrVdo, id_to_str);
-
- ssCountVdo++;
- }
- }
- }
-
- #ifdef __MMI_POWER_ON_OFF_DISPLAY__
- /* generate power on display resource */
- if (ISCATEGORY(MMI_PHNSET_TYPE_PWRON) || ISCATEGORY(MMI_PHNSET_TYPE_PWROFF))
- {
- #if defined __MMI_RES_TYPE_POWER_ONOFF__
- if (strstr(tmpPath, __MMI_RES_TYPE_POWER_ONOFF__))
- #endif
- {
- /* Current resource ID */
- int curr_id, tmpType;
- int *tmpCount = NULL;
- char *tmpStr = NULL;
- char *tmpSuffix[]=
- {
- "ON ", /* 0 */
- "ON_VDO ", /* 1 */
- "OFF ", /* 2 */
- "OFF_VDO ", /* 3 */
- ""
- };
-
- if (ISCATEGORY(MMI_PHNSET_TYPE_PWRON))
- {
- fprintf(res_log, " Add to PWR ON displayn");
- if (fileType == PHNSET_TYPE_DISP_IMAGE)
- {
- curr_id = onStartImg + onCountImg;
- sprintf(id_to_str, "IMG_ID_PHNSET_ON_%d", onCountImg);
- tmpCount = &onCountImg;
- tmpStr = onStrImg;
- tmpType = 0;
- }
- else
- {
- curr_id = onStartVdo + onCountVdo;
- sprintf(id_to_str, "IMG_ID_PHNSET_ON_VDO_%d", onCountVdo);
- tmpCount = &onCountVdo;
- tmpStr = onStrVdo;
- tmpType = 1;
- }
- if (fileType == PHNSET_TYPE_DISP_IMAGE)
- {
- fprintf(
- res_log,
- " ADD_APPLICATION_IMAGE4(%s=%d, %s, MB=%d)n",
- id_to_str,
- curr_id,
- tmpPath,
- MMI_TRUE);
-
- /* Populate the image */
- ADD_APPLICATION_IMAGE4(
- curr_id,
- id_to_str,
- CUST_IMG_PATH "\\DispChar\\",
- tmpPath,
- "Associate to DispChar",
- MMI_TRUE);
-
- }
- else
- {
- fprintf(
- res_log,
- " ADD_APPLICATION_MEDIA4(%s=%d, %s, MB=%d)n",
- id_to_str,
- curr_id,
- tmpPath,
- MMI_TRUE);
-
- /* Populate the image */
- ADD_APPLICATION_MEDIA4(
- curr_id,
- id_to_str,
- CUST_IMG_PATH "\\DispChar\\",
- tmpPath,
- "Associate to DispChar",
- MMI_TRUE);
- }
- /* add the string ID associated to the image */
- if(*tmpCount)
- sprintf(id_to_str, " IMG_ID_PHNSET_%s_%d,n", tmpSuffix[tmpType], *tmpCount);
- else
- sprintf(id_to_str, " IMG_ID_PHNSET_%s_%d = IMG_ID_PHNSET_%s_START,n", tmpSuffix[tmpType], *tmpCount, tmpSuffix[tmpType]);
-
- strcat(tmpStr, id_to_str);
- (*tmpCount)++;
-
- }
- if (ISCATEGORY(MMI_PHNSET_TYPE_PWROFF))
- {
- fprintf(res_log, " Add to PWR OFF displayn");
- if (fileType == PHNSET_TYPE_DISP_IMAGE)
- {
- curr_id = offStartImg + offCountImg;
- sprintf(id_to_str, "IMG_ID_PHNSET_OFF_%d", offCountImg);
- tmpCount = &offCountImg;
- tmpStr = offStrImg;
- tmpType = 2;
- }
- else
- {
- curr_id = onStartVdo + onCountVdo;
- sprintf(id_to_str, "IMG_ID_PHNSET_OFF_VDO_%d", offCountVdo);
- tmpCount = &offCountVdo;
- tmpStr = offStrVdo;
- tmpType = 3;
- }
- if (fileType == PHNSET_TYPE_DISP_IMAGE)
- {
- fprintf(
- res_log,
- " ADD_APPLICATION_IMAGE4(%s=%d, %s, MB=%d)n",
- id_to_str,
- curr_id,
- tmpPath,
- MMI_TRUE);
-
- /* Populate the image */
- ADD_APPLICATION_IMAGE4(
- curr_id,
- id_to_str,
- CUST_IMG_PATH "\\DispChar\\",
- tmpPath,
- "Associate to DispChar",
- MMI_TRUE);
-
- }
- else
- {
- fprintf(
- res_log,
- " ADD_APPLICATION_MEDIA4(%s=%d, %s, MB=%d)n",
- id_to_str,
- curr_id,
- tmpPath,
- MMI_TRUE);
-
- /* Populate the image */
- ADD_APPLICATION_MEDIA4(
- curr_id,
- id_to_str,
- CUST_IMG_PATH "\\DispChar\\",
- tmpPath,
- "Associate to DispChar",
- MMI_TRUE);
-
-
- }
- /* add the string ID associated to the image */
- if(*tmpCount)
- sprintf(id_to_str, " IMG_ID_PHNSET_%s_%d,n", tmpSuffix[tmpType], *tmpCount);
- else
- sprintf(id_to_str, " IMG_ID_PHNSET_%s_%d = IMG_ID_PHNSET_%s_START,n", tmpSuffix[tmpType], *tmpCount, tmpSuffix[tmpType]);
-
-
- strcat(tmpStr, id_to_str);
- (*tmpCount)++;
-
- }
- }
- }
- #endif /* __MMI_POWER_ON_OFF_DISPLAY__ */
- }
- closedir(dir);
- fprintf(res_log, "Success to generate image/video resourcen");
- fprintf(res_log, "Success to process the directory: %sn", CUST_IMG_PATH "\\DispChar");
- fprintf(targetHeader,
- "/*****************************************************************************n"
- "* Copyright Statement:n"
- "* --------------------n"
- "* This software is protected by Copyright and the information containedn"
- "* herein is confidential. The software may not be copied and the informationn"
- "* contained herein may not be used or disclosed except with the writtenn"
- "* permission of MediaTek Inc. (C) 2006n"
- "*n"
- "* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREESn"
- "* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")n"
- "* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ONn"
- "* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,n"
- "* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OFn"
- "* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.n"
- "* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THEn"
- "* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, ORn"
- "* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCHn"
- "* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSOn"
- "* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'Sn"
- "* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.n"
- "*n"
- "* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVEn"
- "* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,n"
- "* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,n"
- "* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TOn"
- "* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. n"
- "*n"
- "* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCEn"
- "* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OFn"
- "* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF ANDn"
- "* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDERn"
- "* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).n"
- "*n"
- "*****************************************************************************/n"
- "n"
- "/*****************************************************************************n"
- " *n"
- " * Filename:n"
- " * ---------n"
- " * PhoneSetupResList.hn"
- " *n"
- " * Project:n"
- " * --------n"
- " * MAUIn"
- " *n"
- " * Description:n"
- " * ------------n"
- " * This file is intends for Resource IDs for the Display Characteristicn"
- " *n"
- " * Author:n"
- " * -------n"
- " * Cylen Yao (mtk00911)n"
- " *n"
- " *============================================================================n"
- " *n"
- " * This file is automatically generated by the resource gen proceduren"
- " *n"
- " ****************************************************************************/n"
- "#ifndef PHONESETUPRESLIST_Hn"
- "#define PHONESETUPRESLIST_Hn");
-
- fprintf(targetHeader, "typedef enumn{n");
- /* Output wallpaper enum id */
- fprintf(targetHeader, "%s", wpStr);
- fprintf(targetHeader, " IMG_ID_PHNSET_WP_MAX = IMG_ID_PHNSET_WP_START + __MMI_WALLPAPER_NUM__ - 1,nn", wpCount - 1);
- #ifdef __MMI_SUB_WALLPAPER__
- /* Output sub-wallpaper enum id */
- fprintf(targetHeader, "%s", subStr);
- fprintf(targetHeader, " IMG_ID_PHNSET_SUB_WP_MAX = IMG_ID_PHNSET_SUB_WP_START + __MMI_WALLPAPER_NUM__ - 1,nn", subCount - 1);
- #endif /* __MMI_SUB_WALLPAPER__ */
-
- /* Output screensaver enum id */
- /* image */
- fprintf(targetHeader, "%s", ssStrImg);
- fprintf(targetHeader, " IMG_ID_PHNSET_SS_MAX = IMG_ID_PHNSET_SS_START + __MMI_WALLPAPER_NUM__ - 1,nn", ssCountImg - 1);
- /* video */
- fprintf(targetHeader, "%s", ssStrVdo);
- fprintf(targetHeader, " IMG_ID_PHNSET_SS_VDO_MAX = IMG_ID_PHNSET_SS_VDO_%d,nn", ssCountVdo - 1);
-
- fprintf(targetHeader, "#if defined(__MMI_POWER_ON_OFF_DISPLAY__)n");
- /* Output pwron disp enum id */
- /* image */
- fprintf(targetHeader, "%s", onStrImg);
- fprintf(targetHeader, " IMG_ID_PHNSET_ON_MAX = IMG_ID_PHNSET_ON_START + __MMI_WALLPAPER_NUM__ - 1,nn", onCountImg - 1);
- /* video */
- fprintf(targetHeader, "%s", onStrVdo);
- fprintf(targetHeader, " IMG_ID_PHNSET_ON_VDO_MAX = IMG_ID_PHNSET_ON_VDO_%d,nn", onCountVdo - 1);
-
- /* Output pwroff disp enum id */
- /* image */
- fprintf(targetHeader, "%s", offStrImg);
- fprintf(targetHeader, " IMG_ID_PHNSET_OFF_MAX = IMG_ID_PHNSET_OFF_START + __MMI_WALLPAPER_NUM__ - 1,nn", offCountImg - 1);
- /* video */
- fprintf(targetHeader, "%s", offStrVdo);
- fprintf(targetHeader, " IMG_ID_PHNSET_OFF_VDO_MAX = IMG_ID_PHNSET_OFF_VDO_%d,nn", offCountVdo - 1);
- fprintf(targetHeader, "#else /* __MMI_POWER_ON_OFF_DISPLAY__ */n");
- fprintf(targetHeader, " IMG_ID_PHNSET_ON_ANIMATION_DEFAULT = IMG_ID_PHNSET_ON_OFF_START,n");
- fprintf(targetHeader, " IMG_ID_PHNSET_OFF_ANIMATION_DEFAULT,n");
- fprintf(targetHeader, "#endif /* __MMI_POWER_ON_OFF_DISPLAY__ */n");
- /* Output other enum id */
- fprintf(targetHeader, ""
- " /* Other images */n"
- " IMG_ID_DISPCHAR_OTHER_START,n"
- "#ifndef __MMI_UI_TECHNO_IDLESCREEN_BAR__n"
- "#ifdef __MMI_ANALOG_CLOCK__n"
- " IMG_ID_DISPCHAR_ANALOG_CLK = IMG_ID_DISPCHAR_OTHER_START + 1,n"
- "#endif /* __MMI_ANALOG_CLOCK__ */n"
- "#ifdef __MMI_DIGITAL_CLOCK__n"