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 _FWL_DATETIMEPICKER_H | 7 #ifndef _FWL_DATETIMEPICKER_H |
8 #define _FWL_DATETIMEPICKER_H | 8 #define _FWL_DATETIMEPICKER_H |
9 class CFWL_WidgetImpProperties; | 9 class CFWL_WidgetImpProperties; |
10 class IFWL_Widget; | 10 class IFWL_Widget; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #define FWL_EVT_DTP_SelectChanged L"FWL_EVENT_DTP_SelectCh
anged" | 47 #define FWL_EVT_DTP_SelectChanged L"FWL_EVENT_DTP_SelectCh
anged" |
48 #define FWL_EVTHASH_DTP_SelectChanged 1589616858 | 48 #define FWL_EVTHASH_DTP_SelectChanged 1589616858 |
49 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpDropDown, FWL_EVTHASH_DTP_DropDown) | 49 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpDropDown, FWL_EVTHASH_DTP_DropDown) |
50 END_FWL_EVENT_DEF | 50 END_FWL_EVENT_DEF |
51 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, FWL_EVTHASH_DTP_CloseUp) | 51 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, FWL_EVTHASH_DTP_CloseUp) |
52 END_FWL_EVENT_DEF | 52 END_FWL_EVENT_DEF |
53 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, FWL_EVTHASH_DTP_EditChanged) | 53 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, FWL_EVTHASH_DTP_EditChanged) |
54 CFX_WideString m_wsText; | 54 CFX_WideString m_wsText; |
55 END_FWL_EVENT_DEF | 55 END_FWL_EVENT_DEF |
56 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpHoverChanged, FWL_EVTHASH_DTP_HoverChanged) | 56 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpHoverChanged, FWL_EVTHASH_DTP_HoverChanged) |
57 FX_INT32 hoverday; | 57 int32_t hoverday; |
58 END_FWL_EVENT_DEF | 58 END_FWL_EVENT_DEF |
59 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, FWL_EVTHASH_DTP_SelectChanged) | 59 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, FWL_EVTHASH_DTP_SelectChanged) |
60 FX_INT32 iYear; | 60 int32_t iYear; |
61 FX_INT32 iMonth; | 61 int32_t iMonth; |
62 FX_INT32 iDay; | 62 int32_t iDay; |
63 END_FWL_EVENT_DEF | 63 END_FWL_EVENT_DEF |
64 class IFWL_DateTimePickerDP : public IFWL_DataProvider | 64 class IFWL_DateTimePickerDP : public IFWL_DataProvider |
65 { | 65 { |
66 public: | 66 public: |
67 virtual FWL_ERR GetToday(IFWL_Widget *pWidget, FX_INT32 &iYear, FX_INT32 &iM
onth, FX_INT32 &iDay) = 0; | 67 virtual FWL_ERR GetToday(IFWL_Widget *pWidget, int32_t &iYear, int32_t &iMon
th, int32_t &iDay) = 0; |
68 }; | 68 }; |
69 class IFWL_DateTimePicker : public IFWL_Widget | 69 class IFWL_DateTimePicker : public IFWL_Widget |
70 { | 70 { |
71 public: | 71 public: |
72 static IFWL_DateTimePicker* Create(); | 72 static IFWL_DateTimePicker* Create(); |
73 FWL_ERR Initialize(IFWL_Widget *pOuter = NULL); | 73 FWL_ERR Initialize(IFWL_Widget *pOuter = NULL); |
74 FWL_ERR Initialize(const CFWL_WidgetImpProperties &properties, I
FWL_Widget *pOuter = NULL); | 74 FWL_ERR Initialize(const CFWL_WidgetImpProperties &properties, I
FWL_Widget *pOuter = NULL); |
75 FWL_ERR» » GetCurSel(FX_INT32 &iYear, FX_INT32 &iMonth, FX_INT32 &i
Day); | 75 FWL_ERR» » GetCurSel(int32_t &iYear, int32_t &iMonth, int32_t &iDay
); |
76 FWL_ERR» » SetCurSel(FX_INT32 iYear, FX_INT32 iMonth, FX_INT32 iDay
); | 76 FWL_ERR» » SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); |
77 FWL_ERR SetEditText(const CFX_WideString &wsText); | 77 FWL_ERR SetEditText(const CFX_WideString &wsText); |
78 FWL_ERR» » GetEditText(CFX_WideString &wsText, FX_INT32 nStart = 0,
FX_INT32 nCount = -1) const; | 78 FWL_ERR» » GetEditText(CFX_WideString &wsText, int32_t nStart = 0,
int32_t nCount = -1) const; |
79 FX_INT32» CountSelRanges(); | 79 int32_t» CountSelRanges(); |
80 FX_INT32» GetSelRange(FX_INT32 nIndex, FX_INT32 &nStart); | 80 int32_t» GetSelRange(int32_t nIndex, int32_t &nStart); |
81 FX_BOOL CanUndo(); | 81 FX_BOOL CanUndo(); |
82 FX_BOOL CanRedo(); | 82 FX_BOOL CanRedo(); |
83 FX_BOOL Undo(); | 83 FX_BOOL Undo(); |
84 FX_BOOL Redo(); | 84 FX_BOOL Redo(); |
85 FX_BOOL CanCopy(); | 85 FX_BOOL CanCopy(); |
86 FX_BOOL CanCut(); | 86 FX_BOOL CanCut(); |
87 FX_BOOL CanSelectAll(); | 87 FX_BOOL CanSelectAll(); |
88 FX_BOOL Copy(CFX_WideString &wsCopy); | 88 FX_BOOL Copy(CFX_WideString &wsCopy); |
89 FX_BOOL Cut(CFX_WideString &wsCut); | 89 FX_BOOL Cut(CFX_WideString &wsCut); |
90 FX_BOOL Paste(const CFX_WideString &wsPaste); | 90 FX_BOOL Paste(const CFX_WideString &wsPaste); |
91 FX_BOOL SelectAll(); | 91 FX_BOOL SelectAll(); |
92 FX_BOOL Delete(); | 92 FX_BOOL Delete(); |
93 FX_BOOL DeSelect(); | 93 FX_BOOL DeSelect(); |
94 FWL_ERR GetBBox(CFX_RectF &rect); | 94 FWL_ERR GetBBox(CFX_RectF &rect); |
95 FWL_ERR» » SetEditLimit(FX_INT32 nLimit); | 95 FWL_ERR» » SetEditLimit(int32_t nLimit); |
96 FWL_ERR ModifyEditStylesEx(FX_DWORD dwStylesExAdded, FX_DWORD dw
StylesExRemoved); | 96 FWL_ERR ModifyEditStylesEx(FX_DWORD dwStylesExAdded, FX_DWORD dw
StylesExRemoved); |
97 protected: | 97 protected: |
98 IFWL_DateTimePicker(); | 98 IFWL_DateTimePicker(); |
99 virtual ~IFWL_DateTimePicker(); | 99 virtual ~IFWL_DateTimePicker(); |
100 }; | 100 }; |
101 #endif | 101 #endif |
OLD | NEW |