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

📄 mmidc_preview_wintab.c

📁 手机Camera部分上层软件代码
💻 C
📖 第 1 页 / 共 5 页
字号:
/*****************************************************************************
** File Name:      mmidc_preview_wintab.c                                    *
** Author:                                                                   *
** Date:           2005-8	                                                 *
** Copyright:      2003 Spreadtrum, Incorporated. All Rights Reserved.         *
** Description:    This file is used to describe dc preview window table     *
*****************************************************************************
**                         Important Edit History                            *
** --------------------------------------------------------------------------*
** DATE           NAME             DESCRIPTION                               *
** 08/2005       Bruce.Chi           Create									 *
*****************************************************************************/

/**--------------------------------------------------------------------------*
 **                         Include Files                                    *
 **--------------------------------------------------------------------------*/
#include "mmidc_internal.h"
#include "mmidisplay_data.h"
#include "mmi_id.h"
#include "window_parse.h"
#include "mmi_menutable.h"
#include "mmi_pubwin.h"
#include "mmi_common.h"
#include "mmiset.h"
#include "mmimp3.h"
#include "mmi_subwintab.h"
#include "mmiphone.h"
#include "mmi_default.h"
#include "mmk_timer.h"
#include "mmi_textfun.h"
#include "mmi_appmsg.h"

#ifndef WIN32
#include "prod_dc.h"
#endif
#ifdef _MMI_OCR
#include "mmiocr.h"
#include "mmiocr_id.h"
#endif
 /**--------------------------------------------------------------------------*
 **                         MACRO DEFINITION                                 *
 **--------------------------------------------------------------------------*/
#define INPUT_RECT_LEFT     6
#define INPUT_RECT_RIGHT    (MMI_MAINSCREEN_RIGHT_MAX_PIXEL - INPUT_RECT_LEFT)
#define INPUT_RECT_BOTTOM   (MMI_MAINSCREEN_BOTTOM_MAX_PIXEL / 2)
#define INPUT_RECT_TOP      (INPUT_RECT_BOTTOM - 20)

#define	MMIDC_FILL_CLIENT()\
	{\
	GUI_RECT_T rect = MMI_CLIENT_RECT;\
	LCD_FillRect(0, rect, MMI_WINDOW_BACKGROUND_COLOR);\
	}

#define MMIDC_PREVIEW_TO_CAP_PROTECT_TIME 500	//ms
#define MMIDC_PREVIEW_OSD_PROTECT_TIME 100	//ms

//图标的标号位置
#define MAX_TOOLBAR_NUM							6

#ifdef LCD_176_220
#define MMIDC_PREVIEW_MENU_RECT					{0, 210, 30, 219}
#define MMIDC_PREVIEW_CAPTURE_RECT				{70, 210, 105, 219}
#define MMIDC_PREVIEW_CANCEL_RECT				{140, 210, 175, 219}
#elif defined(_LCD_QVGA_)
#define MMIDC_PREVIEW_MENU_RECT					{0, 301, 30, 319}
#define MMIDC_PREVIEW_CAPTURE_RECT				{105, 301, 135, 319}
#define MMIDC_PREVIEW_CANCEL_RECT				{209, 301, 239, 319}
#elif defined LCD_128_160
#define MMIDC_PREVIEW_MENU_RECT					{0, 210, 30, 219}
#define MMIDC_PREVIEW_CAPTURE_RECT				{70, 210, 105, 219}
#define MMIDC_PREVIEW_CANCEL_RECT				{140, 210, 175, 219}
#endif

/**--------------------------------------------------------------------------*
 **                         STATIC DEFINITION                                *
 **--------------------------------------------------------------------------*/
static BOOLEAN s_dc_af_over=FALSE;

/*---------------------------------------------------------------------------*/
/*                          TYPE AND CONSTANT                                */
/*---------------------------------------------------------------------------*/

/**--------------------------------------------------------------------------*
 **                         EXTERNAL DECLARE                                 *
 **--------------------------------------------------------------------------*/
 extern MMIDC_SETTING_INFO_T			s_mmidc_setting_info;

 /**-------------------------------------------------------------------------*
 **                         GLOBAL DEFINITION                                *
 **--------------------------------------------------------------------------*/


/*---------------------------------------------------------------------------*/
/*                          LOCAL FUNCTION DECLARE                           */
/*---------------------------------------------------------------------------*/
/*****************************************************************************/
// 	Description : handle the message of camera menu window
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleMenuWinMsg(
								MMI_WIN_ID_T		win_id, 
								MMI_MESSAGE_ID_E	msg_id, 
								DPARAM				param
								 );

/*****************************************************************************/
// 	Description : handle the message of setting mode mode window
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleEffectSettingWinMsg(
											 MMI_WIN_ID_T	win_id, 
											 MMI_MESSAGE_ID_E	msg_id, 
											 DPARAM				param
											 );

/*****************************************************************************/
// 	Description : set listbox item
//	Global resource dependence : 
//  Author:	bruce.chi
//	Note: 
/*****************************************************************************/
LOCAL BOOLEAN SetListboxItem(
								MMI_CTRL_ID_T	ctrl_id,
								uint16				max_item_num,
								MMI_TEXT_ID_T*		str_id_arr
								);

/*****************************************************************************/
// 	Description : open the window of setting mode
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL void Dc_OpenEffectSettingWin(void);

/*****************************************************************************/
// 	Description : handle the message of mode
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleModeSettingWinMsg(
							 			   MMI_WIN_ID_T	win_id, 
										   MMI_MESSAGE_ID_E	msg_id, 
										   DPARAM				param
										   );

/*****************************************************************************/
// 	Description : handle the message of setting photo quality window
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleQualitySettingWinMsg(
											 MMI_WIN_ID_T	win_id, 
											 MMI_MESSAGE_ID_E	msg_id, 
											 DPARAM				param
											 );

/*****************************************************************************/
// 	Description : open the window of setting photo quality
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL void Dc_OpenQualitySettingWin(void);

//*****************************************************************************/
// 	Description : open the window of setting video voice rec enable
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMIDC_RESULT_E Dc_OpenVoiceRecSettingWin(void);

/*****************************************************************************/
// 	Description : handle the message of setting photo size window
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleSizeSettingWinMsg(
											 MMI_WIN_ID_T	win_id, 
											 MMI_MESSAGE_ID_E	msg_id, 
											 DPARAM				param
											 );
/*****************************************************************************/
// 	Description : handle the message of setting photo size window
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleVideoSizeSettingWinMsg(
											 MMI_WIN_ID_T	win_id, 
											 MMI_MESSAGE_ID_E	msg_id, 
											 DPARAM				param
											 );

/*****************************************************************************/
// 	Description : handle the message of setting photo size window
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleVideoFormatSettingWinMsg(
											 MMI_WIN_ID_T	win_id, 
											 MMI_MESSAGE_ID_E	msg_id, 
											 DPARAM				param
											 );

/*****************************************************************************/
// 	Description : handle the message of setting photo size window
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleVoiceRecSettingWinMsg(
											 MMI_WIN_ID_T	win_id, 
											 MMI_MESSAGE_ID_E	msg_id, 
											 DPARAM				param
											 );

/*****************************************************************************/
// 	Description : open the window of setting photo size
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMIDC_RESULT_E Dc_OpenSizeSettingWin(void);

//*****************************************************************************/
// 	Description : open the window of setting video size
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMIDC_RESULT_E Dc_OpenVideoSizeSettingWin(void);

//*****************************************************************************/
// 	Description : open the window of setting video size
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMIDC_RESULT_E Dc_OpenVideoFormatSettingWin(void);

/*****************************************************************************/
// 	Description : handle the message of setting shutter voice
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleShutterVoiceSettingWinMsg(
											 MMI_WIN_ID_T	win_id, 
											 MMI_MESSAGE_ID_E	msg_id, 
											 DPARAM				param
											 );

/*****************************************************************************/
// 	Description : open the window of setting shutter voice
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMIDC_RESULT_E Dc_OpenShutterVoiceSettingWin(void);

/*****************************************************************************/
// 	Description : open the window of mode
//	Global resource dependence : none
//  Author: Great.Tian
//	Note:
/*****************************************************************************/
LOCAL void Dc_OpenModeSettingWin(void);

/*****************************************************************************/
// 	Description : open the window of timer
//	Global resource dependence : none
//  Author: Great.Tian
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleOverTimeSettingWinMsg(
							 			   MMI_WIN_ID_T	win_id, 
										   MMI_MESSAGE_ID_E	msg_id, 
										   DPARAM				param
										   );

/*****************************************************************************/
// 	Description : open the window of timer
//	Global resource dependence : none
//  Author: Great.Tian
//	Note:
/*****************************************************************************/
LOCAL MMIDC_RESULT_E Dc_OpenOverTimeSettingWin(void);

/*****************************************************************************/
// 	Description : handle the message of timer
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleOverCircleSettingWinMsg(
							 			   MMI_WIN_ID_T	win_id, 
										   MMI_MESSAGE_ID_E	msg_id, 
										   DPARAM				param
										   );

/*****************************************************************************/
// 	Description : open the window of circle
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL MMIDC_RESULT_E Dc_OpenCircleSettingWin(void);

/*****************************************************************************/
// 	Description : handle the message of setting strobe light
//	Global resource dependence : none
//  Author: 
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleFlashSettingWinMsg(
											 MMI_WIN_ID_T	win_id, 
											 MMI_MESSAGE_ID_E	msg_id, 
											 DPARAM				param
											 );

/*****************************************************************************/
// 	Description : handle the message of setting record speed
//	Global resource dependence : none
//  Author: 
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleRecordSpeedSettingWinMsg(
											 MMI_WIN_ID_T	win_id, 
											 MMI_MESSAGE_ID_E	msg_id, 
											 DPARAM				param
											 );

/*****************************************************************************/
// 	Description : handle the capture osd setting
//	Global resource dependence : none
//  Author: 
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleCaptureOSDSettingWinMsg(
											 MMI_WIN_ID_T	win_id, 
											 MMI_MESSAGE_ID_E	msg_id, 
											 DPARAM				param
											 );

/*****************************************************************************/
// 	Description : handle the capture osd setting
//	Global resource dependence : none
//  Author: 
//	Note:
/*****************************************************************************/
LOCAL MMI_RESULT_E HandleInputOSDCharacterWinMsg(
											 MMI_WIN_ID_T	win_id, 
											 MMI_MESSAGE_ID_E	msg_id, 
											 DPARAM				param
											 );

/*****************************************************************************/
// 	Description : open the window of setting strobe light
//	Global resource dependence : none
//  Author: 
//	Note:
/*****************************************************************************/
LOCAL void Dc_OpenCaptureOSDSettingWin(void);

/*****************************************************************************/
// 	Description : open the window of setting strobe light
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL void Dc_OpenFlashSettingWin(void);

/*****************************************************************************/
// 	Description : open the window of setting record speed
//	Global resource dependence : none
//  Author: bruce.chi
//	Note:
/*****************************************************************************/
LOCAL void Dc_OpenRecordSpeedSettingWin(void);

/*****************************************************************************/
// 	Description : set flash
//	Global resource dependence : 
//  Author: bruce.chi
//	Note:
/*****************************************************************************/

⌨️ 快捷键说明

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