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 20 matching lines...) Expand all Loading... |
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 #define FWL_PART_DTP_Border 1 | 33 #define FWL_PART_DTP_Border 1 |
34 #define FWL_PART_DTP_Edge 2 | 34 #define FWL_PART_DTP_Edge 2 |
35 #define FWL_PART_DTP_Background 3 | 35 #define FWL_PART_DTP_Background 3 |
36 #define FWL_PART_DTP_DropDownButton 4 | 36 #define FWL_PART_DTP_DropDownButton 4 |
37 #define FWL_PARTSTATE_DTP_Normal (0L << 0) | 37 #define FWL_PARTSTATE_DTP_Normal (0L << 0) |
38 #define FWL_PARTSTATE_DTP_Hovered (1L << 0) | 38 #define FWL_PARTSTATE_DTP_Hovered (1L << 0) |
39 #define FWL_PARTSTATE_DTP_Pressed (2L << 0) | 39 #define FWL_PARTSTATE_DTP_Pressed (2L << 0) |
40 #define FWL_PARTSTATE_DTP_Disabled (3L << 0) | 40 #define FWL_PARTSTATE_DTP_Disabled (3L << 0) |
41 #define FWL_EVT_DTP_DropDown L"FWL_EVENT_DTP_DropDown" | 41 // TODO(dsinclair): Event hash is hash of string, cleanup. pdfium:474 |
42 #define FWL_EVTHASH_DTP_DropDown 264728733 | 42 #define FWL_EVTHASH_DTP_DropDown 264728733 |
43 #define FWL_EVT_DTP_CloseUp L"FWL_EVENT_DTP_CloseUp" | |
44 #define FWL_EVTHASH_DTP_CloseUp 4280973803 | 43 #define FWL_EVTHASH_DTP_CloseUp 4280973803 |
45 #define FWL_EVT_DTP_EditChanged L"FWL_EVENT_DTP_EditChanged" | |
46 #define FWL_EVTHASH_DTP_EditChanged 4009610944 | 44 #define FWL_EVTHASH_DTP_EditChanged 4009610944 |
47 #define FWL_EVT_DTP_HoverChanged L"FWL_EVENT_DTP_HoverChanged" | |
48 #define FWL_EVTHASH_DTP_HoverChanged 686674750 | 45 #define FWL_EVTHASH_DTP_HoverChanged 686674750 |
49 #define FWL_EVT_DTP_SelectChanged L"FWL_EVENT_DTP_SelectChanged" | |
50 #define FWL_EVTHASH_DTP_SelectChanged 1589616858 | 46 #define FWL_EVTHASH_DTP_SelectChanged 1589616858 |
51 | 47 |
52 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpDropDown, FWL_EVTHASH_DTP_DropDown) | 48 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpDropDown, FWL_EVTHASH_DTP_DropDown) |
53 END_FWL_EVENT_DEF | 49 END_FWL_EVENT_DEF |
54 | 50 |
55 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, FWL_EVTHASH_DTP_CloseUp) | 51 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, FWL_EVTHASH_DTP_CloseUp) |
56 END_FWL_EVENT_DEF | 52 END_FWL_EVENT_DEF |
57 | 53 |
58 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, FWL_EVTHASH_DTP_EditChanged) | 54 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, FWL_EVTHASH_DTP_EditChanged) |
59 CFX_WideString m_wsText; | 55 CFX_WideString m_wsText; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 FWL_ERR GetBBox(CFX_RectF& rect); | 102 FWL_ERR GetBBox(CFX_RectF& rect); |
107 FWL_ERR SetEditLimit(int32_t nLimit); | 103 FWL_ERR SetEditLimit(int32_t nLimit); |
108 FWL_ERR ModifyEditStylesEx(uint32_t dwStylesExAdded, | 104 FWL_ERR ModifyEditStylesEx(uint32_t dwStylesExAdded, |
109 uint32_t dwStylesExRemoved); | 105 uint32_t dwStylesExRemoved); |
110 | 106 |
111 protected: | 107 protected: |
112 IFWL_DateTimePicker(); | 108 IFWL_DateTimePicker(); |
113 }; | 109 }; |
114 | 110 |
115 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ | 111 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ |
OLD | NEW |