wgui_calendar.h
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:22k
源码类别:
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:
- * ---------
- * wgui_calendar.h
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * Calendar related categories.
- *
- * 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!
- *
- *------------------------------------------------------------------------------
- * 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: wgui_calendar.h
- Author: manju
- Date Created: July-07-2003
- Contains: Contains the calendar control wrappers and category screens
- **********************************************************************************/
- #ifndef __WGUI_CALENDAR_H__
- #define __WGUI_CALENDAR_H__
- #include "wgui.h"
- #include "gui_calendar.h"
- #ifdef __cplusplus
- extern "C"
- {
- #endif /* __cplusplus */
- #if(ENABLE_CALENDAR_CONTROL)
- /* Wrappers to be used by applications and category screens */
- extern calendar_control MMI_calendar_control;
- extern U8 MMI_calendar_days[MAX_CALENDAR_DAYS];
- extern S32 MMI_calendar_highlighted_day;
- extern void (*MMI_calendar_control_highlight_handler) (S32 day);
- #define CLNDR_HINT_LEN 8*ENCODING_LENGTH
- #ifdef __MMI_UI_DALMATIAN_CALENDAR__
- #define CLNDR_TITLE_LEN 17*ENCODING_LENGTH
- #else
- #define CLNDR_TITLE_LEN 12*ENCODING_LENGTH
- #endif
- #define CLNDR_MAX_DAYS 31
- #define CLNDR_LAST_NAVI_YEAR 2030
- #define CLNDR_FIRST_NAVI_YEAR 1970
- #define CALENDAR_N_COLUMNS 7
- #define CALENDAR_N_ROWS 6
- #define CALENDAR_CELL_WIDTH 18
- #define CALENDAR_CELL_HEIGHT 13
- #define CALENDAR_X 1
- #define CALENDAR_Y 28
- #define NEXT_DAY 0
- #define PREV_DAY 1
- #define NEXT_ROW 2
- #define PREV_ROW 3
- #define SELECTED_DAY 4
- #define CALENDAR_DOW_TITLE_HEIGHT 14
- #define CALENDAR_LUNAR_TITLE_HEIGHT 15
- #define CALENDAR_LUNAR_SYMBOL_WIDTH 20
- #if defined (__MMI_MAINLCD_240X320__)
- #define MMI_CALENDAR_X 5
- #define MMI_CALENDAR_Y 62
- #define MMI_CALENDAR_WIDTH 231
- #define MMI_CALENDAR_HEIGHT 156
- #define MMI_CALENDAR_LIMIT_Y 41
- #define MMI_CALENDAR_LIMIT_HEIGHT MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_CALENDAR_LIMIT_Y
- #elif defined (__MMI_MAINLCD_176X220__)
- #define MMI_CALENDAR_X 12
- #define MMI_CALENDAR_Y 70
- #define MMI_CALENDAR_WIDTH 154
- #define MMI_CALENDAR_HEIGHT 108
- #define MMI_CALENDAR_LIMIT_Y 55
- #define MMI_CALENDAR_LIMIT_HEIGHT MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_CALENDAR_LIMIT_Y
- #elif defined (__MMI_MAINLCD_128X160__)
- #define MMI_CALENDAR_X 1
- #define MMI_CALENDAR_Y 35
- #define MMI_CALENDAR_WIDTH 126
- #define MMI_CALENDAR_HEIGHT 91
- #define MMI_CALENDAR_LIMIT_Y 17
- #define MMI_CALENDAR_LIMIT_HEIGHT MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_CALENDAR_LIMIT_Y
- #else
- #define MMI_CALENDAR_X 1
- #define MMI_CALENDAR_Y 35
- #define MMI_CALENDAR_WIDTH 126
- #define MMI_CALENDAR_HEIGHT 60
- #define MMI_CALENDAR_LIMIT_Y 17
- #define MMI_CALENDAR_LIMIT_HEIGHT MAIN_LCD_DEVICE_HEIGHT-MMI_BUTTON_BAR_HEIGHT-MMI_CALENDAR_LIMIT_Y
- #endif
- #ifdef __MMI_TOUCH_SCREEN__
- #define MMI_CALENDAR_ARROW_OFFSET 5
- #endif
- #ifdef __MMI_UI_DALMATIAN_CALENDAR__
- typedef enum
- {
- DALMATIAN_CALENDAR_HIGHLIGHTER_MOVE_WITH_SELECT,
- DALMATIAN_CALENDAR_HIGHLIGHTER_MOVE_WITH_CURRENT /* Animatian with gif */
- } wgui_dalmatian_calendar_highlighter_styles;
- extern color wgui_read_calendar_highlighter_horizontal_color(S32 month);
- extern color wgui_read_calendar_highlighter_vertical_color(S32 month);
- extern void set_current_month_year_for_dalmatian(S32 current_day, S32 current_month, S32 current_year);
- extern void draw_current_week_highlighter(calendar_control *c);
- extern void draw_current_week_highlighter_with_current_selection(void);
- extern U16 dalmatian_calendar_current_week_image(void);
- extern void set_dalmatian_calendar_highlighter_box(void);
- extern void set_dalmatian_calendar_highlighter_enable(void);
- extern void set_dalmatian_calendar_highlighter_disable(void);
- extern S32 dalmatian_calendar_highlighter_status(void);
- extern void set_dalmatian_current_week_num(void);
- extern void set_dalmatian_title_string(void);
- extern void get_current_date_highlighter_coordinates(calendar_control *c, S32 *x, S32 *y);
- extern void draw_current_day_highlighter(void);
- #endif /* __MMI_UI_DALMATIAN_CALENDAR__ */
- #ifdef __MMI_UI_DALMATIAN_SOFTKEYS__
- extern void shuffle_softkey_draw_dalmatian_calender_image(void);
- #endif
- extern void wgui_setup_calendar(
- S32 x,
- S32 y,
- S32 cell_width,
- S32 cell_height,
- S32 first_dow,
- S32 last_day,
- S32 current_day,
- S32 current_month,
- S32 current_year,
- U32 flags);
- extern void wgui_reset_calendar_params(S32 x, S32 y, S32 n_columns, S32 n_rows, S32 cell_width, S32 cell_height);
- extern void wgui_close_calendar(void);
- extern void wgui_show_calendar(void);
- extern void wgui_register_calendar_keys(void);
- extern void wgui_move_calendar(S32 x, S32 y);
- void SetCalendarPopupTitleLunarFunc(void (*popuptitle) (U8, U8, U8, U8));
- void SetCalendarMonthFunctions(void (*month_previous_day) (void), void (*month_next_day) (void),
- void (*month_previous_week) (void), void (*month_next_week) (void));
- #ifdef __MMI_TOUCH_SCREEN__
- void SetCalendarMonthChangeFunctions(void (*previous_month) (void), void (*next_month) (void));
- #ifdef __MMI_UI_CALENDAR_WITH_INFO_BOX__
- void SetCalendarYearChangeFunctions(void (*previous_year) (void), void (*next_year) (void));
- #endif
- #endif /* __MMI_TOUCH_SCREEN__ */
- void RegisterCalendarUpdateHandler(void (*f) (S32 day, S32 month, S32 year));
- extern void SetCalendarDay(S32 day, U8 flag);
- void RegisterCalendarHighlightHandler(void (*f) (S32 index));
- #ifdef __MMI_UI_CALENDAR_WITH_INFO_BOX__
- extern void wgui_set_calendar_info_box(
- S32 InfoBoxX,
- S32 InfoBoxY,
- S32 InfoBoxWidth,
- S32 InfoBoxHeight,
- S32 InfoBoxMax,
- U16 InfoBoxShow);
- void RegisterCalendarUpdateInfoBoxHandler(void (*f)
- (S32 *p_n_info, U16 **p_icon_list, U8 ***p_description_list));
- #endif /* __MMI_UI_CALENDAR_WITH_INFO_BOX__ */
- extern S32 GetCalendarHighlightedDay(void);
- extern void SetCalendarHighlightedDay(S32 day);
- extern void SetCalendarPopupDay(S32 day, U8 *message1, U8 *message2, U8 *message3);
- extern void SetCalendarBackground(U16 image_ID);
- extern void SetCalendarTitleImage(U16 image_ID);
- extern void RedrawCategory80Screen(void);
- extern void InitializeCategory80Screen(
- S32 first_day_of_week,
- S32 last_day_of_month,
- S32 current_day,
- S32 current_month,
- S32 current_year);
- extern void ShowCategory80Screen(
- U16 left_softkey,
- U16 left_softkey_icon,
- U16 right_softkey,
- U16 right_softkey_icon,
- U8 *history_buffer);
- extern void ExitCategory80Screen(void);
- extern S32 GetCategory80HistorySize(void);
- extern U8 *GetCategory80History(U8 *history_buffer);
- extern void RedrawCategory81Screen(void);
- extern void InitializeCategory81Screen(
- S32 first_day_of_week,
- S32 last_day_of_month,
- S32 current_day,
- S32 current_month,
- S32 current_year);
- extern void ShowCategory81Screen(
- U8 *title,
- U16 left_softkey,
- U16 left_softkey_icon,
- U16 right_softkey,
- U16 right_softkey_icon,
- U8 *message1,
- U8 *message2,
- U8 *history_buffer);
- extern void ExitCategory81Screen(void);
- extern S32 GetCategory81HistorySize(void);
- extern U8 *GetCategory81History(U8 *history_buffer);
- extern void RedrawCategory82Screen(void);
- extern void InitializeCategory82Screen(
- S32 first_day_of_week,
- S32 last_day_of_month,
- S32 current_day,
- S32 current_month,
- S32 current_year);
- extern void ShowCategory82Screen(
- U16 left_softkey,
- U16 left_softkey_icon,
- U16 right_softkey,
- U16 right_softkey_icon,
- U8 *history_buffer);
- extern void ExitCategory82Screen(void);
- extern S32 GetCategory82HistorySize(void);
- extern U8 *GetCategory82History(U8 *history_buffer);
- extern void ChangeCategory82Title1(U8 *title);
- #ifdef __MMI_UI_CALENDAR_WITH_INFO_BOX__
- extern void ChangeCategory82Title1Month(U8 *title);
- #ifdef __MMI_TOUCH_SCREEN__
- extern void DisableCalendarTitle1Arrow(void);
- extern void ResetCalendarTitle1Arrow(void);
- extern void DisableCalendarTitle1MonthArrow(void);
- extern void ResetCalendarTitle1MonthArrow(void);
- #endif /* __MMI_TOUCH_SCREEN__ */
- #endif /* __MMI_UI_CALENDAR_WITH_INFO_BOX__ */
- extern void ChangeCategory82Title2(U8 *title);
- extern void ChangeCategory82Title3(U8 *title);
- extern void wgui_calendar_next_month(void);
- extern void wgui_calendar_previous_month(void);
- #if defined (__MMI_TOUCH_SCREEN__) && defined (__MMI_UI_CALENDAR_WITH_INFO_BOX__)
- extern void wgui_calendar_next_year(void);
- extern void wgui_calendar_previous_year(void);
- #endif /* defined (__MMI_TOUCH_SCREEN__) && defined (__MMI_UI_CALENDAR_WITH_INFO_BOX__) */
- extern void wgui_calendar_next_month_day(void);
- extern void wgui_calendar_previous_month_day(void);
- extern void wgui_calendar_next_month_week(void);
- extern void wgui_calendar_previous_month_week(void);
- #ifdef __MMI_TOUCH_SCREEN__
- extern BOOL wgui_calendar_translate_pen_event(
- calendar_control *c,
- mmi_pen_event_type_enum pen_event,
- S16 x,
- S16 y,
- gui_calendar_pen_enum *calendar_event);
- #endif /* __MMI_TOUCH_SCREEN__ */
- #endif /* (ENABLE_CALENDAR_CONTROL) */
- /* 072406 new calendar Start */
- #ifdef __MMI_UI_INTEGRATED_CALENDAR_SUPPORT__
- #include "lcd_sw_rnd.h"
- #include "gdi_include.h"
- #define CAT83_MAX_CELL_TEXT 3
- #define CAT83_POPUP_WAIT_TIME 2000
- #ifdef __MMI_MAINLCD_240X320__
- #define CAT83_FRAME_LINE_PIXEL 1
- #define CAT83_FRAME_START_X 9
- #define CAT83_FRAME_START_Y 44
- #define CAT83_FRAME_WIDTH 221
- #define CAT83_FRAME_HEIGHT 199
- #define CAT83_TITLE_HEIGHT 22
- #define CAT83_HORIZONTAL_STRING_HEIGHT 30
- #define CAT83_VERTICAL_SELECT_WIDTH 30
- #define CAT83_HORIZONTAL_SELECT_GAP_BORDER 1
- #define CAT83_HORIZONTAL_SELECT_GAP_OTHER 5
- #define CAT83_CACHE_WIDTH (CAT83_FRAME_WIDTH/5)
- #define CAT83_CACHE_HEIGHT (CAT83_FRAME_HEIGHT/5)
- #ifdef __MMI_UI_CALENDAR_WITH_INFO_BOX__
- #define CAT83_MAX_INFOBOX 2
- #define CAT83_INFOBOX_GAP 1
- #define CAT83_INFOBOX_ENTRY_HEIGHT 24
- #define CAT83_INFOBOX_START_X CAT83_FRAME_START_X
- #define CAT83_INFOBOX_START_Y 245
- #define CAT83_INFOBOX_WIDTH CAT83_FRAME_WIDTH
- #define CAT83_INFOBOX_HEIGHT ((CAT83_INFOBOX_ENTRY_HEIGHT*CAT83_MAX_INFOBOX)+(CAT83_INFOBOX_GAP*(CAT83_MAX_INFOBOX+1)))
- #endif
- #else
- #endif
- #define CALENDAR_CACHE_CELL_SIZE (((CAT83_CACHE_WIDTH*CAT83_CACHE_HEIGHT*GDI_MAINLCD_BIT_PER_PIXEL)>>3)*2)
- #define CALENDAR_CACHE_POPUP_SIZE (((CAT83_FRAME_WIDTH>>1)*(CAT83_FRAME_HEIGHT>>1)*GDI_MAINLCD_BIT_PER_PIXEL)>>3)
- typedef struct
- {
- U8 bg_index;
- UI_image_ID_type icon_id;
- UI_character_type text[CAT83_MAX_CELL_TEXT];
- MMI_BOOL valid;
- } wgui_cat83_cell_struct;
- typedef enum
- {
- IDLE_NORMAL,
- IDLE_SMALL,
- CAT83_CALENDAR_NORMAL,
- CAT83_CALENDAR_SMALL
- } CALENDAR_INIT_TYPE;
- typedef enum
- {
- CAT83_COLOR_CURRENT,
- CAT83_COLOR_ONE_TASK,
- CAT83_COLOR_MORE_TASK,
- CAT83_COLOR_MENSTRUAL,
- CAT83_COLOR_PP,
- CAT83_COLOR_DANGER,
- CAT83_COLOR_INVALID,
- CAT83_COLOR_TOTAL,
- CAT83_COLOR_NONE = CAT83_COLOR_TOTAL
- } CAT83_CELL_COLOR_INDEX;
- typedef enum
- {
- CAT83_SELECT_ALIGN_CENTER,
- CAT83_SELECT_ALIGN_LEFT,
- //CAT83_SELECT_ALIGN_RIGHT,
- CAT83_SELECT_ALIGN_LINE,
- CAT83_SELECT_ALIGN_CELL
- } CAT83_SELECT_ALIGN_TYPE;
- typedef enum
- {
- CAT83_CELL_BG_FILL_HORIZONTAL,
- CAT83_CELL_BG_FILL_VERTICAL
- } CAT83_CELL_BG_FILL_TYPE;
- typedef enum
- {
- CAT83_CELL_TEXT_DISPLAY_DISABLE,
- CAT83_CELL_TEXT_DISPLAY_CENTER,
- CAT83_CELL_TEXT_DISPLAY_LEFT_BOTTOM
- } CAT83_CELL_TEXT_DISPLAY_TYPE;
- typedef enum
- {
- CAT83_CELL_ICON_DISPLAY_DISABLE,
- CAT83_CELL_ICON_DISPLAY_CENTER,
- CAT83_CELL_ICON_DISPLAY_RIGHT_TOP
- } CAT83_CELL_ICON_DISPLAY_TYPE;
- typedef MMI_BOOL (*Cat83EventFuncPtr) (U32 highlighted_row, U32 highlighted_column);
- extern void wgui_calendar_init(U32 calendar_type, U32 row_num, U32 column_num, U8* cell_buf, U8* popup_buf);
- extern void wgui_cat83_set_bg(UI_image_ID_type bg_id);
- extern void wgui_cat83_set_select_horizontal1(UI_image_ID_type left_up, UI_image_ID_type left_down, UI_image_ID_type right_up, UI_image_ID_type right_down, U8 *string, U32 align_type);
- extern void wgui_cat83_set_select_horizontal1_string(U8 *string);
- extern void wgui_cat83_set_select_horizontal1_handler(Cat83EventFuncPtr left_handler, Cat83EventFuncPtr right_handler);
- extern void wgui_cat83_set_select_horizontal2(UI_image_ID_type left_up, UI_image_ID_type left_down, UI_image_ID_type right_up, UI_image_ID_type right_down, U8 *string, U32 align_type);
- extern void wgui_cat83_set_select_horizontal2_string(U8 *string);
- extern void wgui_cat83_set_select_horizontal2_handler(Cat83EventFuncPtr left_handler, Cat83EventFuncPtr right_handler);
- extern void wgui_cat83_set_select_vertical(UI_image_ID_type top_up, UI_image_ID_type top_down, UI_image_ID_type bottom_up, UI_image_ID_type bottom_down, U8 **string_list, U32 align_type);
- extern void wgui_cat83_set_select_vertical_string(U8 **string_list);
- extern void wgui_cat83_set_select_vertical_handler(Cat83EventFuncPtr top_handler, Cat83EventFuncPtr bottom_handler);
- extern void wgui_cat83_set_normal_title(U8 *string);
- extern void wgui_cat83_set_menstrual_title(U8 color_index1, U8 *string1, U8 color_index2, U8 *string2);
- extern void wgui_cat83_set_horizontal_string(U8 **string_list);
- extern void wgui_cat83_set_cell_array(wgui_cat83_cell_struct *cell, U8 cell_bg_fill_type, U8 cell_text_display_type, U8 cell_icon_display_type);
- extern void wgui_cat83_set_current(U32 current_row, U32 current_column);
- extern void wgui_cat83_set_highlight(U32 highlighted_row, U32 highlighted_column);
- extern void wgui_cat83_set_popup(U8 *message1, U8 *message2, U8 *message3);
- #ifdef __MMI_UI_CALENDAR_WITH_INFO_BOX__
- extern void wgui_cat83_set_infobox(UI_image_ID_type *icon_list, U8 **string_list, U8 entry_num);
- #endif
- extern void wgui_cat83_register_cell_highlight_handler(MMI_BOOL (*app_cell_highlight_handler)(U32 highlighted_row, U32 highlighted_column));
- extern void wgui_cat83_register_left_arrow_key_handler(MMI_BOOL (*app_left_arrow_key_handler)(U32 highlighted_row, U32 highlighted_column));
- extern void wgui_cat83_register_right_arrow_key_handler(MMI_BOOL (*app_right_arrow_key_handler)(U32 highlighted_row, U32 highlighted_column));
- extern void wgui_cat83_register_up_arrow_key_handler(MMI_BOOL (*app_up_arrow_key_handler)(U32 highlighted_row, U32 highlighted_column));
- extern void wgui_cat83_register_down_arrow_key_handler(MMI_BOOL (*app_down_arrow_key_handler)(U32 highlighted_row, U32 highlighted_column));
- extern void wgui_cat83_register_up_side_key_handler(MMI_BOOL (*app_up_side_key_handler)(U32 highlighted_row, U32 highlighted_column));
- extern void wgui_cat83_register_down_side_key_handler(MMI_BOOL (*app_down_side_key_handler)(U32 highlighted_row, U32 highlighted_column));
- extern void ShowCategory83Screen(
- UI_image_ID_type bg_id,
- U8 **horizon_string_list,
- wgui_cat83_cell_struct *cell,
- U32 num_of_row,
- U32 num_of_column,
- U32 current_row,
- U32 current_column,
- U32 highlighted_row,
- U32 highlighted_column,
- U8 cell_bg_fill_type,
- U8 cell_text_display_type,
- U8 cell_icon_display_type);
- #endif
- #include "wgui_asyncdynamic_menuitems.h"
- #ifdef __MMI_MAINLCD_240X320__
- #define CAT85_MAIN_IMAGE_WIDTH 27
- #define CAT85_MAIN_IMAGE_HEIGHT 25
- #define CAT85_SUB_IMAGE_WIDTH 17
- #define CAT85_SUB_IMAGE_HEIGHT 17
- #define CAT85_MENUITEM_OFFSET 4
- #else
- #define CAT85_MAIN_IMAGE_WIDTH 27
- #define CAT85_MAIN_IMAGE_HEIGHT 25
- #define CAT85_SUB_IMAGE_WIDTH 17
- #define CAT85_SUB_IMAGE_HEIGHT 17
- #define CAT85_MENUITEM_OFFSET 2
- #endif
- extern void ShowCategory85Screen(
- U8 *title,
- U16 title_icon,
- U16 left_softkey,
- U16 left_softkey_icon,
- U16 right_softkey,
- U16 right_softkey_icon,
- S32 number_of_items,
- GetAsyncItemFuncPtr get_item_func,
- GetAsyncHintFuncPtr get_hint_func,
- S32 highlighted_item,
- U16 main_icon,
- U16 sub_icon,
- U8 *history_buffer);
- /* 072406 new calendar End */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __WGUI_CALENDAR_H__ */