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 16 matching lines...) Expand all Loading... |
27 #define FWL_STYLEEXT_DTP_EditVFar (2L << 6) | 27 #define FWL_STYLEEXT_DTP_EditVFar (2L << 6) |
28 #define FWL_STYLEEXT_DTP_EditJustified (1L << 8) | 28 #define FWL_STYLEEXT_DTP_EditJustified (1L << 8) |
29 #define FWL_STYLEEXT_DTP_EditDistributed (2L << 8) | 29 #define FWL_STYLEEXT_DTP_EditDistributed (2L << 8) |
30 #define FWL_STYLEEXT_DTP_EditHAlignMask (3L << 4) | 30 #define FWL_STYLEEXT_DTP_EditHAlignMask (3L << 4) |
31 #define FWL_STYLEEXT_DTP_EditVAlignMask (3L << 6) | 31 #define FWL_STYLEEXT_DTP_EditVAlignMask (3L << 6) |
32 #define FWL_STYLEEXT_DTP_EditHAlignModeMask (3L << 8) | 32 #define FWL_STYLEEXT_DTP_EditHAlignModeMask (3L << 8) |
33 | 33 |
34 class IFWL_DateTimeEdit; | 34 class IFWL_DateTimeEdit; |
35 class IFWL_FormProxy; | 35 class IFWL_FormProxy; |
36 | 36 |
37 FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, | |
38 CFWL_EventType::EditChanged, | |
39 CFX_WideString m_wsText;) | |
40 | |
41 FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, | 37 FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, |
42 CFWL_EventType::SelectChanged, | 38 CFWL_EventType::SelectChanged, |
43 int32_t iYear; | 39 int32_t iYear; |
44 int32_t iMonth; | 40 int32_t iMonth; |
45 int32_t iDay;) | 41 int32_t iDay;) |
46 | 42 |
47 class IFWL_DateTimePickerDP : public IFWL_DataProvider { | 43 class IFWL_DateTimePickerDP : public IFWL_DataProvider { |
48 public: | 44 public: |
49 virtual void GetToday(IFWL_Widget* pWidget, | 45 virtual void GetToday(IFWL_Widget* pWidget, |
50 int32_t& iYear, | 46 int32_t& iYear, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 int32_t m_iCurMonth; | 135 int32_t m_iCurMonth; |
140 int32_t m_iCurDay; | 136 int32_t m_iCurDay; |
141 bool m_bLBtnDown; | 137 bool m_bLBtnDown; |
142 std::unique_ptr<IFWL_DateTimeEdit> m_pEdit; | 138 std::unique_ptr<IFWL_DateTimeEdit> m_pEdit; |
143 std::unique_ptr<IFWL_MonthCalendar> m_pMonthCal; | 139 std::unique_ptr<IFWL_MonthCalendar> m_pMonthCal; |
144 std::unique_ptr<IFWL_FormProxy> m_pForm; | 140 std::unique_ptr<IFWL_FormProxy> m_pForm; |
145 FX_FLOAT m_fBtn; | 141 FX_FLOAT m_fBtn; |
146 }; | 142 }; |
147 | 143 |
148 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ | 144 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ |
OLD | NEW |