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

📄 populateres.c

📁 MTK平台QQ移植
💻 C
📖 第 1 页 / 共 5 页
字号:
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *============================================================================
 ****************************************************************************/

#define _POPULATE_RES_C

 /****************************************************************************
* Include Files                                                                
*****************************************************************************/
#include "MMI_features.h"
#include "GlobalMenuItems.h"
#include "custdatares.h"
#include "CustDataProts.h"
#include "custmenures.h"
#include "FontDCL.h"
#include "CallsDefs.h"
#include "Globaldefs.h"
#include "wgui_categories_res.h"

#ifdef __FOTA_ENABLE__
#include "lcd_sw_rnd.h"
#endif

#ifdef DEVELOPER_BUILD_FIRST_PASS
/***************************************************************************** 
*
* FIRST_PASS is for Resgen on PC
*
*****************************************************************************/
#include "CustResDef.h"
#include "SettingDefs.h"

extern void Trace(char *fmt, ...);
#define PRINT_INFORMATION(args) Trace args

/***************************************************************************** 
* Define
*****************************************************************************/
#define  OUTPUT_IMAGE_ID_FILENAME      CUST_IMG_PATH"\\\\images_file_list.ini"
/* 101205 audio resource Calvin Satrt */
#define  OUTPUT_AUDIO_ID_FILENAME      CUST_ADO_PATH"\\\\audio_file_list.ini"
/* 101205 audio resource Calvin End */
#define  OUTPUT_MENUTREE_ID_FILENAME   "..\\..\\Customer\\CustResource\\CustMenuTreeID_Out.c"

/***************************************************************************** 
* Local Variable
*****************************************************************************/
/* for generate String list file in first pass */
FILE *StringListFile = NULL;
FILE *EnumListFile = NULL;
FILE *OutputImgIDFile = NULL;

/* 101205 audio resource Calvin Satrt */
FILE *OutputAdoIDFile = NULL;

/* 101205 audio resource Calvin End */
FILE *OutputMenutreeIDFile = NULL;
FILE *RepeatIDListFile = NULL;  /* 102604 Calvin added */
U16 gCurrLangIndex;

#if defined(_POPULATE_RES_C) && !defined(PRODUCTION_RELEASE)
FILE *fpMenuResourceUsage = NULL;
FILE *fpImageResourceUsage = NULL;
FILE *fpAudioResourceUsage = NULL;
FILE *fpStringResourceUsage = NULL;

#define MYFOPEN(fp, filename, type) \
do                                  \
{                                   \
    fp = fopen(filename, type);     \
    if (fp == NULL)                 \
    {                               \
        fprintf(stderr, "%s cannot open\n", filename);  \
    }                               \
} while (0)

#define MYFCLOSE(fp, filename)  \
    do                          \
    {                           \
        if (fp != NULL)         \
        {                       \
            fprintf(stderr, "output %s done.\n", filename); \
            fclose(fp);         \
        }                       \
    } while (0)

#define PRTRESTITLE(fp)     \
    do                      \
    {                       \
        if (fp != NULL)     \
        {                   \
            fprintf(fp, "APP_name\tRes_base\tID\tID_name\tsize\tdata\tres_filename\n"); \
        }                   \
    } while (0)
#endif /* #if defined(_POPULATE_RES_C) && !defined(PRODUCTION_RELEASE) */

U16 CurrMaxStringNum;
U32 CurrTotalStrLen;
U16 CurrMaxStringId;
U16 CurrMaxStringIdSearch;

/***************************************************************************** 
* Local Function
*****************************************************************************/
void PopulateGlobalData(void);
#ifdef __FOTA_ENABLE__
static void PopulateFOTAData(void);
#endif /* __FOTA_ENABLE__ */

/****************************************************************************
* Global Variable - Extern                                                                 
*****************************************************************************/
extern U16 CurrMaxImageId;
extern U16 CurrMaxImageNum;
extern U16 CurrMaxImageIdEXT;   /* 040805 CustPack: Calvin added */
extern U16 CurrMaxImageNumEXT;  /* 040805 CustPack: Calvin added */

