OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _FWL_MONTHCALENDAR_H | 7 #ifndef _FWL_MONTHCALENDAR_H |
8 #define _FWL_MONTHCALENDAR_H | 8 #define _FWL_MONTHCALENDAR_H |
9 class IFWL_MonthCalendarDP; | 9 class IFWL_MonthCalendarDP; |
10 class IFWL_MonthCalendar; | 10 class IFWL_MonthCalendar; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 #define FWL_MCCAPACITY_September FWL_WGTCAPACITY_MAX + 20 | 90 #define FWL_MCCAPACITY_September FWL_WGTCAPACITY_MAX + 20 |
91 #define FWL_MCCAPACITY_October FWL_WGTCAPACITY_MAX + 21 | 91 #define FWL_MCCAPACITY_October FWL_WGTCAPACITY_MAX + 21 |
92 #define FWL_MCCAPACITY_November FWL_WGTCAPACITY_MAX + 22 | 92 #define FWL_MCCAPACITY_November FWL_WGTCAPACITY_MAX + 22 |
93 #define FWL_MCCAPACITY_December FWL_WGTCAPACITY_MAX + 23 | 93 #define FWL_MCCAPACITY_December FWL_WGTCAPACITY_MAX + 23 |
94 #define FWL_MCCAPACITY_Today FWL_WGTCAPACITY_MAX + 24 | 94 #define FWL_MCCAPACITY_Today FWL_WGTCAPACITY_MAX + 24 |
95 #define FWL_EVENT_MCD_DATESELECTED L"FWL_EVENT_MCD_DateSelected" | 95 #define FWL_EVENT_MCD_DATESELECTED L"FWL_EVENT_MCD_DateSelected" |
96 #define FWL_EVT_MCD_DateChanged L"FWL_EVENT_MCD_DateCh
anged" | 96 #define FWL_EVT_MCD_DateChanged L"FWL_EVENT_MCD_DateCh
anged" |
97 #define FWL_NOTEHASH_MCD_DATASELECTED 1085596932 | 97 #define FWL_NOTEHASH_MCD_DATASELECTED 1085596932 |
98 #define FWL_EVTHASH_MCD_DateChanged 54212227 | 98 #define FWL_EVTHASH_MCD_DateChanged 54212227 |
99 BEGIN_FWL_EVENT_DEF(CFWL_Event_McdDateSelected, FWL_NOTEHASH_MCD_DATASELECTED) | 99 BEGIN_FWL_EVENT_DEF(CFWL_Event_McdDateSelected, FWL_NOTEHASH_MCD_DATASELECTED) |
100 FX_INT32 m_iStartDay; | 100 int32_t m_iStartDay; |
101 FX_INT32 m_iEndDay; | 101 int32_t m_iEndDay; |
102 END_FWL_EVENT_DEF | 102 END_FWL_EVENT_DEF |
103 BEGIN_FWL_EVENT_DEF(CFWL_EventMcdDateChanged, FWL_EVTHASH_MCD_DateChanged) | 103 BEGIN_FWL_EVENT_DEF(CFWL_EventMcdDateChanged, FWL_EVTHASH_MCD_DateChanged) |
104 FX_INT32 m_iOldYear; | 104 int32_t m_iOldYear; |
105 FX_INT32 m_iOldMonth; | 105 int32_t m_iOldMonth; |
106 FX_INT32 m_iStartDay; | 106 int32_t m_iStartDay; |
107 FX_INT32 m_iEndDay; | 107 int32_t m_iEndDay; |
108 END_FWL_EVENT_DEF | 108 END_FWL_EVENT_DEF |
109 class IFWL_MonthCalendarDP : public IFWL_DataProvider | 109 class IFWL_MonthCalendarDP : public IFWL_DataProvider |
110 { | 110 { |
111 public: | 111 public: |
112 virtual FX_INT32 » GetCurDay(IFWL_Widget *pWidget) = 0; | 112 virtual int32_t »GetCurDay(IFWL_Widget *pWidget) = 0; |
113 virtual FX_INT32» » GetCurMonth(IFWL_Widget *pWidget) = 0; | 113 virtual int32_t» » GetCurMonth(IFWL_Widget *pWidget) = 0; |
114 virtual FX_INT32» » GetCurYear(IFWL_Widget *pWidget) = 0; | 114 virtual int32_t» » GetCurYear(IFWL_Widget *pWidget) = 0; |
115 }; | 115 }; |
116 class IFWL_MonthCalendar : public IFWL_Widget | 116 class IFWL_MonthCalendar : public IFWL_Widget |
117 { | 117 { |
118 public: | 118 public: |
119 static IFWL_MonthCalendar* Create(); | 119 static IFWL_MonthCalendar* Create(); |
120 | 120 |
121 FWL_ERR Initialize(IFWL_Widget *pOuter = NULL); | 121 FWL_ERR Initialize(IFWL_Widget *pOuter = NULL); |
122 FWL_ERR Initialize(const CFWL_WidgetImpProperties &properties, I
FWL_Widget *pOuter = NULL); | 122 FWL_ERR Initialize(const CFWL_WidgetImpProperties &properties, I
FWL_Widget *pOuter = NULL); |
123 FX_INT32» CountSelect(); | 123 int32_t» CountSelect(); |
124 FX_BOOL» » GetSelect(FX_INT32 &iYear, FX_INT32 &iMonth, FX_INT32 &i
Day, FX_INT32 nIndex = 0); | 124 FX_BOOL» » GetSelect(int32_t &iYear, int32_t &iMonth, int32_t &iDay
, int32_t nIndex = 0); |
125 FX_BOOL» » SetSelect(FX_INT32 iYear, FX_INT32 iMonth, FX_INT32 iDay
); | 125 FX_BOOL» » SetSelect(int32_t iYear, int32_t iMonth, int32_t iDay); |
126 protected: | 126 protected: |
127 IFWL_MonthCalendar(); | 127 IFWL_MonthCalendar(); |
128 virtual ~IFWL_MonthCalendar(); | 128 virtual ~IFWL_MonthCalendar(); |
129 }; | 129 }; |
130 #endif | 130 #endif |
OLD | NEW |