| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 class IFWL_DateTimePickerDP : public IFWL_DataProvider { | 55 class IFWL_DateTimePickerDP : public IFWL_DataProvider { |
| 56 public: | 56 public: |
| 57 virtual FWL_Error GetToday(IFWL_Widget* pWidget, | 57 virtual FWL_Error GetToday(IFWL_Widget* pWidget, |
| 58 int32_t& iYear, | 58 int32_t& iYear, |
| 59 int32_t& iMonth, | 59 int32_t& iMonth, |
| 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 CFWL_WidgetImpProperties& properties); | 65 explicit IFWL_DateTimePicker(const IFWL_App* app, |
| 66 const CFWL_WidgetImpProperties& properties); |
| 66 ~IFWL_DateTimePicker() override; | 67 ~IFWL_DateTimePicker() override; |
| 67 | 68 |
| 68 // IFWL_Widget | 69 // IFWL_Widget |
| 70 void Initialize() override; |
| 71 void Finalize() override; |
| 69 FWL_Type GetClassID() const override; | 72 FWL_Type GetClassID() const override; |
| 70 FWL_Error Initialize() override; | |
| 71 void Finalize() override; | |
| 72 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 73 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
| 73 FWL_Error Update() override; | 74 FWL_Error Update() override; |
| 74 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 75 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| 75 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 76 FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
| 76 const CFX_Matrix* pMatrix = nullptr) override; | 77 const CFX_Matrix* pMatrix = nullptr) override; |
| 77 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pTP) override; | 78 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pTP) override; |
| 78 | 79 |
| 79 FWL_Error GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay); | 80 FWL_Error GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay); |
| 80 FWL_Error SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); | 81 FWL_Error SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); |
| 81 FWL_Error SetEditText(const CFX_WideString& wsText); | 82 FWL_Error SetEditText(const CFX_WideString& wsText); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 void OnMouseMove(CFWL_MsgMouse* pMsg); | 186 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 186 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 187 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 187 | 188 |
| 188 IFWL_DateTimePicker* m_pOwner; | 189 IFWL_DateTimePicker* m_pOwner; |
| 189 | 190 |
| 190 private: | 191 private: |
| 191 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); | 192 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ | 195 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ |
| OLD | NEW |