/* 101205 audio resource Calvin Satrt */
extern U16 CurrMaxAudioId;
extern U16 CurrMaxAudioNum;
extern U16 CurrMaxAudioIdEXT;
extern U16 CurrMaxAudioNumEXT;

/* 101205 audio resource Calvin End */

extern U16 CurrMaxMenuItemIndex;    /* Max menu IDs */
extern U16 CurrMaxStringId;
#ifndef __POPULATE_ENGINE_
extern HWND hWnd;
#endif

/* 101806 E-NFB start */
#ifdef __MMI_RESOURCE_ENFB_SUPPORT__
extern U16 CurrMaxENFBAssociatedIDNum;
#endif
/* 101806 E-NFB end */

extern CUSTOM_IMAGE_MAP ImageIdMap[];
extern CUSTOM_IMAGE_MAP ImageIdMapEXT[];
extern CUSTOM_AUDIO_MAP AudioIdMap[];
extern CUSTOM_AUDIO_MAP AudioIdMapEXT[];
extern CUSTOM_MENU nCustMenus[];

const CUSTOM_STRING *gpStringRes;
const CUSTOM_STRING_MAP *gpStringMapRes;
const CUSTOM_STRMAP_SEARCH *gpStrMapSearch;
extern StringResList *gStringList;

/* __CUSTPACK_MULTIBIN Calvin BEGIN */
extern int toolFlag;    /* 040805 CustPack: Calvin added */

/* __CUSTPACK_MULTIBIN Calvin END */

#ifdef __MMI_RESOURCE_ENFB_SUPPORT__
extern FILE *enfb_img_data_file;//100206 ENFB support
#endif

/****************************************************************************
* Global Function - Extern                                                                 
*****************************************************************************/

/* Populate without compile option */
extern void PopulateNFBProgressImg(void);
extern void PopulateMainMenuRes(void);
extern void PopulateIdleMenuRes(void);
extern void PopulatePbResData(void);
extern void PopulateMainDemoRes(void);
extern void PopulateCmResData(void);
extern void PopulateQuickAccessData(void);
extern void populateSettingMenu(void);
extern void populateFunAndGamesMenu(void);
extern void PopulateJavaRes(void);
extern void PopulateResData(void);
extern void PopulateSimDetectionMenuRes(void);
extern void PopulateprofileMenu(void);
extern void PopulateSSCRes(void);
extern void PopulateCallHistoryRes(void);
extern void PopulateHelpResources(void);
extern void PopulateDataAccountMenuList(void);
extern void PopulateChgrPwrOnScrRes(void);
extern void PopulateOrganizerRes(void);
extern void PopulateExtraRes(void);
extern void PopulateAlarmRes(void);
extern void PopulateSATRes(void);
extern void PopulateSpofRes(void);
extern void PopulateResourcesCal(void);
extern void PopulateToDoList(void);
extern void PopulateScreenSaverRes(void);
extern void PopulateCommonScreensResData(void);
extern void PopulateEMSObjectResources(void);
extern void PopulatevObjectRes(void);
extern void PopulateVRSDRes(void);
extern void PopulateWapRes(void);
extern void PopulateMmiapiRes(void);

#if defined(JATAAYU_SUPPORT)
extern void PopulateJaatayuBrowserRes(void);
extern void PopulateJataayuJDDRes(void);
#endif /* defined(JATAAYU_SUPPORT) */ 
#ifdef __MMI_BROWSER_2__
extern void PopulateBrowserRes(void);
#endif /* __MMI_BROWSER_2__ */

/* Populate with compile option */
#if defined(__MMI_NITZ__)
extern void PopulateResourceNITZ(void);
#endif 

#if defined(__MMI_MESSAGES_CHAT__)
extern void PopulateChatAppRes(void);
#endif 

#if defined(__MMI_ENGINEER_MODE__)
extern void populateEngineerModeMenu(void);
#endif 

#if defined(__MMI_FACTORY_MODE__)
extern void populateFactoryModeMenu(void);
#endif 

#if defined(__MMI_RING_COMPOSER__) && defined(__MMI_IMELODY_SUPPORT__)
extern void PopulateComposeRingTone(void);
#endif 

#if defined(__MMI_AUDIO_PLAYER__)
extern void populateAudioPlayerMenu(void);
#endif 

