Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: xfa/fwl/basewidget/fwl_datetimepickerimp.h

Issue 1946213003: Remove CLASSHASH defines in favour of an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/basewidget/fwl_comboboximp.cpp ('k') | xfa/fwl/basewidget/fwl_datetimepickerimp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_FWL_DATETIMEPICKERIMP_H_ 7 #ifndef XFA_FWL_BASEWIDGET_FWL_DATETIMEPICKERIMP_H_
8 #define XFA_FWL_BASEWIDGET_FWL_DATETIMEPICKERIMP_H_ 8 #define XFA_FWL_BASEWIDGET_FWL_DATETIMEPICKERIMP_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void DisForm_OnLButtonUpEx(CFWL_MsgMouse* pMsg); 99 void DisForm_OnLButtonUpEx(CFWL_MsgMouse* pMsg);
100 100
101 protected: 101 protected:
102 CFWL_DateTimeCalendar* m_pOwner; 102 CFWL_DateTimeCalendar* m_pOwner;
103 FX_BOOL m_bFlag; 103 FX_BOOL m_bFlag;
104 }; 104 };
105 class CFWL_DateTimePickerImp : public CFWL_WidgetImp { 105 class CFWL_DateTimePickerImp : public CFWL_WidgetImp {
106 public: 106 public:
107 CFWL_DateTimePickerImp(const CFWL_WidgetImpProperties& properties, 107 CFWL_DateTimePickerImp(const CFWL_WidgetImpProperties& properties,
108 IFWL_Widget* pOuter); 108 IFWL_Widget* pOuter);
109 virtual ~CFWL_DateTimePickerImp(); 109 ~CFWL_DateTimePickerImp() override;
110 virtual FWL_Error GetClassName(CFX_WideString& wsClass) const; 110
111 virtual uint32_t GetClassID() const; 111 // CFWL_WidgetImp
112 virtual FWL_Error Initialize(); 112 FWL_Error GetClassName(CFX_WideString& wsClass) const override;
113 virtual FWL_Error Finalize(); 113 FWL_Type GetClassID() const override;
114 virtual FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); 114 FWL_Error Initialize() override;
115 virtual FWL_Error Update(); 115 FWL_Error Finalize() override;
116 virtual FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); 116 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
117 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics, 117 FWL_Error Update() override;
118 const CFX_Matrix* pMatrix = NULL); 118 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
119 virtual FWL_Error SetThemeProvider(IFWL_ThemeProvider* pTP); 119 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
120 virtual FWL_Error GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay); 120 const CFX_Matrix* pMatrix = nullptr) override;
121 virtual FWL_Error SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay); 121 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pTP) override;
122 virtual FWL_Error SetEditText(const CFX_WideString& wsText); 122
123 virtual FWL_Error GetEditText(CFX_WideString& wsText, 123 FWL_Error GetCurSel(int32_t& iYear, int32_t& iMonth, int32_t& iDay);
124 int32_t nStart = 0, 124 FWL_Error SetCurSel(int32_t iYear, int32_t iMonth, int32_t iDay);
125 int32_t nCount = -1) const; 125 FWL_Error SetEditText(const CFX_WideString& wsText);
126 FWL_Error GetEditText(CFX_WideString& wsText,
127 int32_t nStart = 0,
128 int32_t nCount = -1) const;
126 129
127 public: 130 public:
128 virtual FX_BOOL CanUndo(); 131 FX_BOOL CanUndo();
129 virtual FX_BOOL CanRedo(); 132 FX_BOOL CanRedo();
130 virtual FX_BOOL Undo(); 133 FX_BOOL Undo();
131 virtual FX_BOOL Redo(); 134 FX_BOOL Redo();
132 virtual FX_BOOL CanCopy(); 135 FX_BOOL CanCopy();
133 virtual FX_BOOL CanCut(); 136 FX_BOOL CanCut();
134 virtual FX_BOOL CanSelectAll(); 137 FX_BOOL CanSelectAll();
135 virtual FX_BOOL Copy(CFX_WideString& wsCopy); 138 FX_BOOL Copy(CFX_WideString& wsCopy);
136 virtual FX_BOOL Cut(CFX_WideString& wsCut); 139 FX_BOOL Cut(CFX_WideString& wsCut);
137 virtual FX_BOOL Paste(const CFX_WideString& wsPaste); 140 FX_BOOL Paste(const CFX_WideString& wsPaste);
138 virtual FX_BOOL SelectAll(); 141 FX_BOOL SelectAll();
139 virtual FX_BOOL Delete(); 142 FX_BOOL Delete();
140 virtual FX_BOOL DeSelect(); 143 FX_BOOL DeSelect();
141 virtual FWL_Error GetBBox(CFX_RectF& rect); 144 FWL_Error GetBBox(CFX_RectF& rect);
142 virtual FWL_Error SetEditLimit(int32_t nLimit); 145 FWL_Error SetEditLimit(int32_t nLimit);
143 virtual FWL_Error ModifyEditStylesEx(uint32_t dwStylesExAdded, 146 FWL_Error ModifyEditStylesEx(uint32_t dwStylesExAdded,
144 uint32_t dwStylesExRemoved); 147 uint32_t dwStylesExRemoved);
145 148
146 public: 149 public:
147 IFWL_DateTimeEdit* GetDataTimeEdit(); 150 IFWL_DateTimeEdit* GetDataTimeEdit();
148 151
149 protected: 152 protected:
150 void DrawDropDownButton(CFX_Graphics* pGraphics, 153 void DrawDropDownButton(CFX_Graphics* pGraphics,
151 IFWL_ThemeProvider* pTheme, 154 IFWL_ThemeProvider* pTheme,
152 const CFX_Matrix* pMatrix); 155 const CFX_Matrix* pMatrix);
153 void FormatDateString(int32_t iYear, 156 void FormatDateString(int32_t iYear,
154 int32_t iMonth, 157 int32_t iMonth,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void OnMouseMove(CFWL_MsgMouse* pMsg); 228 void OnMouseMove(CFWL_MsgMouse* pMsg);
226 void OnMouseLeave(CFWL_MsgMouse* pMsg); 229 void OnMouseLeave(CFWL_MsgMouse* pMsg);
227 230
228 CFWL_DateTimePickerImp* m_pOwner; 231 CFWL_DateTimePickerImp* m_pOwner;
229 232
230 private: 233 private:
231 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 234 void DisForm_OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
232 }; 235 };
233 236
234 #endif // XFA_FWL_BASEWIDGET_FWL_DATETIMEPICKERIMP_H_ 237 #endif // XFA_FWL_BASEWIDGET_FWL_DATETIMEPICKERIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_comboboximp.cpp ('k') | xfa/fwl/basewidget/fwl_datetimepickerimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698