| 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 #include "xfa/fwl/basewidget/fwl_datetimepickerimp.h" | 7 #include "xfa/fwl/basewidget/fwl_datetimepickerimp.h" |
| 8 | 8 |
| 9 #include "xfa/fwl/basewidget/fwl_editimp.h" | 9 #include "xfa/fwl/basewidget/fwl_editimp.h" |
| 10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h" | 10 #include "xfa/fwl/basewidget/fwl_formproxyimp.h" |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 } | 419 } |
| 420 | 420 |
| 421 CFWL_DateTimePickerImp::CFWL_DateTimePickerImp( | 421 CFWL_DateTimePickerImp::CFWL_DateTimePickerImp( |
| 422 const CFWL_WidgetImpProperties& properties, | 422 const CFWL_WidgetImpProperties& properties, |
| 423 IFWL_Widget* pOuter) | 423 IFWL_Widget* pOuter) |
| 424 : CFWL_WidgetImp(properties, pOuter), | 424 : CFWL_WidgetImp(properties, pOuter), |
| 425 m_iBtnState(1), | 425 m_iBtnState(1), |
| 426 m_iYear(-1), | 426 m_iYear(-1), |
| 427 m_iMonth(-1), | 427 m_iMonth(-1), |
| 428 m_iDay(-1), | 428 m_iDay(-1), |
| 429 m_bLBtnDown(FALSE), | 429 m_bLBtnDown(FALSE) { |
| 430 m_pEdit(nullptr), | |
| 431 m_pMonthCal(nullptr), | |
| 432 m_pForm(nullptr) { | |
| 433 m_rtBtn.Set(0, 0, 0, 0); | 430 m_rtBtn.Set(0, 0, 0, 0); |
| 434 } | 431 } |
| 435 | 432 |
| 436 CFWL_DateTimePickerImp::~CFWL_DateTimePickerImp() {} | 433 CFWL_DateTimePickerImp::~CFWL_DateTimePickerImp() {} |
| 437 | 434 |
| 438 FWL_Error CFWL_DateTimePickerImp::GetClassName(CFX_WideString& wsClass) const { | 435 FWL_Error CFWL_DateTimePickerImp::GetClassName(CFX_WideString& wsClass) const { |
| 439 wsClass = FWL_CLASS_DateTimePicker; | 436 wsClass = FWL_CLASS_DateTimePicker; |
| 440 return FWL_Error::Succeeded; | 437 return FWL_Error::Succeeded; |
| 441 } | 438 } |
| 442 | 439 |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 } | 1174 } |
| 1178 if (m_pOwner->m_pEdit->GetStates() & FWL_WGTSTATE_Focused) { | 1175 if (m_pOwner->m_pEdit->GetStates() & FWL_WGTSTATE_Focused) { |
| 1179 pMsg->m_pSrcTarget = m_pOwner->m_pEdit.get(); | 1176 pMsg->m_pSrcTarget = m_pOwner->m_pEdit.get(); |
| 1180 IFWL_WidgetDelegate* pDelegate = m_pOwner->m_pEdit->SetDelegate(NULL); | 1177 IFWL_WidgetDelegate* pDelegate = m_pOwner->m_pEdit->SetDelegate(NULL); |
| 1181 pDelegate->OnProcessMessage(pMsg); | 1178 pDelegate->OnProcessMessage(pMsg); |
| 1182 } | 1179 } |
| 1183 } | 1180 } |
| 1184 rtInvalidate.Inflate(2, 2); | 1181 rtInvalidate.Inflate(2, 2); |
| 1185 m_pOwner->Repaint(&rtInvalidate); | 1182 m_pOwner->Repaint(&rtInvalidate); |
| 1186 } | 1183 } |
| OLD | NEW |