| 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_CFWL_MONTHCALENDAR_H_ |
| 8 #define XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ | 8 #define XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "xfa/fgas/localization/fgas_datetime.h" | 12 #include "xfa/fgas/localization/fgas_datetime.h" |
| 13 #include "xfa/fwl/core/cfwl_event.h" | 13 #include "xfa/fwl/core/cfwl_event.h" |
| 14 #include "xfa/fwl/core/cfwl_widgetproperties.h" | 14 #include "xfa/fwl/core/cfwl_widgetproperties.h" |
| 15 #include "xfa/fwl/core/ifwl_widget.h" | 15 #include "xfa/fwl/core/ifwl_widget.h" |
| 16 | 16 |
| 17 #define FWL_STYLEEXT_MCD_MultiSelect (1L << 0) | 17 #define FWL_STYLEEXT_MCD_MultiSelect (1L << 0) |
| 18 #define FWL_STYLEEXT_MCD_NoToday (1L << 1) | 18 #define FWL_STYLEEXT_MCD_NoToday (1L << 1) |
| 19 #define FWL_STYLEEXT_MCD_NoTodayCircle (1L << 2) | 19 #define FWL_STYLEEXT_MCD_NoTodayCircle (1L << 2) |
| 20 #define FWL_STYLEEXT_MCD_WeekNumbers (1L << 3) | 20 #define FWL_STYLEEXT_MCD_WeekNumbers (1L << 3) |
| 21 #define FWL_ITEMSTATE_MCD_Nomal (0L << 0) | 21 #define FWL_ITEMSTATE_MCD_Nomal (0L << 0) |
| 22 #define FWL_ITEMSTATE_MCD_Flag (1L << 0) | 22 #define FWL_ITEMSTATE_MCD_Flag (1L << 0) |
| 23 #define FWL_ITEMSTATE_MCD_Selected (1L << 1) | 23 #define FWL_ITEMSTATE_MCD_Selected (1L << 1) |
| 24 #define FWL_ITEMSTATE_MCD_Focused (1L << 2) | 24 #define FWL_ITEMSTATE_MCD_Focused (1L << 2) |
| 25 | 25 |
| 26 class CFWL_MsgMouse; | 26 class CFWL_MsgMouse; |
| 27 class IFWL_Widget; | 27 class IFWL_Widget; |
| 28 | 28 |
| 29 class IFWL_MonthCalendar : public IFWL_Widget { | 29 class CFWL_MonthCalendar : public IFWL_Widget { |
| 30 public: | 30 public: |
| 31 IFWL_MonthCalendar(const CFWL_App* app, | 31 CFWL_MonthCalendar(const CFWL_App* app, |
| 32 std::unique_ptr<CFWL_WidgetProperties> properties, | 32 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 33 IFWL_Widget* pOuter); | 33 IFWL_Widget* pOuter); |
| 34 ~IFWL_MonthCalendar() override; | 34 ~CFWL_MonthCalendar() override; |
| 35 | 35 |
| 36 // FWL_WidgetImp | 36 // FWL_WidgetImp |
| 37 FWL_Type GetClassID() const override; | 37 FWL_Type GetClassID() const override; |
| 38 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 38 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
| 39 void Update() override; | 39 void Update() override; |
| 40 void DrawWidget(CFX_Graphics* pGraphics, | 40 void DrawWidget(CFX_Graphics* pGraphics, |
| 41 const CFX_Matrix* pMatrix = nullptr) override; | 41 const CFX_Matrix* pMatrix = nullptr) override; |
| 42 void OnProcessMessage(CFWL_Message* pMessage) override; | 42 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 43 void OnDrawWidget(CFX_Graphics* pGraphics, | 43 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 44 const CFX_Matrix* pMatrix) override; | 44 const CFX_Matrix* pMatrix) override; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 FX_FLOAT m_fDateCellWid; | 218 FX_FLOAT m_fDateCellWid; |
| 219 FX_FLOAT m_fDateCellHei; | 219 FX_FLOAT m_fDateCellHei; |
| 220 FX_FLOAT m_fTodayWid; | 220 FX_FLOAT m_fTodayWid; |
| 221 FX_FLOAT m_fTodayHei; | 221 FX_FLOAT m_fTodayHei; |
| 222 FX_FLOAT m_fTodayFlagWid; | 222 FX_FLOAT m_fTodayFlagWid; |
| 223 FX_FLOAT m_fMCWid; | 223 FX_FLOAT m_fMCWid; |
| 224 FX_FLOAT m_fMCHei; | 224 FX_FLOAT m_fMCHei; |
| 225 bool m_bFlag; | 225 bool m_bFlag; |
| 226 }; | 226 }; |
| 227 | 227 |
| 228 #endif // XFA_FWL_CORE_IFWL_MONTHCALENDAR_H_ | 228 #endif // XFA_FWL_CORE_CFWL_MONTHCALENDAR_H_ |
| OLD | NEW |