#if defined(__MMI_AB_REPEATER__)
extern void populateABRepeaterMenu(void);
#endif 

#if defined(__MMI_FILE_MANAGER__)
extern void populateFileManagerMenu(void);
#endif 

#if defined(__MMI_MY_FAVORITE__)
extern void PopulateMyFavoriteRes(void);
#endif 

#if defined(__MMI_SOUND_RECORDER__)
extern void populateSoundRecorderMenu(void);
#endif 

#if defined(__MMI_CAMERA__)
extern void PopulateCameraRes(void);
#endif 

#if defined(__MMI_BARCODEREADER__)
extern void PopulateBarcodeReaderRes(void);
#endif 

#if defined(__MMI_AVATAR__)
extern void PopulateAvatarRes(void);
#endif

#if defined(__MMI_MOBILE_TV_PLAYER__)
extern void PopulateMobileTVPlayerRes(void);
#endif

#if defined(__MMI_IMAGE_VIEWER__)
extern void PopulateImageViewerRes(void);
#endif 

#if defined(__MMI_VIDEO_PLAYER__)
extern void PopulateVdoPlyRes(void);
#endif 

#if defined(__MMI_VIDEO_RECORDER__)
extern void PopulateVdoRecRes(void);
#endif 

#if defined(__MMI_VIDEO_EDITOR__)
extern void PopulateVdoEdtRes(void);
#endif

#if defined(__MMI_FM_RADIO__)
extern void PopulateFMRadioRes(void);
#endif 

#if defined(__MMI_FM_RADIO_SCHEDULE_REC__)
extern void PopulateFMScheduleRecRes(void);
#endif 

#if defined(__MOD_SMSAL__)
extern void PopulateMessagesResData(void);
#endif 

#if defined(__MMI_UNIFIED_MESSAGE__)
extern void PopulateUnifiedMessageResData(void);
#endif 

#if defined(__MMI_UNIFIED_COMPOSER__)
extern void PopulateUnifiedComposerResData(void);
#endif

#if defined(__MMI_STOPWATCH__)
extern void PopulateStopwatchRes(void);
#endif 

#if defined(__MMI_PHOTOEDITOR__)
extern void PopulatePhotoEditorRes(void);
#endif 

#if defined(__MMI_SLIDESHOW__)
extern void PopulateSlideShowRes(void);
#endif


#if defined(__MMI_BG_SOUND_EFFECT__)
extern void PopulateBGSoundRes(void);
#endif 

#if (defined(__MMI_OP01_MENU_9MATRIX__) && (defined(__IRDA_SUPPORT__) || defined(__MMI_BT_SUPPORT__)))
/* under construction !*/
#endif

#if defined(__MMI_EXT_DEVICE__)

#ifdef __MMI_USB_SUPPORT__
extern void PopulateExtDevUSBRes(void);
#endif 

#ifdef __MMI_IRDA_SUPPORT__
extern void PopulateExtDevIrDARes(void);
#endif 


#ifdef __MMI_BT_SUPPORT__
extern void PopulateExtDevBTRes(void);
#endif 

#ifdef __MMI_RMGR__
extern void PopulateRightsMgrRes(void);
#endif

#ifdef __DRM_SUPPORT__
extern void PopulateDRMRes(void);
#endif

/* micha_PoC */
#ifdef __MMI_POC__
extern void PoCResourceData(void);
#endif 

#ifdef __MMI_VOIP__
extern void VoIPResourceData(void);
#endif /* __MMI_VOIP__ */

#ifdef __MMI_UCM__
extern void UCMResourceData(void);
#endif /* __MMI_UCM__ */

#ifdef __SYNCML_SUPPORT__
extern void SyncMLResourceData(void);
#endif 

#endif /* defined(__MMI_EXT_DEVICE__) */ 
#if defined(__MMI_DOWNLOAD_AGENT__)
extern void PopulateDownloadAgentRes(void);
#endif 
#ifdef __XHC_APPLICATION__ //xhc start
extern void PopulateResourcesXHC(void);
#endif //__XHC_APPLICATION__ //xhc end

#if defined(__FOTA_ENABLE__)
extern void PopulateDMMenuList(void);

⌨️ 快捷键说明

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