| 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_BASEWIDGET_IFWL_DATETIMEPICKER_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ |
| 8 #define XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ | 8 #define XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/ifwl_widget.h" | 10 #include "xfa/fwl/core/ifwl_widget.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #define FWL_STYLEEXT_DTP_EditHCenter (1L << 4) | 23 #define FWL_STYLEEXT_DTP_EditHCenter (1L << 4) |
| 24 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4) | 24 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4) |
| 25 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6) | 25 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6) |
| 26 #define FWL_STYLEEXT_DTP_EditVCenter (1L << 6) | 26 #define FWL_STYLEEXT_DTP_EditVCenter (1L << 6) |
| 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 // TODO(dsinclair): Event hash is hash of string, cleanup. pdfium:474 | |
| 34 #define FWL_EVTHASH_DTP_DropDown 264728733 | |
| 35 #define FWL_EVTHASH_DTP_CloseUp 4280973803 | |
| 36 #define FWL_EVTHASH_DTP_EditChanged 4009610944 | |
| 37 #define FWL_EVTHASH_DTP_HoverChanged 686674750 | |
| 38 #define FWL_EVTHASH_DTP_SelectChanged 1589616858 | |
| 39 | 33 |
| 40 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpDropDown, FWL_EVTHASH_DTP_DropDown) | 34 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpDropDown, CFWL_EventType::DropDown) |
| 41 END_FWL_EVENT_DEF | 35 END_FWL_EVENT_DEF |
| 42 | 36 |
| 43 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, FWL_EVTHASH_DTP_CloseUp) | 37 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, CFWL_EventType::CloseUp) |
| 44 END_FWL_EVENT_DEF | 38 END_FWL_EVENT_DEF |
| 45 | 39 |
| 46 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, FWL_EVTHASH_DTP_EditChanged) | 40 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, CFWL_EventType::EditChanged) |
| 47 CFX_WideString m_wsText; | 41 CFX_WideString m_wsText; |
| 48 END_FWL_EVENT_DEF | 42 END_FWL_EVENT_DEF |
| 49 | 43 |
| 50 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpHoverChanged, FWL_EVTHASH_DTP_HoverChanged) | 44 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpHoverChanged, CFWL_EventType::HoverChanged) |
| 51 int32_t hoverday; | 45 int32_t hoverday; |
| 52 END_FWL_EVENT_DEF | 46 END_FWL_EVENT_DEF |
| 53 | 47 |
| 54 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, FWL_EVTHASH_DTP_SelectChanged) | 48 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, CFWL_EventType::SelectChanged) |
| 55 int32_t iYear; | 49 int32_t iYear; |
| 56 int32_t iMonth; | 50 int32_t iMonth; |
| 57 int32_t iDay; | 51 int32_t iDay; |
| 58 END_FWL_EVENT_DEF | 52 END_FWL_EVENT_DEF |
| 59 | 53 |
| 60 class IFWL_DateTimePickerDP : public IFWL_DataProvider { | 54 class IFWL_DateTimePickerDP : public IFWL_DataProvider { |
| 61 public: | 55 public: |
| 62 virtual FWL_ERR GetToday(IFWL_Widget* pWidget, | 56 virtual FWL_ERR GetToday(IFWL_Widget* pWidget, |
| 63 int32_t& iYear, | 57 int32_t& iYear, |
| 64 int32_t& iMonth, | 58 int32_t& iMonth, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 94 FWL_ERR GetBBox(CFX_RectF& rect); | 88 FWL_ERR GetBBox(CFX_RectF& rect); |
| 95 FWL_ERR SetEditLimit(int32_t nLimit); | 89 FWL_ERR SetEditLimit(int32_t nLimit); |
| 96 FWL_ERR ModifyEditStylesEx(uint32_t dwStylesExAdded, | 90 FWL_ERR ModifyEditStylesEx(uint32_t dwStylesExAdded, |
| 97 uint32_t dwStylesExRemoved); | 91 uint32_t dwStylesExRemoved); |
| 98 | 92 |
| 99 protected: | 93 protected: |
| 100 IFWL_DateTimePicker(); | 94 IFWL_DateTimePicker(); |
| 101 }; | 95 }; |
| 102 | 96 |
| 103 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ | 97 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ |
| OLD | NEW |