wgui.h
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:33k
- /*****************************************************************************
- * 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:
- * ---------
- * wgui.h
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * Common definitions for GUI.
- *
- * Author:
- * -------
- * Leo Hu (MTK00563)
- *
- *==============================================================================
- * 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!
- * 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!!
- *==============================================================================
- *******************************************************************************/
- /**
- * Copyright Notice
- * (c) 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: wgui.h
- Author: manju
- Date Created: August-07-2002
- Contains: PixTel UI wrapper routines header
- Contains several parts and has been split to multiple
- code files. See other files named wgui_*.c and wgui_*.h
- This file contains common functions and data (prototypes only).
- **********************************************************************************/
- #ifndef __WGUI_H__
- #define __WGUI_H__
- #include "MMI_features.h"
- #include "EventsGprot.h"
- #include "globalconstants.h"
- #include "DateTimeType.h"
- #include "gui.h"
- #include "gui_buttons.h"
- #include "gui_scrollbars.h"
- #include "gui_inputs.h"
- #include "gui_generic_menuitems.h"
- #include "gui_fixed_menuitems.h"
- #include "gui_generic_menus.h"
- #include "gui_fixed_menus.h"
- #include "gui_windows.h"
- #include "gui_dynamic_menus.h"
- #include "wgui_draw_manager.h"
- /*
- ** Typedef
- */
- typedef S32 MMI_key_code_type;
- typedef S32 MMI_key_event_type;
- typedef U16 UI_string_ID_type;
- typedef U16 UI_image_ID_type;
- typedef U16 UI_audio_ID_type;//101205 audio resource Calvin add
- typedef MYTIME UI_time;
- /*
- ** Define
- */
- #define KEYBOARD_KEY_DOWN 256
- #define KEYBOARD_KEY_UP 257
- #define STRING_ID_NULL 0
- #define IMAGE_ID_NULL 0
- #define MMI_BG_GREYSCALE_VALUE (40)//102605 greyscale Calvin modified
- #define MMI_BG_GREYSCALE_BLACK_VALUE (40)
- #define MMI_EDITOR_BG_OPACITY (current_MMI_theme->bg_opacity_low)
- /* Settings */
- /* Timeouts: All in milliseconds */
- #define MMI_MENU_SHORTCUT_TIMEOUT (600)
- #define MMI_MULTITAP_TIMEOUT (600)
- /* Dimensions and co-ordinates */
- /* All values in pixels */
- #define MMI_SUBLCD_TITLE_HEIGHT 15
- /* UI_STYLE_1 for 128x128 screen */
- #ifdef __MMI_MAINLCD_128X128__
- //START VIJAY PMT 20050930
- #if defined( __MMI_UI_SMALL_SCREEN_SUPPORT__)
- #define MMI_SMALL_SCREEN_X_OFFSET (9)
- #define MMI_SMALL_SCREEN_Y_OFFSET (9)
- #define MMI_SMALL_LIST_LEFT_OFFSET 2
- #define MMI_SMALL_LIST_SCREEN_WIDTH ((MAIN_LCD_DEVICE_WIDTH*3)/4)
- #endif /* UI_SMALL_CATEGORY_EDITOR*/
- //END VIJAY PMT 20050930
- #ifdef __MMI_UI_DALMATIAN_STATUSBAR__
- #define MMI_STATUS_BAR_WIDTH (76)
- #define MMI_STATUS_BAR_HEIGHT (20)
- #define MMI_SINGLE_STATUS_BAR_HEIGHT (16)
- #else
- #define MMI_STATUS_BAR_HEIGHT (16)
- #endif
- #define MMI_TITLE_PADDING (0)
- #define MMI_TITLE_X (0)
- #define MMI_TITLE_Y (0)
- #define MMI_TITLE_WIDTH (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_TITLE_HEIGHT (18)
- #define MMI_CONTENT_X (0)
- #define MMI_CONTENT_Y (MMI_TITLE_HEIGHT)
- #define MMI_CONTENT_WIDTH (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_CONTENT_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_TITLE_HEIGHT)
- #ifdef __MMI_UI_DALMATIAN_SOFTKEYS__
- #define MMI_BUTTON_BAR_HEIGHT (20)
- #define MMI_SOFTKEY_WIDTH (74)
- #define MMI_SOFTKEY_HEIGHT (16)
- #define BAR_CONTENT_GAP (2)
- #else
- #define MMI_BUTTON_BAR_HEIGHT (18)
- #define MMI_SOFTKEY_WIDTH (50)
- #define MMI_SOFTKEY_HEIGHT (18)
- #endif
- #define MMI_POP_UP_DIALOG_WIDTH (MAIN_LCD_DEVICE_WIDTH-20)
- #define MMI_POP_UP_DIALOG_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_TITLE_HEIGHT-6)
- #define MMI_POP_UP_DIALOG_X ((MAIN_LCD_DEVICE_WIDTH>>1)-(MMI_POP_UP_DIALOG_WIDTH>>1))
- #define MMI_POP_UP_DIALOG_Y (MMI_TITLE_HEIGHT+3)
- #define MMI_POP_UP_DIALOG_FULL_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-(MMI_BUTTON_BAR_HEIGHT>>1)-MMI_TITLE_HEIGHT)
- #if defined(__MMI_UI_DALMATIAN_STATUSBAR__) || defined(__MMI_UI_DALMATIAN_SOFTKEYS__)
- #define MMI_MENUITEM_HEIGHT (17)
- #define MMI_ICONTEXT_MENUITEM_HEIGHT (17)
- #define MMI_INLINE_EDIT_MENUITEM_HEIGHT (17)
- #else
- #define MMI_MENUITEM_HEIGHT (18)
- #define MMI_ICONTEXT_MENUITEM_HEIGHT (18)
- #define MMI_INLINE_EDIT_MENUITEM_HEIGHT (18)
- #endif
- #define MMI_MULTIROW_MENUITEM_HEIGHT (39)
- //PMT VIKAS START 20051217
- #ifdef __MMI_UI_TAB_PANE__
- #define MMI_TAB_HEIGHT (18)
- #endif
- //PMT VIKAS END 20051217
- #if 0
- #ifdef __MMI_EDITABLE_AUDIO_EQUALIZER__
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- #endif
- #endif
- /* UI_STYLE_2 for 128x160 screen */
- #elif defined __MMI_MAINLCD_128X160__
- //START VIJAY PMT 20050930
- #if defined( __MMI_UI_SMALL_SCREEN_SUPPORT__)
- #define MMI_SMALL_SCREEN_X_OFFSET (9)
- #define MMI_SMALL_SCREEN_Y_OFFSET (11)
- #define MMI_SMALL_LIST_LEFT_OFFSET 2
- #define MMI_SMALL_LIST_SCREEN_WIDTH ((MAIN_LCD_DEVICE_WIDTH*3)/4)
- #endif /* UI_SMALL_CATEGORY_EDITOR*/
- //END VIJAY PMT 20050930
- #if defined( __MMI_UI_DALMATIAN_STATUSBAR__)
- #define MMI_STATUS_BAR_WIDTH (76)
- #define MMI_STATUS_BAR_HEIGHT (22)
- #define MMI_SINGLE_STATUS_BAR_HEIGHT (18)
- #define MMI_TITLE_HEIGHT (22)
- #else
- #define MMI_TITLE_HEIGHT (20)
- #define MMI_STATUS_BAR_HEIGHT (18)
- #endif
- #define MMI_TITLE_PADDING (0)
- #define MMI_TITLE_X (0)
- #define MMI_TITLE_Y (0)
- #define MMI_TITLE_WIDTH (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_CONTENT_X (0)
- #define MMI_CONTENT_Y (MMI_TITLE_HEIGHT)
- #define MMI_CONTENT_WIDTH (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_CONTENT_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_TITLE_HEIGHT)
- #ifdef __MMI_UI_DALMATIAN_SOFTKEYS__
- #define MMI_BUTTON_BAR_HEIGHT (22)
- #define MMI_SOFTKEY_WIDTH (74)
- #define MMI_SOFTKEY_HEIGHT (18)
- #define BAR_CONTENT_GAP (2)
- #else
- #define MMI_BUTTON_BAR_HEIGHT (20)
- #define MMI_SOFTKEY_WIDTH (50)
- #define MMI_SOFTKEY_HEIGHT (19)
- #endif
- #define MMI_POP_UP_DIALOG_WIDTH (MAIN_LCD_DEVICE_WIDTH-20)
- #define MMI_POP_UP_DIALOG_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_TITLE_HEIGHT-4)
- #define MMI_POP_UP_DIALOG_X ((MAIN_LCD_DEVICE_WIDTH>>1)-(MMI_POP_UP_DIALOG_WIDTH>>1))
- #define MMI_POP_UP_DIALOG_Y (MMI_TITLE_HEIGHT+2)
- #define MMI_POP_UP_DIALOG_FULL_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-(MMI_BUTTON_BAR_HEIGHT>>1)-MMI_TITLE_HEIGHT+2)
- #define MMI_MENUITEM_HEIGHT (17)
- #define MMI_ICONTEXT_MENUITEM_HEIGHT (17)
- #define MMI_INLINE_EDIT_MENUITEM_HEIGHT (17)
- #define MMI_MULTIROW_MENUITEM_HEIGHT (39)
- //PMT VIKAS START 20051217
- #ifdef __MMI_UI_TAB_PANE__
- #define MMI_TAB_HEIGHT (20)
- #endif
- //PMT VIKAS END 20051217
- #if 0
- #ifdef __MMI_EDITABLE_AUDIO_EQUALIZER__
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- #endif
- #endif
- /* UI_STYLE_3 for 176x220 screen */
- #elif defined __MMI_MAINLCD_176X220__
- //START VIJAY PMT 20050930
- #if defined( __MMI_UI_SMALL_SCREEN_SUPPORT__)
- #define MMI_SMALL_SCREEN_X_OFFSET (12)
- #define MMI_SMALL_SCREEN_Y_OFFSET (15)
- #define MMI_SMALL_LIST_LEFT_OFFSET 2
- #define MMI_SMALL_LIST_SCREEN_WIDTH ((MAIN_LCD_DEVICE_WIDTH*3)/4)
- #endif /* UI_SMALL_CATEGORY_EDITOR*/
- //END VIJAY PMT 20050930
- #if defined(__MMI_UI_TECHNO_IDLESCREEN_BAR__)
- #define MMI_IDLESCREEN_BAR_HEIGHT (60)
- #define MMI_SIGNAL_X (0)
- #define MMI_SIGNAL_Y (0)
- #ifdef __MMI_UI_TECHNO_STATUS_ICON__
- #define MMI_SIGNAL_WIDTH (12)
- #else
- #define MMI_SIGNAL_WIDTH (5)
- #endif
- #define ANALOG_BACKGROUND_X (MMI_SIGNAL_X + MMI_SIGNAL_WIDTH)
- #define ANALOG_BACKGROUND_Y (MMI_STATUS_BAR_HEIGHT)
- #define ANALOG_BACKGROUND_WIDTH (60)
- #endif
- //PMT VIKAS START 20051202
- #if defined( __MMI_UI_DALMATIAN_STATUSBAR__)
- #define MMI_STATUS_BAR_WIDTH (104)
- #define MMI_STATUS_BAR_HEIGHT (23)
- #define MMI_SINGLE_STATUS_BAR_HEIGHT (19)
- #else
- #define MMI_STATUS_BAR_HEIGHT (18)
- #endif
- //PMT VIKAS END 20051202
- #define MMI_TITLE_PADDING (0)
- #define MMI_TITLE_X (0)
- #define MMI_TITLE_Y (MMI_STATUS_BAR_HEIGHT)
- #define MMI_TITLE_WIDTH (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_TITLE_HEIGHT (24)
- #define MMI_CONTENT_X (0)
- #define MMI_CONTENT_Y (MMI_TITLE_Y+MMI_TITLE_HEIGHT)
- #define MMI_CONTENT_WIDTH (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_CONTENT_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_TITLE_HEIGHT-MMI_STATUS_BAR_HEIGHT)
- #if defined(__MMI_UI_TECHNO_SOFTKEYS__)
- #define MMI_SOFTKEY_WIDTH (75)
- #define MMI_BUTTON_BAR_HEIGHT (20)
- #define MMI_SOFTKEY_HEIGHT (20)
- #elif defined( __MMI_UI_DALMATIAN_SOFTKEYS__)
- #define MMI_BUTTON_BAR_HEIGHT (24)
- #define MMI_SOFTKEY_WIDTH (104)
- #define MMI_SOFTKEY_HEIGHT (19)
- #else
- #define MMI_BUTTON_BAR_HEIGHT (20)
- #define MMI_SOFTKEY_WIDTH (70)
- #define MMI_SOFTKEY_HEIGHT (20)
- #endif
- #if defined(__MMI_UI_DALMATIAN_STATUSBAR__) || (defined __MMI_UI_DALMATIAN_SOFTKEYS__)
- #define BAR_CONTENT_GAP (1)
- #endif
- #define MMI_POP_UP_DIALOG_WIDTH (MAIN_LCD_DEVICE_WIDTH-40)
- #define MMI_POP_UP_DIALOG_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_TITLE_HEIGHT-MMI_TITLE_Y-20)
- #define MMI_POP_UP_DIALOG_X ((MAIN_LCD_DEVICE_WIDTH>>1)-(MMI_POP_UP_DIALOG_WIDTH>>1))
- #define MMI_POP_UP_DIALOG_Y (MMI_TITLE_Y+(MMI_TITLE_HEIGHT+10))
- #define MMI_POP_UP_DIALOG_FULL_HEIGHT (MMI_POP_UP_DIALOG_HEIGHT)
- #if defined(__MMI_UI_DALMATIAN_STATUSBAR__) || defined(__MMI_UI_DALMATIAN_SOFTKEYS__)
- #define MMI_MENUITEM_HEIGHT (20)
- #define MMI_ICONTEXT_MENUITEM_HEIGHT (20)
- #define MMI_INLINE_EDIT_MENUITEM_HEIGHT (20)
- #else
- #define MMI_MENUITEM_HEIGHT (22)
- #define MMI_ICONTEXT_MENUITEM_HEIGHT (22)
- #define MMI_INLINE_EDIT_MENUITEM_HEIGHT (22)
- #endif
- #define MMI_MULTIROW_MENUITEM_HEIGHT (39)
- #if 0
- #ifdef __MMI_EDITABLE_AUDIO_EQUALIZER__
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- #endif //__MMI_EDITABLE_AUDIO_EQUALIZER__
- #endif
- #define MMI_ROTATED_LCD_WIDTH (MAIN_LCD_DEVICE_HEIGHT)
- #define MMI_ROTATED_LCD_HEIGHT (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_ROTATED_TITLE_WIDTH (155)
- #define MMI_ROTATED_TITLE_HEIGHT (MMI_TITLE_HEIGHT)
- #define MMI_ROTATED_CONTENT_WIDTH (155)
- #define MMI_ROTATED_CONTENT_HEIGHT (MMI_CONTENT_HEIGHT-MMI_MENUITEM_HEIGHT)
- #define MMI_ROTATED_TITLE_X (10)
- #define MMI_ROTATED_TITLE_Y ((MMI_ROTATED_LCD_HEIGHT - MMI_ROTATED_CONTENT_HEIGHT - MMI_ROTATED_TITLE_HEIGHT)/2)
- #define MMI_ROTATED_CONTENT_X (10)
- #define MMI_ROTATED_CONTENT_Y (MMI_ROTATED_TITLE_Y + MMI_ROTATED_TITLE_HEIGHT)
- #define MMI_ROTATED_POP_UP_DIALOG_X (MMI_ROTATED_CONTENT_X + 7)
- #define MMI_ROTATED_POP_UP_DIALOG_Y (MMI_ROTATED_TITLE_Y + MMI_ROTATED_TITLE_HEIGHT + 7)
- #define MMI_ROTATED_POP_UP_DIALOG_WIDTH (MMI_ROTATED_CONTENT_WIDTH - 15)
- #define MMI_ROTATED_POP_UP_DIALOG_HEIGHT (MMI_ROTATED_LCD_HEIGHT - MMI_ROTATED_POP_UP_DIALOG_Y - 20)
- #define MMI_ROTATED_POP_UP_DIALOG_FULL_HEIGHT (MMI_ROTATED_POP_UP_DIALOG_HEIGHT)
- #define MMI_ROTATED_BUTTON_BAR_X (MMI_ROTATED_CONTENT_X + MMI_ROTATED_CONTENT_WIDTH + 3 /* leave space for border frame */)
- #define MMI_ROTATED_BUTTON_BAR_Y (0)
- #define MMI_ROTATED_BUTTON_BAR_WIDTH (MMI_ROTATED_LCD_WIDTH - MMI_ROTATED_CONTENT_X - MMI_ROTATED_CONTENT_WIDTH - 3)
- #define MMI_ROTATED_BUTTON_BAR_HEIGHT (MMI_ROTATED_LCD_HEIGHT)
- #define MMI_ROTATED_SOFTKEY_WIDTH (MMI_ROTATED_BUTTON_BAR_WIDTH)
- #define MMI_ROTATED_SOFTKEY_HEIGHT (MMI_SOFTKEY_HEIGHT)
- //PMT VIKAS START 20051217
- #ifdef __MMI_UI_TAB_PANE__
- #define MMI_TAB_HEIGHT (22)
- #endif
- //PMT VIKAS END 20051217
- /* UI_STYLE_4 for 240x320 screen */
- #elif defined __MMI_MAINLCD_240X320__
- //START VIJAY PMT 20050930
- #if defined( __MMI_UI_SMALL_SCREEN_SUPPORT__)
- #define MMI_SMALL_SCREEN_X_OFFSET (16)
- #define MMI_SMALL_SCREEN_Y_OFFSET (22)
- #define MMI_SMALL_LIST_LEFT_OFFSET 2
- #define MMI_SMALL_LIST_SCREEN_WIDTH ((MAIN_LCD_DEVICE_WIDTH*3)/4)
- #endif /* UI_SMALL_CATEGORY_EDITOR*/
- //END VIJAY PMT 20050930
- #if defined(__MMI_UI_TECHNO_IDLESCREEN_BAR__)
- #define MMI_IDLESCREEN_BAR_HEIGHT (80)
- #define MMI_SIGNAL_X (0)
- #define MMI_SIGNAL_Y (0)
- #ifdef __MMI_UI_TECHNO_STATUS_ICON__
- #define MMI_SIGNAL_WIDTH (20)
- #else
- #define MMI_SIGNAL_WIDTH (5)
- #endif
- #define ANALOG_BACKGROUND_X (MMI_SIGNAL_X + MMI_SIGNAL_WIDTH)
- #define ANALOG_BACKGROUND_Y (MMI_STATUS_BAR_HEIGHT)
- #define ANALOG_BACKGROUND_WIDTH (80)
- #endif
- #if defined( __MMI_UI_DALMATIAN_STATUSBAR__)
- #define MMI_STATUS_BAR_WIDTH (135)
- #define MMI_STATUS_BAR_HEIGHT (28)
- #define MMI_SINGLE_STATUS_BAR_HEIGHT (24)
- #else
- #define MMI_STATUS_BAR_HEIGHT (18)
- #endif
- #define MMI_TITLE_PADDING (4)
- #define MMI_TITLE_X (0)
- #define MMI_TITLE_Y (MMI_STATUS_BAR_HEIGHT)
- #define MMI_TITLE_WIDTH (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_CONTENT_X (0)
- #define MMI_CONTENT_Y (MMI_TITLE_Y+MMI_TITLE_HEIGHT)
- #define MMI_CONTENT_WIDTH (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_CONTENT_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_TITLE_HEIGHT-MMI_STATUS_BAR_HEIGHT)
-
- #if defined(__MMI_UI_DALMATIAN_STATUSBAR__) || (defined __MMI_UI_DALMATIAN_SOFTKEYS__)
- #define MMI_BUTTON_BAR_HEIGHT (28)
- #define MMI_SOFTKEY_WIDTH (135)
- #define MMI_SOFTKEY_HEIGHT (24)
- #define MMI_TITLE_HEIGHT (40)
- #define BAR_CONTENT_GAP (1)
- #else
- #define MMI_BUTTON_BAR_HEIGHT (24)
- //KP Jerry modify on 2007-3-30 start
- #ifdef __MMI_24X24_CHINESE_FONT__
- #define MMI_SOFTKEY_WIDTH (80)
- #else
- #define MMI_SOFTKEY_WIDTH (70)
- #endif
- //KP Jerry modify on 2007-3-30 end
- #define MMI_SOFTKEY_HEIGHT (24)
- #define MMI_TITLE_HEIGHT (58)
- #endif
- #define MMI_POP_UP_DIALOG_WIDTH (MAIN_LCD_DEVICE_WIDTH-24)
- #define MMI_POP_UP_DIALOG_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_TITLE_HEIGHT-MMI_TITLE_Y-50)
- #define MMI_POP_UP_DIALOG_X ((MAIN_LCD_DEVICE_WIDTH>>1)-(MMI_POP_UP_DIALOG_WIDTH>>1))
- #define MMI_POP_UP_DIALOG_Y (MMI_TITLE_Y+(MMI_TITLE_HEIGHT+20))
- #define MMI_POP_UP_DIALOG_FULL_HEIGHT MMI_POP_UP_DIALOG_HEIGHT
- #if defined(__MMI_UI_DALMATIAN_STATUSBAR__) || (defined __MMI_UI_DALMATIAN_SOFTKEYS__)
- #define MMI_MENUITEM_HEIGHT (29)
- #define MMI_ICONTEXT_MENUITEM_HEIGHT (29)
- #define MMI_INLINE_EDIT_MENUITEM_HEIGHT (29)
- #else
- #define MMI_MENUITEM_HEIGHT (30)
- #define MMI_ICONTEXT_MENUITEM_HEIGHT (30)
- #define MMI_INLINE_EDIT_MENUITEM_HEIGHT (30)
- #endif
- #define MMI_MULTIROW_MENUITEM_HEIGHT (48)
- //PMT VIKAS START 20051217
- #ifdef __MMI_UI_TAB_PANE__
- #define MMI_TAB_HEIGHT (30)
- #endif
- //PMT VIKAS END 20051217
- #if 0
- #ifdef __MMI_EDITABLE_AUDIO_EQUALIZER__
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- #endif //__MMI_EDITABLE_AUDIO_EQUALIZER__
- #endif
-
- #ifdef __MMI_TOUCH_IDLESCREEN_SHORTCUTS__
- #define WGUI_TOUCH_IDLESCREEN_SHORTCUTS_HEIGHT 50//110105 status bar1 Calvin: this should be moved to .h
- #endif
- #define MMI_ROTATED_LCD_WIDTH (MAIN_LCD_DEVICE_HEIGHT)
- #define MMI_ROTATED_LCD_HEIGHT (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_ROTATED_TITLE_WIDTH (230)
- #define MMI_ROTATED_TITLE_HEIGHT (MMI_TITLE_HEIGHT)
- #define MMI_ROTATED_CONTENT_WIDTH (230)
- #define MMI_ROTATED_CONTENT_HEIGHT (MMI_CONTENT_HEIGHT-(MMI_MENUITEM_HEIGHT << 1))
- #define MMI_ROTATED_TITLE_X (15)
- #define MMI_ROTATED_TITLE_Y ((MMI_ROTATED_LCD_HEIGHT - MMI_ROTATED_CONTENT_HEIGHT - MMI_ROTATED_TITLE_HEIGHT)/2)
- #define MMI_ROTATED_CONTENT_X (15)
- #define MMI_ROTATED_CONTENT_Y (MMI_ROTATED_TITLE_Y + MMI_ROTATED_TITLE_HEIGHT)
- #define MMI_ROTATED_POP_UP_DIALOG_X (MMI_ROTATED_CONTENT_X + 10)
- #define MMI_ROTATED_POP_UP_DIALOG_Y (MMI_ROTATED_TITLE_Y + MMI_ROTATED_TITLE_HEIGHT + 10)
- #define MMI_ROTATED_POP_UP_DIALOG_WIDTH (MMI_ROTATED_CONTENT_WIDTH - 15)
- #define MMI_ROTATED_POP_UP_DIALOG_HEIGHT (MMI_ROTATED_LCD_HEIGHT - MMI_ROTATED_POP_UP_DIALOG_Y - 20)
- #define MMI_ROTATED_POP_UP_DIALOG_FULL_HEIGHT (MMI_ROTATED_POP_UP_DIALOG_HEIGHT)
- #define MMI_ROTATED_BUTTON_BAR_X (MMI_ROTATED_CONTENT_X + MMI_ROTATED_CONTENT_WIDTH + 3 /* leave space for border frame */)
- #define MMI_ROTATED_BUTTON_BAR_Y (0)
- #define MMI_ROTATED_BUTTON_BAR_WIDTH (MMI_ROTATED_LCD_WIDTH - MMI_ROTATED_CONTENT_X - MMI_ROTATED_CONTENT_WIDTH - 3)
- #define MMI_ROTATED_BUTTON_BAR_HEIGHT (MMI_ROTATED_LCD_HEIGHT)
- #define MMI_ROTATED_SOFTKEY_WIDTH (MMI_ROTATED_BUTTON_BAR_WIDTH)
- #define MMI_ROTATED_SOFTKEY_HEIGHT (MMI_SOFTKEY_HEIGHT)
- #else
- #error "No UI Style is Specified!!"
- #endif
- #define MMI_MATRIX_BAR_WIDTH (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_MATRIX_BAR_HEIGHT (19)
- #define MMI_MATRIX_BAR_X (0)
- #define MMI_MATRIX_BAR_Y (MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_MATRIX_BAR_HEIGHT+1)
- #define MMI_MULTITAP_X (2)
- #define MMI_MULTITAP_WIDTH (MAIN_LCD_DEVICE_WIDTH-4)
- #if defined(__MMI_MAINLCD_240X320__)
- #define MMI_MULTITAP_HEIGHT (24)
- #else
- #define MMI_MULTITAP_HEIGHT (17)
- #endif
- #ifdef __MMI_UI_DALMATIAN_SOFTKEYS__
- #define MMI_MULTITAP_Y (MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_MULTITAP_HEIGHT -1)
- #else
- #define MMI_MULTITAP_Y (MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_MULTITAP_HEIGHT-2) //Old: (MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_MULTITAP_HEIGHT) //KP Jerry modify on 2007-4-29
- #endif
- #define MMI_SINGLELINE_INPUTBOX_X (5)
- #define MMI_SINGLELINE_INPUTBOX_Y (40)
- #define MMI_SINGLELINE_INPUTBOX_WIDTH (MAIN_LCD_DEVICE_WIDTH-10)
- #if defined(__MMI_MAINLCD_240X320__)
- #define MMI_SINGLELINE_INPUTBOX_HEIGHT (26)
- #else
- #define MMI_SINGLELINE_INPUTBOX_HEIGHT (20)
- #endif
- #define MMI_MULTILINE_INPUTBOX_X (0)
- #define MMI_MULTILINE_INPUTBOX_Y (20)
- #define MMI_MULTILINE_INPUTBOX_WIDTH (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_MULTILINE_INPUTBOX_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-82)
- #define MMI_GENERAL_INPUTBOX_X (0)
- #define MMI_GENERAL_INPUTBOX_Y (20)
- #define MMI_GENERAL_INPUTBOX_WIDTH (MAIN_LCD_DEVICE_WIDTH)
- #define MMI_GENERAL_INPUTBOX_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-82)
- /* Tab bar */
- #if defined(__MMI_MAINLCD_240X320__)
- #define MMI_HORIZONTAL_TAB_BAR_TAB_WIDTH (60)
- #elif defined( __MMI_MAINLCD_176X220__)
- #define MMI_HORIZONTAL_TAB_BAR_TAB_WIDTH (44)
- #else
- #define MMI_HORIZONTAL_TAB_BAR_TAB_WIDTH (42)
- #endif
- #if defined(__MMI_MAINLCD_240X320__)
- #define MMI_HORIZONTAL_TAB_BAR_FOCUSED_TAB_WIDTH (60)
- #else
- #define MMI_HORIZONTAL_TAB_BAR_FOCUSED_TAB_WIDTH (44)
- #endif
- #define MMI_HORIZONTAL_TAB_BAR_X (MMI_TITLE_X)
- #define MMI_HORIZONTAL_TAB_BAR_Y (MMI_TITLE_Y)
- #define MMI_HORIZONTAL_TAB_BAR_WIDTH (MMI_TITLE_WIDTH)
- #if defined(__MMI_MAINLCD_240X320__)
- #define MMI_HORIZONTAL_TAB_BAR_TAB_AREA_HEIGHT (28)
- #else
- #define MMI_HORIZONTAL_TAB_BAR_TAB_AREA_HEIGHT (20)
- #endif
- #if defined(__MMI_MAINLCD_240X320__)
- #define MMI_HORIZONTAL_TAB_BAR_HINT_AREA_HEIGHT (26)
- #elif defined(__MMI_MAINLCD_176X220__) || defined(__MMI_MAINLCD_128X160__)
- #define MMI_HORIZONTAL_TAB_BAR_HINT_AREA_HEIGHT (20)
- #else
- #define MMI_HORIZONTAL_TAB_BAR_HINT_AREA_HEIGHT (0)
- #endif
- #define MMI_CONTENT_WIDTH_WITH_H_TAB (MMI_content_width)
- #define MMI_CONTENT_HEIGHT_WITH_H_TAB (MMI_content_height + MMI_TITLE_HEIGHT - MMI_HORIZONTAL_TAB_BAR_TAB_AREA_HEIGHT - MMI_HORIZONTAL_TAB_BAR_HINT_AREA_HEIGHT)
- #define MMI_CONTENT_X_WITH_H_TAB (MMI_content_x)
- #define MMI_CONTENT_Y_WITH_H_TAB (MMI_content_y + MMI_HORIZONTAL_TAB_BAR_TAB_AREA_HEIGHT + MMI_HORIZONTAL_TAB_BAR_HINT_AREA_HEIGHT - MMI_TITLE_HEIGHT)
- #define MMI_DROPDOWN_MENUITEM_HEIGHT (18)
- #if !defined(__MMI_TOUCH_SCREEN__)
- //W06.03 Adjust the height of the information bar for 240*320
- #if defined(__MMI_MAINLCD_240X320__)
- #define INFORMATION_BAR_HEIGHT (22)
- #else
- #define INFORMATION_BAR_HEIGHT (12)
- #endif
- #else
- #if defined(__MMI_MAINLCD_240X320__)
- #define INFORMATION_BAR_HEIGHT (22)
- #else
- #define INFORMATION_BAR_HEIGHT (18)
- #endif
- #endif
- #define MMI_POP_UP_DIALOG_FULL_Y (((MAIN_LCD_DEVICE_HEIGHT-MMI_POP_UP_DIALOG_FULL_HEIGHT)>>1) + 6)
- #if defined (__MMI_MAINLCD_240X320__)
- //KP Jerry modify on 2006-11-9 start
- #if defined(__P02_QVGA__)
- #define MMI_DIALING_KEYPAD_COLOMNS (3)
- #define MMI_DIALING_KEYPAD_ROWS (4)
- #define MMI_DIALING_KEYPAD_LAYER_WIDTH (240) //Old:(218)
- #define MMI_DIALING_KEYPAD_LAYER_HEIGHT (226) //Old:(177)
- #define MMI_DIALING_KEYPAD_LAYER_X ((MAIN_LCD_DEVICE_WIDTH-MMI_DIALING_KEYPAD_LAYER_WIDTH)>>1)
- #define MMI_DIALING_KEYPAD_LAYER_Y (MAIN_LCD_DEVICE_HEIGHT-MMI_DIALING_KEYPAD_LAYER_HEIGHT-MMI_BUTTON_BAR_HEIGHT) //Old:(((MAIN_LCD_DEVICE_HEIGHT-MMI_DIALING_KEYPAD_LAYER_HEIGHT)>>1)+20) //KP Jerry modify on 2006-11-10
- #define MMI_DIALING_KEYPAD_X (7) //Old:(14)
- #define MMI_DIALING_KEYPAD_Y (2) //Old:(5)
- #define MMI_DIALING_KEYPAD_WIDTH (240) //Old:(218)
- #define MMI_DIALING_KEYPAD_HEIGHT (226) //Old:(177)
- #define MMI_DIALING_KEY_WIDTH (72) //Old:(37)
- #define MMI_DIALING_KEY_HEIGHT (42) //Old:(37)
- #define MMI_DIALING_KEY_HORIZONTAL_GAP (6) //Old:(12)
- #define MMI_DIALING_KEY_VERTICAL_GAP (3) //Old:(5)
- #define MMI_DIALING_BOX_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-MMI_DIALING_KEYPAD_LAYER_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_STATUS_BAR_HEIGHT) //Old:(66) //KP Jerry modify on 2006-11-10
- /* For function key on idlescreen */
- #if defined (__MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__)
- #define MMI_DIALING_KEYPAD_FUNC_COLOMNS (3) //Old:(1)
- #define MMI_DIALING_KEYPAD_FUNC_ROWS (1) //Old:(2)
- #define MMI_DIALING_KEYPAD_FUNC_X (7) //Old:(165)
- #define MMI_DIALING_KEYPAD_FUNC_Y (183) //Old:(33)
- #define MMI_DIALING_FUNC_KEY_WIDTH (72) //Old:(37)
- #define MMI_DIALING_FUNC_KEY_HEIGHT (42) //Old:(37)
- #define MMI_DIALING_FUNC_KEY_HORIZONTAL_GAP (6) //Old:(12)
- #define MMI_DIALING_FUNC_KEY_VERTICAL_GAP (3) //Old:(27)
- #endif
-
- #elif defined(__P08_QVGA__) || defined(__S03_QVGA__)
- #define MMI_DIALING_KEYPAD_COLOMNS (3)
- #define MMI_DIALING_KEYPAD_ROWS (4)
- #define MMI_DIALING_KEYPAD_LAYER_WIDTH (240) //Old:(218)
- #define MMI_DIALING_KEYPAD_LAYER_HEIGHT (199) //Old:(177)
- #define MMI_DIALING_KEYPAD_LAYER_X ((MAIN_LCD_DEVICE_WIDTH-MMI_DIALING_KEYPAD_LAYER_WIDTH)>>1)
- #define MMI_DIALING_KEYPAD_LAYER_Y (MAIN_LCD_DEVICE_HEIGHT-MMI_DIALING_KEYPAD_LAYER_HEIGHT-MMI_BUTTON_BAR_HEIGHT) //Old:(((MAIN_LCD_DEVICE_HEIGHT-MMI_DIALING_KEYPAD_LAYER_HEIGHT)>>1)+20) //KP Jerry modify on 2006-11-10
- #define MMI_DIALING_KEYPAD_X (5) //Old:(14)
- #define MMI_DIALING_KEYPAD_Y (3) //Old:(5)
- #define MMI_DIALING_KEYPAD_WIDTH (240) //Old:(218)
- #define MMI_DIALING_KEYPAD_HEIGHT (199) //Old:(177)
- #define MMI_DIALING_KEY_WIDTH (71) //Old:(37)
- #define MMI_DIALING_KEY_HEIGHT (37) //Old:(37)
- #define MMI_DIALING_KEY_HORIZONTAL_GAP (8) //Old:(12)
- #define MMI_DIALING_KEY_VERTICAL_GAP (2) //Old:(5)
- #define MMI_DIALING_BOX_HEIGHT (MAIN_LCD_DEVICE_HEIGHT-MMI_DIALING_KEYPAD_LAYER_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_STATUS_BAR_HEIGHT) //Old:(66) //KP Jerry modify on 2006-11-10
- /* For function key on idlescreen */
- #if defined (__MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__)
- #define MMI_DIALING_KEYPAD_FUNC_COLOMNS (3) //Old:(1)
- #define MMI_DIALING_KEYPAD_FUNC_ROWS (1) //Old:(2)
- #define MMI_DIALING_KEYPAD_FUNC_X (5) //Old:(165)
- #define MMI_DIALING_KEYPAD_FUNC_Y (159) //Old:(33)
- #define MMI_DIALING_FUNC_KEY_WIDTH (71) //Old:(37)
- #define MMI_DIALING_FUNC_KEY_HEIGHT (37) //Old:(37)
- #define MMI_DIALING_FUNC_KEY_HORIZONTAL_GAP (8) //Old:(12)
- #define MMI_DIALING_FUNC_KEY_VERTICAL_GAP (2) //Old:(27)
- #endif
-
- #endif/*__P02_QVGA__*/
- //KP Jerry modify on 2006-11-9 end
- #else
- #define MMI_DIALING_KEYPAD_COLOMNS (3)
- #define MMI_DIALING_KEYPAD_ROWS (4)
- #define MMI_DIALING_KEYPAD_LAYER_WIDTH (176)
- #define MMI_DIALING_KEYPAD_LAYER_HEIGHT (200)
- #define MMI_DIALING_KEYPAD_LAYER_X (0)
- #define MMI_DIALING_KEYPAD_LAYER_Y (50)
- #define MMI_DIALING_KEYPAD_X (10)//(16) //jerson modify 20070529
- #define MMI_DIALING_KEYPAD_Y (8)//(7)
- #define MMI_DIALING_KEYPAD_WIDTH (154)//(145)
- #define MMI_DIALING_KEYPAD_HEIGHT (137)
- #define MMI_DIALING_KEY_WIDTH (39)
- #define MMI_DIALING_KEY_HEIGHT (31)
- #define MMI_DIALING_KEY_HORIZONTAL_GAP (19)//(14)
- #define MMI_DIALING_KEY_VERTICAL_GAP (5)
- #define MMI_DIALING_BOX_HEIGHT (33)
- /* For function key on idlescreen */
- #if defined (__MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__)
- #define MMI_DIALING_KEYPAD_FUNC_COLOMNS (1)
- #define MMI_DIALING_KEYPAD_FUNC_ROWS (2)
- #define MMI_DIALING_KEYPAD_FUNC_X (165)
- #define MMI_DIALING_KEYPAD_FUNC_Y (33)
- #define MMI_DIALING_FUNC_KEY_WIDTH (37)
- #define MMI_DIALING_FUNC_KEY_HEIGHT (37)
- #define MMI_DIALING_FUNC_KEY_HORIZONTAL_GAP (12)
- #define MMI_DIALING_FUNC_KEY_VERTICAL_GAP (27)
- #endif
- #endif
- /* Upper bound of the number of menu items in one screen */
- #define MMI_MAX_MENUITEMS_IN_CONTENT (MMI_CONTENT_HEIGHT/MMI_MENUITEM_HEIGHT + 2) /* the magic number 2 is for safety. At least 1. */
- #ifdef __MMI_TOUCH_SCREEN__
- #define MMI_PASSWD_KEYBOARD_START_X (0)
- #define MMI_PASSWD_KEYBOARD_START_Y (138)
- #endif
- /* Macros defined for title bar buttons used in Touch Panel support */
- #if defined(__MMI_MAINLCD_240X320__)
- #define MMI_TITLEBAR_BUTTON_GAP (20)
- #define MMI_TITLEBAR_BUTTON_WIDTH (19)
- #define MMI_TITLEBAR_BUTTON_HEIGHT (17)
- #elif defined(__MMI_MAINLCD_176X220__)
- #define MMI_TITLEBAR_BUTTON_GAP (10)
- #define MMI_TITLEBAR_BUTTON_WIDTH (15)
- #define MMI_TITLEBAR_BUTTON_HEIGHT (15)
- #else
- #define MMI_TITLEBAR_BUTTON_GAP (1)
- #define MMI_TITLEBAR_BUTTON_WIDTH (15)
- #define MMI_TITLEBAR_BUTTON_HEIGHT (15)
- #endif
- /*
- ** Extern Global Variable
- */
- extern U8 MMI_disable_title_shortcut_display;
- extern S32 MMI_status_bar_height;
- extern S32 MMI_content_x;
- extern S32 MMI_content_y;
- extern S32 MMI_content_width;
- extern S32 MMI_content_height;
- extern S32 MMI_pop_up_dialog_x;
- extern S32 MMI_pop_up_dialog_y;
- extern S32 MMI_pop_up_dialog_width;
- extern S32 MMI_pop_up_dialog_height;
- extern S32 MMI_pop_up_dialog_full_height;
- /*
- ** Extern Global Function
- */
- extern void wgui_init(void);
- extern void MMI_dummy_function(void);
- extern void register_keyboard_key_handler(void (*f)(S32 vkey_code,S32 key_state));
- extern void register_keyboard_input_handler(void (*f)(S32 vkey_code));
- extern void register_keyboard_global_key_handler(void (*f)(S32 vkey_code,S32 key_state));
- extern void register_keyboard_global_input_handler(void (*f)(S32 vkey_code));
- extern void clear_keyboard_key_handler(void);
- extern void clear_keyboard_input_handler(void);
- extern void clear_keyboard_global_key_handler(void);
- extern void clear_keyboard_global_input_handler(void);
- /* key handling wrappers */
- extern void clear_key_handlers(void);
- extern void clear_category_screen_key_handlers(void);
- extern void register_key_input_handler(void (*f)(MMI_key_code_type key_code,MMI_key_event_type key_event));
- extern void register_key_up_handler(void (*f)(MMI_key_code_type key_code));
- extern void register_key_down_handler(void (*f)(MMI_key_code_type key_code));
- extern void register_MMI_key_input_handler(void);
- extern void register_MMI_stroke_key_input_handler(void);
- #ifdef __MMI_MULTITAP_THAI__
- extern void register_MMI_key_input_extend_handler(void);
- #endif
- extern void clear_key_input_handler(void);
- extern void clear_key_down_handler(void);
- extern void clear_key_up_handler(void);
- extern void clear_MMI_key_input_handler(void);
- extern void MMI_key_input_handler(MMI_key_code_type key_code,MMI_key_event_type key_event);
- #endif