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_DtpSelectChanged, | |
38 CFWL_EventType::SelectChanged, | |
39 int32_t iYear; | |
40 int32_t iMonth; | |
41 int32_t iDay;) | |
42 | |
43 class IFWL_DateTimePickerDP : public IFWL_DataProvider { | 37 class IFWL_DateTimePickerDP : public IFWL_DataProvider { |
44 public: | 38 public: |
45 virtual void GetToday(IFWL_Widget* pWidget, | 39 virtual void GetToday(IFWL_Widget* pWidget, |
46 int32_t& iYear, | 40 int32_t& iYear, |
47 int32_t& iMonth, | 41 int32_t& iMonth, |
48 int32_t& iDay) = 0; | 42 int32_t& iDay) = 0; |
49 }; | 43 }; |
50 | 44 |
51 class IFWL_DateTimePicker : public IFWL_Widget, public IFWL_MonthCalendarDP { | 45 class IFWL_DateTimePicker : public IFWL_Widget, public IFWL_MonthCalendarDP { |
52 public: | 46 public: |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 int32_t m_iCurMonth; | 129 int32_t m_iCurMonth; |
136 int32_t m_iCurDay; | 130 int32_t m_iCurDay; |
137 bool m_bLBtnDown; | 131 bool m_bLBtnDown; |
138 std::unique_ptr<IFWL_DateTimeEdit> m_pEdit; | 132 std::unique_ptr<IFWL_DateTimeEdit> m_pEdit; |
139 std::unique_ptr<IFWL_MonthCalendar> m_pMonthCal; | 133 std::unique_ptr<IFWL_MonthCalendar> m_pMonthCal; |
140 std::unique_ptr<IFWL_FormProxy> m_pForm; | 134 std::unique_ptr<IFWL_FormProxy> m_pForm; |
141 FX_FLOAT m_fBtn; | 135 FX_FLOAT m_fBtn; |
142 }; | 136 }; |
143 | 137 |
144 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ | 138 #endif // XFA_FWL_CORE_IFWL_DATETIMEPICKER_H_ |
OLD | NEW |