📄 mmiicons.c
字号:
/*******************************************************************************
CONDAT (UK)
********************************************************************************
This software product is the property of Condat (UK) Ltd and may not be
disclosed to any third party without the express permission of the owner.
********************************************************************************
$Project name: Basic MMI
$Project code: BMI (6349)
$Module: Icons
$File: MmiIcons.h
$Revision: 1.0
$Author: Condat(UK)
$Date: 25/10/00
********************************************************************************
Description:
This provides the implementation of the icon handling in the basic MMI
********************************************************************************
$History: MmiIcons.h
25/10/00 Original Condat(UK) BMI version.
$End
*******************************************************************************/
/*******************************************************************************
Include Files
*******************************************************************************/
#define ENTITY_MFW
/* includes */
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#if defined (NEW_FRAME)
#include "typedefs.h"
#include "vsi.h"
#include "pei.h"
#include "custom.h"
#include "gsm.h"
#else
#include "stddefs.h"
#include "custom.h"
#include "gsm.h"
#include "vsi.h"
#endif
#include "mfw_sys.h"
#include "mfw_mfw.h"
#include "mfw_win.h"
#include "mfw_kbd.h"
#include "mfw_lng.h"
/* SPR#1428 - SH - New Editor changes */
#ifndef NEW_EDITOR
#include "mfw_edt.h"
#endif
#include "mfw_icn.h"
#include "mfw_mnu.h"
#include "mfw_tim.h"
#include "mfw_sim.h"
#include "mfw_cm.h"
#include "mfw_nm.h"
#include "mfw_phb.h"
#include "mfw_mme.h"
#include "mfw_sat.h"
#include "mfw_sms.h"
#include "dspl.h"
#include "ksd.h"
#include "psa.h"
#include "MmiMain.h"
#include "MmiBookController.h"
#include "MmiDummy.h"
#include "MmiDialogs.h"
#include "MmiLists.h"
#include "MmiMenu.h"
#include "MmiCall.h"
#include "MmiIcons.h"
#include "MmiIdle.h"
#include "MmiSoftKeys.h"
#include "MmiSounds.h"
#include "MmiIdle.h"
#include "MmiNetwork.h"
#include "MmiSat_i.h"
#include "MmiAoc.h"
#include "gdi.h"
#include "audio.h"
#include "cus_aci.h"
#include "p_sim.h"
#include "mfw_ffs.h"
#include "MmiTimers.h"
/* sbh...21/01/02 */
#ifdef MMI_GPRS_ENABLED
#include "MmiGprs.h"
#endif
#include "mmiresources.h"
#include "mmicolours.h"
#include "Icons\IcnDefs.h"
/*******************************************************************************
Local definitions
*******************************************************************************/
#define CLEAR_BOTTOM_ZONE_ICON dspl_Clear(42,54,52,60)
/*******************************************************************************
Local function prototypes
*******************************************************************************/
static void iconsEvent( MfwEvt e, MfwIcn *i );
static void iconsBattEvent( MfwEvt e, MfwIcn *i );
static void iconsSignEvent( MfwEvt e, MfwIcn *i );
static void iconsScreenDelete( void );
#define CLEAR_ICON_AREA dspl_Clear(0,7,LCD_X,52);
#if ! defined(WIN32)
extern void scrOnOff (int on); /* ES!! add. functions */
#endif
/*******************************************************************************
Icon Bitmaps
*******************************************************************************/
/* battery 0-4%
*/
static const unsigned char idlBattery4[] =
{
0xff,0x81,0x81,0x81,0xff
};
/* battery 5-14%
*/
static const unsigned char idlBattery14[] =
{
0xff,0xc1,0xc1,0xc1,0xff
};
/* battery 15-24%
*/
static const unsigned char idlBattery24[] =
{
0xff,0xe1,0xe1,0xe1,0xff
};
/* battery 25-49%
*/
static const unsigned char idlBattery49[] =
{
0xff,0xf9,0xf9,0xf9,0xff
};
/* battery 50-100%
*/
static const unsigned char idlBattery100[] =
{
0xff,0xff,0xff,0xff,0xff
};
/* SMS
*/
static const unsigned char idlSMS[] =
{
0xff,0xc3,0xa5,0x99,0xff
};
/* Voice
*/
static const unsigned char idlVoice[] =
{
0x00,0x00,0x3F,0xC0,0x50,0xE0,0x89,0xF0,0x50,0xE0,0x00,0x00
};
/* Call forwarding uncond
*/
static const unsigned char idlCallforw[] =
{
0xC4,0xC6,0xFF,0x7E,0x04
};
/* Silent ringer
*/
static const unsigned char idlSilRinger[] =
{
0xa4,0xa4,0xbf,0xae,0x44
};
/* Keypad locked
*/
static const unsigned char idlKeypLock[] =
{
0x41,0xa1,0xbe,0xa0,0x40
};
/* Ciphering
*/
static const unsigned char idlCipheringActiv[] =
{
0x18,0x24,0x3c,0x24,0x3c
};
static const unsigned char idlCipheringDeActiv[] =
{
0x28,0x44,0x6c,0x6c,0x6c
};
/* Signal strength 0-49
*/
static const unsigned char idlSigStr49[] =
{
0x00,0x00,0x00,0x00,0x00
};
/* Signal strength 50-99
*/
static const unsigned char idlSigStr99[] =
{
0x00,0x00,0x00,0x80,0x80
};
/* Signal strength 100-149
*/
static const unsigned char idlSigStr149[] =
{
0x00,0x00,0x20,0xa0,0xa0
};
/* Signal strength 150-199
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -