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 23 matching lines...) Expand all Loading... |
34 class IFWL_FormProxy; | 34 class IFWL_FormProxy; |
35 | 35 |
36 FWL_EVENT_DEF(CFWL_Event_DtpDropDown, CFWL_EventType::DropDown) | 36 FWL_EVENT_DEF(CFWL_Event_DtpDropDown, CFWL_EventType::DropDown) |
37 | 37 |
38 FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, CFWL_EventType::CloseUp) | 38 FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, CFWL_EventType::CloseUp) |
39 | 39 |
40 FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, | 40 FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, |
41 CFWL_EventType::EditChanged, | 41 CFWL_EventType::EditChanged, |
42 CFX_WideString m_wsText;) | 42 CFX_WideString m_wsText;) |
43 | 43 |
44 FWL_EVENT_DEF(CFWL_Event_DtpHoverChanged, | |
45 CFWL_EventType::HoverChanged, | |
46 int32_t hoverday;) | |
47 | |
48 FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, | 44 FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, |
49 CFWL_EventType::SelectChanged, | 45 CFWL_EventType::SelectChanged, |
50 int32_t iYear; | 46 int32_t iYear; |
51 int32_t iMonth; | 47 int32_t iMonth; |
52 int32_t iDay;) | 48 int32_t iDay;) |
53 | 49 |
54 class IFWL_DateTimePickerDP : public IFWL_DataProvider { | 50 class IFWL_DateTimePickerDP : public IFWL_DataProvider { |
55 public: | 51 public: |
56 virtual void GetToday(IFWL_Widget* pWidget, | 52 virtual void GetToday(IFWL_Widget* pWidget, |
57 int32_t& iYear, | 53 int32_t& iYear, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 int32_t m_iCurMonth; | 140 int32_t m_iCurMonth; |
145 int32_t m_iCurDay; | 141 int32_t m_iCurDay; |
146 bool m_bLBtnDown; | 142 bool m_bLBtnDown; |
147 std::unique_ptr<IFWL_DateTimeEdit> m_pEdit; | 143 std::unique_ptr<IFWL_DateTimeEdit> m_pEdit; |
148 std::unique_ptr<IFWL_MonthCalendar> m_pMonthCal; | 144 std::unique_ptr<IFWL_MonthCalendar> m_pMonthCal; |
149 std::unique_ptr<IFWL_FormProxy> m_pForm; | 145 std::unique_ptr<IFWL_FormProxy> m_pForm; |
150 FX_FLOAT m_fBtn; | 146 FX_FLOAT m_fBtn; |
151 }; | 147 }; |
152 | 148 |
153 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ | 149 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ |
OLD | NEW |