📄 gui_fixed_menuitems.c
字号:
* removed!
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*============================================================================
****************************************************************************/
/**
* Copyright Notice
* ?2002 - 2003, Pixtel Communications, Inc., 1489 43rd Ave. W.,
* Vancouver, B.C. V6M 4K8 Canada. All Rights Reserved.
* (It is illegal to remove this copyright notice from this software or any
* portion of it)
*/
/**********************************************************************************
Filename: gui_fixed_menuitems.c
Author: manju
Date Created: July-22-2002
Contains: PixTel UI routines for Fixed Menuitems
**********************************************************************************/
#include "MMI_features.h"
#include "gui_fixed_menuitems.h"
#include "gui_common_menus.h"
#include "kal_non_specific_general_types.h"
#include "gdi_include.h"
#include "lcd_sw_rnd.h"
#include "wgui.h"
#include "CustMenuRes.h"
/* For R2L characters */
#include "BIDIDEF.h"
#include "BIDIProt.h"
#include "UCS2Prot.h"
#include "wgui_fixed_menuitems.h"
#include "DebugInitDef.h"
//zx add begin 20070507
#ifdef __MMI_DZD__
#include "DzdDefs.h"
#endif
//zx add end
//zx add begin 20070507
#ifdef __MT170_UI_STYLE__
// wangbei add start 20070606
#include "ExtDeviceDefs.h"
#include "CommonScreensenum.h"
#include "SATDefs.h"
#include "FileManagerDef.h"
#include "Fat_fs.h"
#include "FileMgr.h"
#include "FileManagerGProt.h"
#include "FileMgrStruct.h"
#include "EmailAppGProt.h"
#include "NetworkSetupGProt.h"
// wangbei add end
#endif
//zx add end
// wangbei add start 20070703
#ifdef __MT118_A_UI_STYLE__
#include "CommonScreensenum.h"
#endif
// wangbei add end
#ifdef __MMI_UI_LIST_HIGHLIGHT_EFFECTS__
#include "MMI_features.h" /* Add for Effect type entry for Title & highlighter */
#include "wgui_categories_defs.h"
#include "wgui_categories_util.h"
/* For list highlighter effects */
static S32 flash_feel_last_frame = 0;
static S32 gblock_list_effect = 0;
#endif /* __MMI_UI_LIST_HIGHLIGHT_EFFECTS__ */
// wangbei add start 20070625
#ifdef __MT118_A_UI_STYLE__
#include "MainMenuDef.h"
#endif
// wangbei add end
// wangbei add start 20071010
#ifdef __NEW_MATIX_MAINMENU_STYLE__
#include "MainMenuDef.h"
#endif
// wangbei add end
//begin add by luo ren 2007/08/03
#ifdef __MT118_A_MMI__
#include "FileManagerDef.h"
#endif
//end add by luo ren 2007/08/03
//gqy add begin 20070712
#ifdef __MT190_SUBMENU_STYLE__
#include "Wap.h"
#include "PlxDsmRes.h"
#include "CallhistoryEnum.h"
#include "AlarmDef.h" //zx add 20070802
#include "PhoneBookDef.h"
#include "JavaInterface.h"
#include "CallSetUpEnum.h" //zx add 20070802
#endif
//gqy add end 20070712
/* Text scrolling related data */
S32 UI_text_menuitem_scroll_time = UI_TEXT_MENUITEM_SCROLL_TIME;
S32 UI_text_menuitem_scroll_size = UI_TEXT_MENUITEM_SCROLL_SIZE;
S32 UI_text_menuitem_scroll_gap = UI_TEXT_MENUITEM_SCROLL_GAP;
S32 UI_text_menuitem_scroll_pause = UI_TEXT_MENUITEM_SCROLL_PAUSE;
/* Orange color poup dialog */
UI_filled_area colorangewgui_pop_up_dialog_background =
{UI_FILLED_AREA_TYPE_COLOR | UI_FILLED_AREA_VERTICAL_FILL | UI_FILLED_AREA_SINGLE_BORDER,
UI_NULL_IMAGE,
NULL,
{255, 220, 185, 100},
{0, 0, 0, 0},
{255, 163, 70, 100},
{50, 50, 50, 100},
0
};
extern PU8 MMI_mm_animation;
extern BOOL r2lMMIFlag;
// wangbei add start 20070606
#ifdef __MT170_UI_STYLE__
extern fmgr_context_struct *fmgr_p;
#endif
// wangbei add end
#if (defined __MMI_UI_TWO_LINE_MENUITEM_STYLES__ || defined __MMI_UI_HINTS_IN_MENUITEM__)
#define GUI_TWO_LINE_TEXT_ICON_GAP 5
#endif
#ifdef __MMI_UI_DALMATIAN_FIXEDLIST__
BOOL inline_bottom_line_draw;
BOOL line_draw;
#define TEXT_ICON_GAP 5 /* for display gap of text from grid */
extern fixed_list_menu MMI_fixed_list_menu;
extern MMI_theme *current_MMI_theme;
/*****************************************************************************
* FUNCTION
* gui_disable_fixed_list_line_draw
* DESCRIPTION
* function for disable line draw
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void gui_disable_fixed_list_line_draw(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
line_draw = 0;
}
/*****************************************************************************
* FUNCTION
* gui_enable_fixed_list_line_draw
* DESCRIPTION
* function for disable line draw
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void gui_enable_fixed_list_line_draw(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
line_draw = 1;
}
/*****************************************************************************
* FUNCTION
* gui_disable_inline_bottom_line_draw
* DESCRIPTION
* function for disable inline bottom line draw for inline item
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void gui_disable_inline_bottom_line_draw(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
inline_bottom_line_draw = 0;
}
/*****************************************************************************
* FUNCTION
* gui_enable_inline_bottom_line_draw
* DESCRIPTION
* function for inable bottom line draw for inline item
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void gui_enable_inline_bottom_line_draw(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
inline_bottom_line_draw = 1;
}
#endif /* __MMI_UI_DALMATIAN_FIXEDLIST__ */
/* Pop up description related data */
/*****************************************************************************
* FUNCTION
* UI_dummy_display_pop_up_description
* DESCRIPTION
* dummy function of display popup
* PARAMETERS
* x [IN] Start x position
* y [IN] Start y position
* width [IN] Width of popup
* height [IN] Hieght of popup
* RETURNS
* void
*****************************************************************************/
void UI_dummy_display_pop_up_description(S32 x, S32 y, S32 width, S32 height)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
UI_UNUSED_PARAMETER(x);
UI_UNUSED_PARAMETER(y);
UI_UNUSED_PARAMETER(width);
UI_UNUSED_PARAMETER(height);
}
#ifdef __MMI_UI_HINTS_IN_MENUITEM__
/*****************************************************************************
* FUNCTION
* UI_dummy_get_current_pop_up_description_string
* DESCRIPTION
* dummy function to get popup description string
* PARAMETERS
* void
* RETURNS
* string to be displayed
*****************************************************************************/
UI_string_type UI_dummy_get_current_pop_up_description_string(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return NULL;
}
UI_string_type(*gui_get_current_pop_up_description_string) (void) = UI_dummy_get_current_pop_up_description_string;
#endif /* __MMI_UI_HINTS_IN_MENUITEM__ */
void (*gui_display_pop_up_description) (S32 x, S32 y, S32 width, S32 height) = UI_dummy_display_pop_up_description;
#ifdef __MMI_UI_TRANSPARENT_EFFECT__
static BOOL block_transparency = FALSE;
/*****************************************************************************
* FUNCTION
* gui_block_transparency_effect
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void gui_block_transparency_effect(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
block_transparency = TRUE;
}
/*****************************************************************************
* FUNCTION
* gui_unblock_transparency_effect
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void gui_unblock_transparency_effect(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
block_transparency = FALSE;
}
/*****************************************************************************
* FUNCTION
* gui_fixed_icontext_enable_transparent_effect
* DESCRIPTION
* enable the transparent effect flag
* PARAMETERS
* m [?]
* RETURNS
* void
*****************************************************************************/
UI_filled_area non_transparent_focussed_filler;
UI_filled_area *backup_focussed_filler;
S32 transparency_in_list = 0;
void gui_fixed_icontext_enable_transparent_effect(fixed_icontext_menuitem *m)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (block_transparency)
{
return;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -