📄 schedatepage.h
字号:
/******************************************************************** created: 2007/04/22 created: 22:4:2007 11:22 filename: ScheDatePage.h file path: e:\brew program\schedule file base: ScheDatePage file ext: h author: fhong purpose: *********************************************************************/#ifndef SCHEDATEPAGE_H #define SCHEDATEPAGE_H ////////////////////////////////////////////////////////////////////////// #include "BasePage.h"#include "PageStateMgr.h"#include "DataStorage.h"#include "AEEDate.h "//////////////////////////////////////////////////////////////////////////#define EVENT '1'#define NO_EVENT '0'//////////////////////////////////////////////////////////////////////////typedef struct _Date{ uint16 m_year ; uint16 m_month ; uint16 m_day ;}Date ;//////////////////////////////////////////////////////////////////////////typedef struct _MyDate{ AEEDeviceInfo m_DeviceInfo ; IShell* m_pIShell ; IDisplay* m_pIDisplay ; Date m_absoluteDate ; //absolute date Date m_cursorDate ; boolean m_signFlag[33] ; DataStorage* m_pDataSorage ; } MyDate;//////////////////////////////////////////////////////////////////////////typedef struct _ScheDatePage { BasePage m_basePage; MyDate* m_pMyDate ;} ScheDatePage;/*===================================================================Function Prototypes===================================================================*/////////////////////////////////////////////////////////////////////////////Public function declaration (External Interfaces).extern int ScheDatePage_Init(IShell* pIShell,PageStateMgr* pPageStateMgr,BasePage** ppBasePage,uint32 nPageID);extern int ScheDatePage_HandleEvent(BasePage* pBasePage,AEEEvent eCode,uint16 wParam,uint32 dwParam);extern int ScheDatePage_Draw(BasePage* pBasePage);extern void ScheDatePage_Release(BasePage* pBasePage);////////////////////////////////////////////////////////////////////////////Private function declarationstatic int GetCursorDate(ScheDatePage *pMe);/*=========================================================================================================//////////////////////////////////////////////////////////////////////////////////////////////////////////////MyDate Control function declaration///////////////////////////////////////////////////////////////////////////////////////////////////////////==========================================================================================================*/////////////////////////////////////////////////////////////////////////////Public function//////////////////////////////////////////////////////////////////////////int MyDate_Init( ScheDatePage* pMe, MyDate** ppMyDate );int MyDate_Draw( MyDate* pMyDate, AEERect* pRect, IImage* pImage );int MyDate_HandleEvent( MyDate* pMyDate, AEEEvent eCode, uint16 wParam, uint32 dwParam );int MyDate_GetCursorDate( MyDate* pMyDate, Date* pDate );int MyDate_SetDate( MyDate* pMyDate, uint16 year, uint16 month, uint16 day ) ;int MyDate_Redraw( MyDate* pMyDate ); //to doint MyDate_Release( MyDate* pMyDate );////////////////////////////////////////////////////////////////////////////Private function//////////////////////////////////////////////////////////////////////////int MyDate_Update( MyDate* pMyDate, int year, int month, int day ) ;int MyDate_DrawYearMonth( MyDate* pMyDate, AEERect* pRect, uint16 year, uint16 month );int MyDate_DrawLunar( MyDate* pMyDate, AEERect* pRect );//to doint MyDate_DrawWeek( MyDate* pMyDate, AEERect* pRect ) ;int MyDate_DrawDaysOfMonth( MyDate* pMyDate, AEERect* pRect, uint16 year, uint16 month, uint16 day );int MyDate_GetWeekDay( MyDate* pMyDate, uint16 year, uint16 month, uint16 day ) ;int MyDate_SetBackground( MyDate* pMyDate, const char * pszImageFile ) ;int MyDate_SignEvtOfAMonth( MyDate* pMyDate, uint16 year, uint16 month, boolean flag[] ) ;/*=========================================================================================================//////////////////////////////////////////////////////////////////////////////////////////////////////////////MyDate Control function declaration End///////////////////////////////////////////////////////////////////////////////////////////////////////////==========================================================================================================*/#endif SCHEDATEPAGE_H //SCHEDATEPAGE_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -