wgui_categories_fmgr.h
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:7k
源码类别:

MTK

开发平台:

C/C++

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2005
  8. *
  9. *  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. *  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. *  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. *  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. *  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. *  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. *  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. *  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. *  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. *  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. *  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. *  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. *  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. *  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. *  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
  27. *
  28. *  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. *  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. *  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. *  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. *  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*******************************************************************************
  36.  * Filename:
  37.  * ---------
  38.  *  wgui_categories_fmgr.h
  39.  *
  40.  * Project:
  41.  * --------
  42.  *   MAUI
  43.  *
  44.  * Description:
  45.  * ------------
  46.  *  File Manager related categories.
  47.  *
  48.  *  [Category212]       Info Style Dynamic List Menu 
  49.  *  [Category213]       Thick Style Dynamic List Menu 
  50.  *  [Category214]       Matrix Style Dynamic Image Menu 
  51.  *
  52.  * Author:
  53.  * -------
  54.  * -------
  55.  *
  56.  *==============================================================================
  57.  *             HISTORY
  58.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
  59.  *------------------------------------------------------------------------------
  60.  * removed!
  61.  *
  62.  * removed!
  63.  * removed!
  64.  * removed!
  65.  *
  66.  * removed!
  67.  * removed!
  68.  * removed!
  69.  *
  70.  *------------------------------------------------------------------------------
  71.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
  72.  *==============================================================================
  73.  *******************************************************************************/
  74. #ifndef __WGUI_CATEGORIES_FMGR_H__
  75. #define __WGUI_CATEGORIES_FMGR_H__
  76. /***************************************************************************** 
  77. * Define
  78. *****************************************************************************/
  79. #define CAT213_ARROW_UP    0x1
  80. #define CAT213_ARROW_DOWN  0x2
  81. #define CAT213_ARROW_LEFT  0x4
  82. #define CAT213_ARROW_RIGHT 0x8
  83. #define CAT213_ARROW_ALL   0xf
  84. /***************************************************************************** 
  85. * Typedef
  86. *****************************************************************************/
  87. typedef void (*Cat212DrawInfoFuncPtr) (S32 idx, S32 x1, S32 y1, S32 x2, S32 y2);
  88. typedef void (*Cat212HideInfoFuncPtr) (void);
  89. typedef void (*Cat213DrawMenuItemFuncPtr) (S32 idx, BOOL is_hilighted, S32 x1, S32 y1, S32 x2, S32 y2);
  90. typedef void (*Cat213HideMenuItemFuncPtr) (void);
  91. typedef void (*Cat214DrawImageFuncPtr) (S32 idx, S32 page_star_idx, S32 page_end_idx, BOOL is_hilighted,
  92.                                         BOOL is_need_update, BOOL is_new_page, S32 x1, S32 y1, S32 x2, S32 y2);
  93. typedef void (*Cat214HideImageFuncPtr) (S32 idx);
  94. /***************************************************************************** 
  95. * Extern Global Variable
  96. *****************************************************************************/
  97. extern S32 MMI_thick_menuitem_height;
  98. /***************************************************************************** 
  99. * Extern Global Function
  100. *****************************************************************************/
  101. extern void ShowCategory211Screen(
  102.                 U16 title,
  103.                 U16 title_icon,
  104.                 U16 left_softkey,
  105.                 U16 left_softkey_icon,
  106.                 U16 right_softkey,
  107.                 U16 right_softkey_icon,
  108.                 S32 num_of_items,
  109.                 GetItemFuncPtr get_item_func,
  110.                 GetHintFuncPtr get_hint_func,
  111.                 Cat212DrawInfoFuncPtr draw_info_callback,
  112.                 Cat212HideInfoFuncPtr hide_info_callback,
  113.                 S32 info_box_height,
  114.                 U16 info_bg_img_id,
  115.                 S32 highlighted_item,
  116.                 U8 *history_buffer);
  117. /* Info style dynamic list category */
  118. extern void ShowCategory212Screen(
  119.                 U16 title,
  120.                 U16 title_icon,
  121.                 U16 left_softkey,
  122.                 U16 left_softkey_icon,
  123.                 U16 right_softkey,
  124.                 U16 right_softkey_icon,
  125.                 S32 num_of_items,
  126.                 GetItemFuncPtr get_item_func,
  127.                 GetHintFuncPtr get_hint_func,
  128.                 Cat212DrawInfoFuncPtr draw_info_callback,
  129.                 Cat212HideInfoFuncPtr hide_info_callback,
  130.                 U16 num_of_info_box_rows,
  131.                 U16 info_bg_img_id,
  132.                 S32 highlighted_item,
  133.                 U8 *history_buffer);
  134. extern void Cat212ShortCutHdlr(S32 item_index);
  135. /* Thick style dynamic list category */
  136. extern void ShowCategory213Screen(
  137.                 U16 title,
  138.                 U16 title_icon,
  139.                 U16 left_softkey,
  140.                 U16 left_softkey_icon,
  141.                 U16 right_softkey,
  142.                 U16 right_softkey_icon,
  143.                 S32 num_of_items,
  144.                 Cat213DrawMenuItemFuncPtr draw_menuitem_callback,
  145.                 Cat213HideMenuItemFuncPtr hide_menuitem_callback,
  146.                 S32 highlighted_item,
  147.                 U8 arrow_flag,
  148.                 U8 *history_buffer);
  149. /* Matrix style dynamic image category */
  150. extern void ShowCategory214Screen(
  151.                 U16 title,
  152.                 U16 title_icon,
  153.                 U16 left_softkey,
  154.                 U16 left_softkey_icon,
  155.                 U16 right_softkey,
  156.                 U16 right_softkey_icon,
  157.                 U16 num_of_items,
  158.                 Cat214DrawImageFuncPtr draw_image_callback,
  159.                 Cat214HideImageFuncPtr hide_image_callback,
  160.                 U8 num_per_row,
  161.                 U8 num_per_col,
  162.                 S32 highlighted_item,
  163.                 U8 *history_buffer);
  164. extern void GetCategory214BoxSize(S32 num_per_row, S32 num_per_col, S32 *box_width_ptr, S32 *box_height_ptr);
  165. #endif /* __WGUI_CATEGORIES_FMGR_H__ */