| 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 XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ |
| 8 #define XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ | 8 #define XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ |
| 9 | 9 |
| 10 #include "xfa/fgas/localization/fgas_datetime.h" | 10 #include "xfa/fgas/localization/fgas_datetime.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 class IFWL_MonthCalendar : public IFWL_Widget { | 53 class IFWL_MonthCalendar : public IFWL_Widget { |
| 54 public: | 54 public: |
| 55 IFWL_MonthCalendar(const IFWL_App* app, | 55 IFWL_MonthCalendar(const IFWL_App* app, |
| 56 const CFWL_WidgetImpProperties& properties, | 56 const CFWL_WidgetImpProperties& properties, |
| 57 IFWL_Widget* pOuter); | 57 IFWL_Widget* pOuter); |
| 58 ~IFWL_MonthCalendar() override; | 58 ~IFWL_MonthCalendar() override; |
| 59 | 59 |
| 60 // FWL_WidgetImp | 60 // FWL_WidgetImp |
| 61 void Initialize() override; | |
| 62 void Finalize() override; | |
| 63 FWL_Type GetClassID() const override; | 61 FWL_Type GetClassID() const override; |
| 64 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 62 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
| 65 FWL_Error Update() override; | 63 FWL_Error Update() override; |
| 66 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 64 FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
| 67 const CFX_Matrix* pMatrix = nullptr) override; | 65 const CFX_Matrix* pMatrix = nullptr) override; |
| 68 int32_t CountSelect(); | 66 int32_t CountSelect(); |
| 69 FX_BOOL GetSelect(int32_t& iYear, | 67 FX_BOOL GetSelect(int32_t& iYear, |
| 70 int32_t& iMonth, | 68 int32_t& iMonth, |
| 71 int32_t& iDay, | 69 int32_t& iDay, |
| 72 int32_t nIndex = 0); | 70 int32_t nIndex = 0); |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 void OnActivate(CFWL_Message* pMsg); | 265 void OnActivate(CFWL_Message* pMsg); |
| 268 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); | 266 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); |
| 269 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 267 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
| 270 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 268 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
| 271 void OnMouseMove(CFWL_MsgMouse* pMsg); | 269 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 272 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 270 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 273 IFWL_MonthCalendar* m_pOwner; | 271 IFWL_MonthCalendar* m_pOwner; |
| 274 }; | 272 }; |
| 275 | 273 |
| 276 #endif // XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ | 274 #endif // XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ |
| OLD | NEW |