⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wgui_datetime.c

📁 MTK6226修改平台UI的文件介绍
💻 C
📖 第 1 页 / 共 5 页
字号:
/*****************************************************************************
*  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) 2002
*
*****************************************************************************/

/*****************************************************************************
 *
 * Filename:
 * ---------
 * MMITask.C
 *
 * Project:
 * --------
 *   MAUI
 *
 * Description:
 * ------------
 *   This file is intends for datetime screen control.
 *
 * Author:
 * -------
 * -------
 *$Log: wgui_datetime.c,v $
 *Revision 1.8  2007/09/20 03:23:39  zhouxiang
 *MT158-584
 *Modification Author:zx
 *Date:20070920
 *Content:添加MTK 0716 V38 patch
 *
 *Revision 1.7  2007/07/12 11:04:39  luoren
 *MT190-8
 *Modification Author:gqy
 *Date: 20070712
 *Content:调整MT190 UI问题
 *
 *Revision 1.6  2007/07/03 07:37:02  chaiwei
 *MT118-12
 *Modification Author:ljz
 *Date: 20070703
 *Content:录音界面显示有误
 *
 *Revision 1.5  2007/06/25 11:49:12  wangbei
 *MT118-6
 *Modification Author:wangbei
 *Date: 20070625
 *Content:调整待机日期。
 *
 *Revision 1.4  2007/06/02 03:40:09  wangbei
 *MT170-29
 *Modification Author:wangbei
 *Date: 20070602
 *Content:调整待机时钟及其日期的显示。
 *
 *============================================================================
 *             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!
 * 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_datetime.c
   Author:        manju
   Date Created:  August-07-2002
   Contains:      PixTel UI wrapper routines for Date and Time input / display
**********************************************************************************/

#include "Globaldefs.h"

/*  Include: MMI header file */
#include "MMI_features.h"
#include "stdC.h"
#include "L4Dr1.h"
#include "PixtelDataTypes.h"
/* ... Add More MMI header */

#include "DateTimeType.h"
#include "L4Dr.h"
#include "SettingGprots.h"
#include "wgui_datetime.h"
#include "gdi_include.h"
#include "gui_themes.h"
#include "DateTimeGprot.h"
#include "wgui_fixed_menus.h"
#include "wgui_fixed_menuitems.h"
#include "ScreenSaverDefs.h"
#include "CallManagementGprot.h"
#include "wgui_categories_defs.h"
#include "wgui_categories_CM.h"
#include "BIDIDEF.h"
#include "BIDIProt.h"
#include "UCS2Prot.h"
#include "MiscFunctions.h"
#include "wgui_draw_manager.h"

#include "DebugInitDef.h"

#if defined(__MMI_TOUCH_IDLESCREEN_SHORTCUTS__) || defined(__MMI_UI_STATUS_BAR_AT_BOTTOM__)
#include "wgui_categories_idlescreen.h"
#endif 

#define DT_FLAGS_TYPE   (0x00000fff)

#ifdef __MMI_SUBLCD__
typedef enum
{
    /* Show date before time */
    SUBLCD_DT_DATE_THEN_TIME_TYPE1,
    /* Show time before date */
    SUBLCD_DT_TIME_THEN_DATE_TYPE1,
    SUBLCD_DT_TIME_THEN_DATE_TYPE2
} SUBLCD_DATE_TIME_DISPLAY_TYPE;
#endif /* __MMI_SUBLCD__ */ 
/* MTK Elvis for R2L characters */
#ifdef __MMI_BIDI_ALG__
extern U8 visual_str[];
#endif 
extern BOOL r2lMMIFlag;

/* MTK end */

#ifdef __MMI_AUDIO_PLAYER__
extern BOOL mmi_audply_is_playing(void);
#endif 

/* Date and Time input related objects    */
/* Currently only input boxes are used    */

extern void idle_screen_show_network_details(void);
extern pBOOL IsChineseSet(void);

#ifdef __MMI_SUBLCD__
extern S32 Sub_lcd_title_height;
#endif 
#ifdef __MMI_SUB_WALLPAPER__
extern GDI_HANDLE sublcd_base_layer;
#endif 

/* a single input box for day input */
single_line_input_box wgui_date_input_day;

/* a single input box for month  input */
single_line_input_box wgui_date_input_month;

/* a single input box for year  input */
single_line_input_box wgui_date_input_year;

/* a single input box for hours input */
single_line_input_box wgui_time_input_hours;

/* a single input box for minutes input */
single_line_input_box wgui_time_input_minutes;

/* a single input box for seconds input */
single_line_input_box wgui_time_input_seconds;

/* a single input box for am - pm input */
single_line_input_box wgui_time_input_AM_PM;

single_line_input_box *wgui_date_time_input_object_focus = NULL;

U8 wgui_date_time_input_focus = WGUI_DATE_TIME_INPUT_FOCUS_NONE;

/* store the position of day input previous focus */
U8 wgui_day_input_previous_focus;

/* store the position of day input next focus */
U8 wgui_day_input_next_focus;

/* store the position of month  input previous focus */
U8 wgui_month_input_previous_focus;

/* store the position of month  input next focus */
U8 wgui_month_input_next_focus;

/* store the position of year  input previous focus */
U8 wgui_year_input_previous_focus;

/* store the position of month  input previous focus */
U8 wgui_year_input_next_focus;

/* store the position of month  input previous focus */
U8 wgui_hours_input_previous_focus;

/* store the position of hours   input next focus */
U8 wgui_hours_input_next_focus;

/* store the position of minutes  input previous focus */
U8 wgui_minutes_input_previous_focus;

/* store the position of month  input next focus */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -