| 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_DATETIMEPICKER_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ |
| 8 #define XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ | 8 #define XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/cfwl_event.h" | 10 #include "xfa/fwl/core/cfwl_event.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 int32_t& iDay) = 0; | 60 int32_t& iDay) = 0; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 class IFWL_DateTimePicker : public IFWL_Widget { | 63 class IFWL_DateTimePicker : public IFWL_Widget { |
| 64 public: | 64 public: |
| 65 explicit IFWL_DateTimePicker(const IFWL_App* app, | 65 explicit IFWL_DateTimePicker(const IFWL_App* app, |
| 66 const CFWL_WidgetImpProperties& properties); | 66 const CFWL_WidgetImpProperties& properties); |
| 67 ~IFWL_DateTimePicker() override; | 67 ~IFWL_DateTimePicker() override; |
| 68 | 68 |
| 69 // IFWL_Widget | 69 // IFWL_Widget |
| 70 void Initialize() override; | |
| 71 void Finalize() override; | |
| 72 FWL_Type GetClassID() const override; | 70 FWL_Type GetClassID() const override; |
| 73 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 71 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
| 74 FWL_Error Update() override; | 72 FWL_Error Update() override; |
| 75 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 73 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| 76 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 74 FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
| 77 const CFX_Matrix* pMatrix = nullptr) override; | 75 const CFX_Matrix* pMatrix = nullptr) override; |
| 78 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pTP) override; | 76 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pTP) override; |
| 79 | 77 |
| 80 FWL_Error GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay); | 78 FWL_Error GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay); |
| 81 FWL_Error SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); | 79 FWL_Error SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 void OnMouseMove(CFWL_MsgMouse* pMsg); | 184 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 187 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 185 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 188 | 186 |
| 189 IFWL_DateTimePicker* m_pOwner; | 187 IFWL_DateTimePicker* m_pOwner; |
| 190 | 188 |
| 191 private: | 189 private: |
| 192 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); | 190 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); |
| 193 }; | 191 }; |
| 194 | 192 |
| 195 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ | 193 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ |
| OLD | NEW |