| 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 <memory> | 10 #include <memory> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 56 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
| 57 void Update() override; | 57 void Update() override; |
| 58 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 58 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| 59 void DrawWidget(CFX_Graphics* pGraphics, | 59 void DrawWidget(CFX_Graphics* pGraphics, |
| 60 const CFX_Matrix* pMatrix = nullptr) override; | 60 const CFX_Matrix* pMatrix = nullptr) override; |
| 61 void SetThemeProvider(IFWL_ThemeProvider* pTP) override; | 61 void SetThemeProvider(IFWL_ThemeProvider* pTP) override; |
| 62 void OnProcessMessage(CFWL_Message* pMessage) override; | 62 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 63 void OnDrawWidget(CFX_Graphics* pGraphics, | 63 void OnDrawWidget(CFX_Graphics* pGraphics, |
| 64 const CFX_Matrix* pMatrix) override; | 64 const CFX_Matrix* pMatrix) override; |
| 65 | 65 |
| 66 // IFWL_Widget::DataProvider | |
| 67 void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override; | |
| 68 | |
| 69 // IFWL_MonthCalendar::DataProvider | 66 // IFWL_MonthCalendar::DataProvider |
| 70 int32_t GetCurDay(IFWL_Widget* pWidget) override; | 67 int32_t GetCurDay(IFWL_Widget* pWidget) override; |
| 71 int32_t GetCurMonth(IFWL_Widget* pWidget) override; | 68 int32_t GetCurMonth(IFWL_Widget* pWidget) override; |
| 72 int32_t GetCurYear(IFWL_Widget* pWidget) override; | 69 int32_t GetCurYear(IFWL_Widget* pWidget) override; |
| 73 | 70 |
| 74 void GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay); | 71 void GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay); |
| 75 void SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); | 72 void SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); |
| 76 | 73 |
| 77 void SetEditText(const CFX_WideString& wsText); | 74 void SetEditText(const CFX_WideString& wsText); |
| 78 void GetEditText(CFX_WideString& wsText, | 75 void GetEditText(CFX_WideString& wsText, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 int32_t m_iCurMonth; | 128 int32_t m_iCurMonth; |
| 132 int32_t m_iCurDay; | 129 int32_t m_iCurDay; |
| 133 bool m_bLBtnDown; | 130 bool m_bLBtnDown; |
| 134 std::unique_ptr<IFWL_DateTimeEdit> m_pEdit; | 131 std::unique_ptr<IFWL_DateTimeEdit> m_pEdit; |
| 135 std::unique_ptr<IFWL_MonthCalendar> m_pMonthCal; | 132 std::unique_ptr<IFWL_MonthCalendar> m_pMonthCal; |
| 136 std::unique_ptr<IFWL_FormProxy> m_pForm; | 133 std::unique_ptr<IFWL_FormProxy> m_pForm; |
| 137 FX_FLOAT m_fBtn; | 134 FX_FLOAT m_fBtn; |
| 138 }; | 135 }; |
| 139 | 136 |
| 140 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ | 137 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ |
| OLD | NEW |