MMI_features_GUI.h
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:16k
源码类别:
MTK
开发平台:
C/C++
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2005
- *
- * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
- * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
- * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
- * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
- * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
- * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
- * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
- * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
- * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
- * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
- *
- * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
- * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
- * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
- * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
- * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
- *
- * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
- * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
- * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
- * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
- * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
- *
- *****************************************************************************/
- /*******************************************************************************
- * Filename:
- * ---------
- * MMI_features_GUI.h
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * This file is intends for GUI features definition.
- *
- * Author:
- * -------
- * -------
- *
- *==============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * 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!
- *
- * 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!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *==============================================================================
- *******************************************************************************/
- #ifndef __MMI_FEATURES_GUI__
- #define __MMI_FEATURES_GUI__
- #ifndef __MMI_FEATURES__
- #error "Please Do Not include MMI_feautres_GUI.h directly. Include MMI_features.h first."
- #endif
- #include "GUITypeDef.h"
- /*****************************************************************************
- [Framework]: GUI
- *****************************************************************************/
- #ifdef __MMI_UNIFIED_COMPOSER__
- #define __UI_UNIFIED_COMPOSER_EDITOR_CATEGORY__ /* Detail Info: [ Unified Composer Editor Category]*/
- #endif
- //#define __MMI_MATRIX_MAIN_MENU_FULL_BACKGROUND__ /* Detail Info: [Support matrix main menu with full background. Title bar is an option] */
- #ifdef __MMI_MATRIX_MAIN_MENU_FULL_BACKGROUND__
- //#define __MMI_MATRIX_MAIN_MENU_NO_TITLEBAR__ /* Detail Info: [Support matrix main menu without title bar] */
- #endif
- #define __MMI_STATUS_BAR_NO_UNDERLINE__ /* Detail Info: []*/
- #if !defined(__MMI_LITE_DISPLAY__)
- #define __MMI_ANIMATED_WALLPAPERS__ /* Detail Info: []*/
- #endif
- #if defined(WAP_SUPPORT)
- #define __MMI_WCSS_INPUT_FORMAT_SUPPORT__ /* Detail Info: [Editor support for -wap-input-format CSS format]*/
- #endif
- #define __MMI_UI_SMALL_SCREEN_SUPPORT__ /* Detail Info: [For small screen support such as popup screen]*/
- #if defined __MMI_UI_SMALL_SCREEN_SUPPORT__
- #if (defined(__MMI_MAINLCD_176X220__) || defined(__MMI_MAINLCD_240X320__))
- #define UI_SMALL_LIST_SCREEN /* Detail Info: [For Small List Screen]*/
- #define UI_SMALL_PIN_EDITOR_SCREEN /* Detail Info: [For Small PIN editor Screen]*/
- #if defined (__MMI_MESSAGES_EMS__)
- #define UI_SMALL_IMAGE_SELECTOR_SCREEN /* Detail Info: [For Small Image Select Screen]*/
- #endif
- #if !defined(__MMI_TOUCH_SCREEN__)
- #define UI_SMALL_CATEGORY_EDITOR /* Detail Info: [For Small Editor Screen]*/
- #endif
- #endif
- #endif
- #if defined (__MMI_TOUCH_DIAL_SCREEN__) && defined (__MMI_MAINLCD_240X320__)
- #define __MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__ /* Detail Info: [Touch Dialing Screen with function keys] */
- #endif
- /* For transition effects */
- #ifndef __MMI_DRAW_MANAGER__
- //#define __MMI_UI_TITLE_TRANSITION__ /* Detail Info: Title transition */
- //#define __MMI_UI_LIST_TRANSITION__ /* Detail Info: List transition */
- #endif
- #ifdef __MMI_TOUCH_SCREEN__
- #define __MMI_UI_HINT_TOGGLE_TRANSITION__ /* Detail Info: Play transition animation when hint text is changed */
- #else
- #if !defined(__MMI_MAINLCD_128X128__) && !defined(__MMI_MAINLCD_128X160__)
- #define __MMI_UI_HINTS_IN_MENUITEM__ /* Detail Info: Double lines of menuitem */
- #endif
- #endif
- #if !defined(__MMI_LITE_DISPLAY__)
- //#define __MMI_UI_TRANSPARENT_EFFECT__ //KP Jerry disable on 2007-3-2 /* Detail Info: Transparent highlight of list menu*/
- //#define __MMI_UI_LIST_HIGHLIGHT_EFFECTS__ //KP Jerry disable on 2007-3-2 /* Detail Info: [List Effect type, should be one of the following. TRANSPARENCY , FLASH_FEELING , ANIMATION , NONE ] */
- #endif
- #ifdef __MMI_UI_LIST_HIGHLIGHT_EFFECTS__ /* The style can be one of the following: HIGHLIGHT_EFFECT_TRANSPARENCY, HIGHLIGHT_EFFECT_FLASH_FEELING, HIGHLIGHT_EFFECT_ANIMATION, HIGHLIGHT_EFFECT_NONE */
- #define __MMI_UI_LIST_HIGHLIGHT_EFFECT_TYPE__ HIGHLIGHT_EFFECT_FLASH_FEELING
- #endif
- #define __MMI_UI_INLINE_EDIT_DEFAULT_TEXT_EFFECT__ /* Detail Info: [Inline edit default text effect]*/
- #ifdef DEMO_PROJECT
- //#define __MMI_UI_TWO_LINE_MENUITEM_STYLES__ /* Detail Info: [2 line menuitem with Inline Select effect]*/
- #endif
- #ifdef __P02_QVGA__ //KP Jerry add on 2007-3-27
- #define __MMI_COLOR_DIALLING_FONT__ /* Detail Info: []*/
- #endif //KP Jerry add on 2007-3-27
- #if defined (__MMI_MAINLCD_176X220__)
- #if defined(__MMI_LANG_TR_CHINESE__) || defined(__MMI_LANG_SM_CHINESE__) //KP Jerry add on 2007-3-24
- #define __MMI_16X16_CHINESE_FONT__ /* Detail Info: []*/
- #endif //KP Jerry add on 2007-3-24
- #endif
- //KP Jerry add on 2007-3-24 start
- #if defined (__MMI_MAINLCD_240X320__)
- #ifndef __GAME_SIMU__
- #define __MMI_24X24_CHINESE_FONT__ /* Detail Info: []*/
- #else
- #define __MMI_16X16_CHINESE_FONT__ /* Detail Info: []*/
- #endif
- //KP Jerry add on 2007-3-24 end
- #endif/*#if define(__MMI_LANG_TR_CHINESE__) || (__MMI_LANG_SM_CHINESE__)*/ //KP Jerry add on 2007-3-24
- /* Scrollbar style: if no option is defined, default style is automatically set. */
- #define __MMI_UI_SCROLLBAR_DEFAULT_STYLE_3__ /* Detail Info: [scrollbar styles requiring addition images] */
- // #define __MMI_UI_SCROLLBAR_DEFAULT_STYLE_2__ /* Detail Info: [Rounded bar with arrows] */
- // #define __MMI_UI_SCROLLBAR_DEFAULT_STYLE_1__ /* Detail Info: [old style flat scrollbar] */
- /* Popup description(hint) style: if no option is defined, default style is automatically set. */
- // #define __MMI_UI_POPUP_DESCRIPTION_DEFAULT_STYLE_3__ /* Detail Info: [Balloon style] */
- // #define __MMI_UI_POPUP_DESCRIPTION_DEFAULT_STYLE_2__ /* Detail Info: [Round corner with border and shadow] */
- // #define __MMI_UI_POPUP_DESCRIPTION_DEFAULT_STYLE_1__ /* Detail Info: [Old-style flat] */
- #define __MMI_STATUS_ICON_SIGNAL_WITH_LINE_SWITCH__ /* Detail Info: [Enable signal strength status icon combine with line switch]*/
- #if defined (__MMI_DRAW_MANAGER__) && defined (__MMI_MAINLCD_240X320__)
- #define __MMI_UI_CALENDAR_WITH_INFO_BOX__ /* Detail Info: [Enable an infomation box embedded in calendar]*/
- #endif
- #if !defined(__MMI_MAINLCD_128X128__) && !defined(__MMI_MAINLCD_128X160__)
- //#define __MMI_UI_STATUS_BAR_AT_BOTTOM__ //jerson del 20070608 /* Detail Info: [Idlescreen shows status icon on bottom and draw while segment lines]*/
- #define __MMI_UI_FULLSCREEN_GREYSCALE_DISABLE__ //KP Jerry add on 2006-11-13
- #endif
- /* Macros added for Dalmatian UI Style Start */
- #define __MMI_UI_SOFTKEY_STYLE__ SOFTKEY_STYLE_NONE /* The style can be one of the following: SOFTKEY_STYLE_NONE, SOFTKEY_STYLE_DALMATIAN, SOFTKEY_STYLE_TECHNO */
- #define __MMI_UI_STATUSBAR_STYLE__ STATUSBAR_STYLE_NONE /* The style can be one of the following: STATUSBAR_STYLE_NONE, STATUSBAR_STYLE_DALMATIAN, STATUSBAR_STYLE_TECHNO */
- #ifdef __MMI_MAINLCD_176X220__
- //#define __MMI_UI_DALMATIAN_FIXEDLIST__ /* Detail Info: [drawing lines and grids for list and menuitems] */
- #ifdef __MMI_UI_DALMATIAN_FIXEDLIST__
- #define __MMI_UI_MM_LIST_NO_GRID__ /* Detail Info: [Don't draw grid on List main menu]*/
- #endif
- #define __MMI_UI_DALMATIAN_EDITOR__ /* Detail Info: [showing a background image if there is no input] */
- #endif
- #if (defined(__MMI_MAINLCD_176X220__) || defined(__MMI_MAINLCD_128X160__))
- //#define __MMI_UI_DALMATIAN_CALENDAR__
- #ifdef __MMI_UI_DALMATIAN_CALENDAR__
- #define __MMI_UI_TRANSPARENT_EFFECT_IN_DALMATIAN_CALENDAR__
- #endif
- #endif
- /* Macros added for Dalmatian UI Style End */
- /* Macros added for Techno UI Style Start */
- #ifdef __MMI_MAINLCD_240X320__
- #define __MMI_UI_TECHNO_IDLESCREEN_BAR__ /* Detail Info: [Techno styled idle screen bar containing clock]*/
- //#define __MMI_UI_TECHNO_IDLESCREEN_BAR_HALF_TRANSPARENT_DISPLAY__ //KP Jerry add on 2007-1-5
- #if defined (__MMI_TOUCH_SCREEN__)
- //KP Jerry modify on 2006-11-2 start
- //#define __MMI_TOUCH_IDLESCREEN_SHORTCUTS__ //KP Jerry disable on 2006-11-1 /* Detail Info: [Display Idle Screen shortcuts]*/
- #define __MMI_TOUCH_IDLESCREEN_HW_SHORTCUTS__
- #ifdef __MMI_TOUCH_IDLESCREEN_HW_SHORTCUTS__
- #define TOUCHPANEL_HW_SHORTCUT_AREA_HEIGHT 20
- #endif
- //KP Jerry modify on 2006-11-2 end
- #endif
- #endif
- #ifndef __MMI_UI_TECHNO_STATUS_ICON__
- //#define __MMI_UI_ANIMATED_TITLE_EFFECT__ /* Detail Info: [Title Effect type, should be one of the following. ONCE , CONTINOUS ] */
- #endif
- #ifdef __MMI_UI_ANIMATED_TITLE_EFFECT__ /* The style can be one of the following: ONCE, CONTINOUS */
- #define __MMI_TITLE_EFFECT_TYPE__ ONCE
- #endif
- /* Macros added for Techno UI Style End */
- /* Mainmenu-related definition start */
- /* Detail Info: [MainMenu type, should be one of the following. LIST , MATRIX , CIRCULAR_3D , PAGE , FIXED_GRID , ANI_BG_LIST] */
- #define __MMI_VERSION_2__ /* Detail Info: [Turn on 12-grid main menu]*/
- #if defined (__MMI_TOUCH_SCREEN__)
- #if defined(__P02_QVGA__) ||defined(__P08_QVGA__) ||defined(__S03_QVGA__) //KP Jerry add on 2007-1-18
- //#define __MMI_BI_DEGREE_MAIN_MENU_STYLE__ //jerson del 20070613 /* Detail Info: [For Two Level main menu ] */
- //KP Jerry add on for realign main-menu icons 2006-11-22 start
- #ifdef __MMI_MAINLCD_240X320__
- #define __MMI_BI_DEGREE_MAIN_MENU_CUSTOMIZED_COORDINATES__
- #endif
- //KP Jerry add on for realign main-menu icons 2006-11-22 end
- #endif //KP Jerry add on 2007-1-18
- #endif
- //#if !defined( __MMI_BI_DEGREE_MAIN_MENU_STYLE__) && !defined(__MMI_MAINLCD_240X320__)
- #if !defined( __MMI_BI_DEGREE_MAIN_MENU_STYLE__)//082806 240x320 matrix
- #define __MMI_MATRIX_MAIN_MENU_OPTIMIZE__ /* Detail Info: [For Speed Up matrix mainmenu display] */
- //#define __MMI_MAINMENU_STYLE_CHANGE_EN__ //KP Jerry disable on 2007-1-19 /* Detail Info: [Enable changeable main menu style feature]*/
- #define __MMI_MAINMENU_TYPE__ MATRIX /* Detail Info: [MainMenu type, should be one of the following. MATRIX , PAGE , LIST , CIRCULAR_3D , ROTATE , TAB , FIXED_GRID , ANI_BG_LIST] */
- /* Detail Info: [The default main menu type you chosed should be one of the following supported types] */
- #define __MMI_KP_STYLE_MAIN_MENU_MATRIX__
- #if (defined(__MMI_MAINLCD_176X220__) || defined(__MMI_MAINLCD_128X160__)) && !defined(__MMI_DRAW_MANAGER__)
- //#define __MMI_UI_DALMATIAN_MAINMENU__ /* Detail Info: [Dalmatian styled page mainmenu]*/
- //#define __MMI_UI_TECHNO_MAINMENU__ /* Detail Info: [Techno styled page mainmenu]*/
- #endif
- #ifdef __MMI_MAINMENU_STYLE_CHANGE_EN__ /* Detail Info: [Turn off the circular main menu style in changeable main menu style]*/
- #define __MMI_MAINMENU_MATRIX_SUPPORT__
- //#define __MMI_MAINMENU_PAGE_SUPPORT__
- //#define __MMI_MAINMENU_LIST_SUPPORT__
- #ifndef __MMI_MAINLCD_128X128__
- //#define __MMI_MAINMENU_CIRCULAR_SUPPORT__
- #endif
- //#define __MMI_MAINMENU_ROTATE_SUPPORT__
- #if !defined (__MMI_TOUCH_SCREEN__) && !defined (__MMI_DRAW_MANAGER__)
- //#define __MMI_MAINMENU_TAB_SUPPORT__ /* Detail Info: Tab based mainmenu support*/
- #ifdef __MMI_MAINMENU_TAB_SUPPORT__
- #define __MMI_UI_TITLE_TRANSITION__
- #endif
- #endif
- #else
- #if defined(__MMI_UI_TECHNO_MAINMENU__) || defined(__MMI_UI_DALMATIAN_MAINMENU__)
- #undef __MMI_MAINMENU_TYPE__
- #define __MMI_MAINMENU_TYPE__ PAGE
- #endif
- #endif /* __MMI_MAINMENU_STYLE_CHANGE_EN__ */
- #else
- #define __MMI_MAINMENU_TYPE__ LIST /* Detail Info: [MainMenu type, should be one of the following. LIST , MATRIX , CIRCULAR_3D , PAGE , FIXED_GRID , ANI_BG_LIST] */
- #endif
- #ifndef __MMI_UI_DALMATIAN_MAINMENU__
- #define __MMI_UI_MM_HORIZONTAL_PAGE_STYLE__ /* Detail Info: Horizontally navigate PAGE main menu */
- #endif
- /* Mainmenu definition end */
- #if (!defined(MT6205B) && !defined(MT6208))
- #define __MMI_UI_LIST_CACHE_BACKGROUND__ /* Defail Info: [cache list menu background in anther GDI layer. */
- #endif
- #ifdef __MMI_EBOOK_READER__
- #define __UI_PAGING_IN_MULTILINE_EDITOR__ /* Defail Info: [Supports paging in multiline editor in view mode] */
- #endif
- //jerson add begin 20070528
- #ifdef __MMI_MAINLCD_176X220__
- #define __MMI_SUB_MENU_BUTTON_BG__
- //#define __MMI_SUB_MENU_TITLE_BG__
- #endif
- //jerson add end 20070528
- //#define __MMI_UI_INTEGRATED_CALENDAR_SUPPORT__ //072406 new calendar
- #endif //__MMI_FEATURES_GUI__